@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    
  font-family: "Urbanist", sans-serif;
  
}
.container{
    width: 90%;
    max-width: 1200px;
    margin:0 auto;
    overflow: hidden;
    
}
.hero{
    background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
    color: #fff;
    display: grid;
    grid-template-rows: max-content 1fr;
    grid-template-areas: 
    "nav"
    "content";
    min-height: 100vh;
}
.nav{
    grid-area: nav;
    display: grid;
    justify-content: space-between;
    grid-auto-flow: column;
    gap:1em;
    align-items: center;
    height: 90px;
}

.nav__list{
    list-style: none;
    display: grid;
    grid-auto-flow:column;
    gap:1em;


}

.nav__link{
     color: #fff;

text-decoration: none;
}

.nav__menu{
    display: none;
   

}
.nav__logo{
    font-size: 1.8rem;
    font-weight: 300;
}
.nav__icon{
    width: 30px;
}

.hero__main{
    grid-area: content;
    display: grid;
    gap: 2em;
    /*grid-template-columns: repeat(auto-fit, minmax(300px,1fr));*/
    grid-template-columns: 1fr 1fr;
    padding-bottom: 180px;
    align-items: center;
}

.hero__waves{
    grid-area: content;
    align-self: end;
}
.hero__title{
    font-size: 2.6rem;
    letter-spacing: 2px;
}

.her__subtitle{
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
}

.hero__cta{
    text-decoration: none;
    color:#fff;
    padding:15px 60px;
    border: 1px solid;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    transition: background-color .3s;
}
.hero__cta:hover{
    background-color: #fff;
    color:#1e3c72;
}

.hero__img{
    width: 100%;
}

@media (max-width:800px){
    .nav__list{
        display: none;
    }
    .nav__menu{
        display: block;
    }
    .hero__main{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        text-align: center;
    }

    .hero__picture{
        grid-row: 1/2;
        max-width: 500px;
        display: block;
        margin: 0 auto;

    }
}
 


/* Botón flotante de WhatsApp — responsive, llamativo y con movimiento suave */
.whatsapp-float{
  --size: clamp(48px, 6vw, 64px);       /* Tamaño del ícono */
  --padY: clamp(10px, 1.8vh, 14px);     /* Padding vertical */
  --padX: clamp(16px, 3.8vw, 22px);     /* Padding horizontal */
  --shadow: 0 14px 28px rgba(0,0,0,.20);
  --shadow-hover: 0 18px 36px rgba(0,0,0,.25);
  --scroll-bob: 0px;                    /* Desplazamiento por scroll */

  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: calc(clamp(14px, 2.5vh, 28px) + var(--scroll-bob));
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);

  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(120% 120% at 20% 20%, #49e07a 0%, #25D366 45%, #1ebe57 100%);
  padding: var(--padY) var(--padX);
  border-radius: 9999px;
  border: 0;
  font-weight: 700;
  font-size: clamp(14px, 2.3vw, 18px);
  letter-spacing: .2px;

  box-shadow: var(--shadow), 0 0 0 0 rgba(37,211,102,.35);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  pointer-events: none;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease,
    opacity .25s ease;
}

/* Estado visible (aparece al hacer scroll) */
.whatsapp-float--show{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: wa-pulse 2.2s ease-in-out infinite;
}

/* Ícono más grande y nítido */
.whatsapp-float .wa-icon{
  width: var(--size);
  height: var(--size);
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.15));
}

/* Texto */
.whatsapp-float .wa-text{
  line-height: 1;
  white-space: nowrap;
}

/* Hover/Active */
.whatsapp-float:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 0 10px rgba(37,211,102,.10);
  filter: brightness(1.05);
}
.whatsapp-float:active{
  transform: translateY(0) scale(.99);
}

/* “Nudge” breve cuando detecta scroll */
.whatsapp-float--nudge{
  animation: wa-nudge .2s ease;
}

/* Animación respirando/pulse */
@keyframes wa-pulse{
  0%   { box-shadow: 0 14px 28px rgba(0,0,0,.20), 0 0 0 0 rgba(37,211,102,.28); }
  70%  { box-shadow: 0 14px 28px rgba(0,0,0,.20), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 28px rgba(0,0,0,.20), 0 0 0 0 rgba(37,211,102,0); }
}

/* Micro “pop” */
@keyframes wa-nudge{
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-1px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* Modo reducido de movimiento (accesibilidad) */
@media (prefers-reduced-motion: reduce){
  .whatsapp-float,
  .whatsapp-float--show{
    animation: none !important;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }
}



/* ===== Trabajos realizados ===== */
.works{
  padding: clamp(32px, 6vw, 64px) 0;
}

.works__header{
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 36px);
}

.works__badge{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(90deg,#1e3c72 0%, #2a5298 100%);
  color:#fff;
  box-shadow: 0 8px 20px rgba(30,60,114,.25);
}

.works__title{
  font-size: clamp(24px, 4vw, 36px);
  margin-top: .6rem;
  letter-spacing: .5px;
  color: #0b2e63;
}

.works__subtitle{
  color: #285190;
  max-width: 760px;
  margin: .5rem auto 0;
}

.works__card{
  margin-top: clamp(16px, 3vw, 28px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(18px, 3.5vw, 36px);
  align-items: center;
  background: #ffffff;
  border-radius: 22px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 18px 42px rgba(9,30,66,.10);
  position: relative;
}

.works__card::before{
  content:"";
  position:absolute; inset:-2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30,60,114,.35), rgba(42,82,152,.15), rgba(16,185,129,.20));
  z-index:-1;
  filter: blur(6px);
  opacity:.6;
}

.works__media{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f1f6ff;
}


.works__img{
  width: 75%;           /* ✅ la imagen será 25% más pequeña */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transition: transform .3s ease;
  display: block;
  margin: 0 auto;       /* ✅ centrada */
}
.works__img:hover{
  transform: scale(1.02);
}

.works__link{
  display:block;
  position: relative;
  isolation: isolate;
}

.works__link::after{
  /* brillo sutil al hover */
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(80% 80% at 80% 20%, rgba(255,255,255,.0) 0%, rgba(255,255,255,.45) 100%);
  mix-blend-mode: overlay;
  opacity:0;
  transition: opacity .35s ease;
}

.works__pill{
  position:absolute;
  left:14px; bottom:14px;
  background: rgba(30,60,114,.92);
  color:#fff;
  padding:8px 12px;
  border-radius: 999px;
  font-weight:700;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.works__link:hover .works__img{
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.03);
}
.works__link:hover::after{ opacity:1; }

.works__info{
  padding: clamp(4px, 1vw, 8px);
}

.works__project{
  font-size: clamp(20px, 3.3vw, 28px);
  margin-bottom: .6rem;
  color:#0b2e63;
}

.works__bullets{
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  color: #234b8c;
}
.works__bullets li{
  position: relative;
  padding-left: 26px;
}
.works__bullets li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  color:#10b981;
  font-weight: 900;
}

.works__ctaGroup{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; font-weight:800; letter-spacing:.2px;
  padding: 12px 18px; border-radius: 999px; transition: all .25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

.btn--primary{
  color:#fff;
  background: linear-gradient(90deg,#1e3c72 0%, #2a5298 100%);
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(30,60,114,.25);
  filter: brightness(1.06);
}

.btn--ghost{
  color:#1e3c72;
  background:#e9f2ff;
  border:1px solid rgba(30,60,114,.18);
}
.btn--ghost:hover{
  background:#dbe9ff;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px){
  .works__card{
    grid-template-columns: 1fr;
  }
}



.works__link{
  margin: 12px 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;   /* centra el texto */
  text-decoration: none;
}

.works__link a{
  color: #2a5298;
  text-decoration: none;
  transition: color .3s ease;
}

.works__link a:hover{
  text-decoration: underline;
  color: #1e3c72;
}
