* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html {
    background: #ffffff;
  }
  
  body {
    font-family: serif, sans-serif;
    min-height: 100vh;
    background: #ffffff !important;
    margin: 0;
    padding: 0;
    cursor: none;
  }
  
  main {
    background: #ffffff;
    width: 100%;
    height: auto;
  }
 /* == Navbar == */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    transition: transform 0.35s ease;
  }

  /* Ocultar al hacer scroll hacia abajo */
  .navbar.nav-hidden {
    transform: translateY(-100%);
  }

  /* Pill flotante */
  .nav-inner {
    max-width: 1200px;
    margin: 1rem auto 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(0, 53, 92, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0 1.5rem;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }

  /* Al hacer scroll: fondo más sólido */
  .navbar.nav-scrolled .nav-inner {
    background: rgba(0, 53, 92, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
  }

  /* Logo */
  .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .nav-logo img {
    height: 36px;
    width: auto;
  }

  /* Links desktop */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #6ae3ff, #7c7cff);
    border-radius: 2px;
    transition: transform 0.3s ease;
  }

  .nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
  }

  .nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
  }

  /* Acciones: CTA + hamburger */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
  }

  /* CTA desktop */
  .nav-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00355C;
    background: linear-gradient(90deg, #6ae3ff, #7c7cff);
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(151, 203, 220, 0.35);
  }

  /* Hamburger */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Hamburger → X */
  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menú móvil */
  .nav-mobile {
    display: none;
    max-width: 1200px;
    margin: 0.5rem auto 0;
    background: rgba(0, 69, 129, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-mobile.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-mobile-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
  }

  .nav-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00355C;
    background: linear-gradient(90deg, #6ae3ff, #7c7cff);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    min-height: 44px;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-mobile-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  /* Responsive: mostrar hamburger, ocultar links */
  @media (max-width: 768px) {
    .navbar {
      padding: 0 1rem;
    }

    .nav-links {
      display: none;
    }

    .nav-cta {
      display: none;
    }

    .nav-hamburger {
      display: flex;
    }

    .nav-mobile {
      display: block;
    }
  }

  /* Pantallas medianas: reducir gap */
  @media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
      gap: 0;
    }

    .nav-links a {
      font-size: 0.85rem;
      padding: 0.5rem 0.7rem;
    }

    .nav-cta {
      font-size: 0.8rem;
      padding: 0.5rem 1rem;
    }
  }

  #logo {
    height: 36px;
    width: auto;
  }

  .full-width-img {
    width: 100%;
  }

/* == HERO == */
  
.ac-hero {
  min-height: 100vh;
  padding: 5rem 6vw;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
  background: url('hero.webp') center center / cover no-repeat;
  color: #e5e7eb;
  font-family: "Inter", system-ui, sans-serif;
  isolation: isolate;
}

@media (max-width: 768px) {
  .ac-hero {
    background: #01284F;
  }
}

.ac-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 53, 92, 0.55);
  z-index: 0;
}

.ac-hero > * {
  position: relative;
  z-index: 1;
}

.ac-hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.ac-hero-tag {
  display: inline-block;
  background: rgba(151, 203, 220, 0.1);
  color: #97cbdc;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.ac-hero::before {
  display: none;
}
.ac-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: #e8edf2;
}

.ac-hero h1 span {
  color: #97cbdc !important;
  -webkit-text-fill-color: #97cbdc !important;
  background: none;
}

.ac-hero p {
  font-size: 1.125rem;
  color: #a0aec0;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-family: 'Montserrat', sans-serif;
}

.ac-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ac-btn-primary {
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  color: #000;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ac-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(151, 203, 220, 0.3);
}

.ac-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ac-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ac-hero-note {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Imagen móvil del hero — solo visible en móvil */
.ac-hero-mobile-img {
  display: none;
}
  position: relative;
  height: 420px;
  z-index: 1;
}

.ac-orb,
.ac-orb-2,
.ac-grid {
  display: none;
}

/* Animación */

@keyframes ac-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}
   .ac-animate-lines {
    overflow: hidden;
  }
  
  .ac-line {
    display: block;
    overflow: hidden;
  }
  
  .ac-line-inner {
    display: inline-block;
    transform: translate3d(0, 120%, 0);
    animation: ac-line-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform;
  }
  
  .ac-gradient {
    background: linear-gradient(90deg, #6ae3ff, #7c7cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .ac-fade-blur {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 14px, 0);
    animation: ac-fade-blur-in 0.8s ease forwards;
    animation-delay: 0.6s;
    will-change: opacity, transform, filter;
  }
  
  @keyframes ac-line-reveal {
    to {
      transform: translate3d(0, 0, 0);
    }
  }
  
  @keyframes ac-fade-blur-in {
    to {
      opacity: 1;
      filter: blur(0);
      transform: translate3d(0, 0, 0);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .ac-line-inner,
    .ac-fade-blur {
      animation: none;
      transform: none;
      opacity: 1;
      filter: none;
    }
  }

.ac-animate-lines {
  overflow: hidden;
}

.ac-animate-lines .ac-line {
  display: block;
  overflow: hidden;
}

.ac-animate-lines .ac-line-inner {
  display: inline-block;
  transform: translate3d(0, 120%, 0);
  animation: ac-line-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
  color: inherit;
}

.ac-hero h1 .ac-line-inner {
  color: #ffffff;
}

.ac-fade-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 14px, 0);
  animation: ac-fade-blur-in 0.8s ease forwards;
  animation-delay: 0.5s;
}
.ac-hero-actions {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: ac-fade-up-in 0.7s ease forwards;
  animation-delay: 0.9s;
}

.ac-hero-note {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: ac-fade-up-in 0.6s ease forwards;
  animation-delay: 1.1s;
}

@keyframes ac-line-reveal {
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ac-fade-blur-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ac-fade-up-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-line-inner,
  .ac-fade-blur,
  .ac-hero-actions,
  .ac-hero-note {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .ac-fade-blur{
    text-align: left;
  }
  .ac-hero {
    margin-top: 0%;
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
    padding-bottom: 3rem;
    min-height: unset;
  }

  .ac-hero-actions {
    justify-content: center;
  }

  .ac-hero-visual {
    height: 0;
    display: none;
  }

  .ac-hero-mobile-img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 2rem auto 0;
    border-radius: 1rem;
  }
}
  /* == cursor== */
  .ac-cursor,
  .ac-cursor-fx {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
  }
  
  /* oculto por defecto en touch */
  .ac-cursor,
  .ac-cursor-fx {
    opacity: 0;
  }
  
  @media (hover: hover) and (pointer: fine) {
    .ac-cursor,
    .ac-cursor-fx {
      opacity: 1;
    }
  }
  
  /* tamaños branding */
  .ac-cursor {
    width: 10px;
    height: 10px;
    background: #018abd;
    border-radius: 50%;
  }
  
  .ac-cursor-fx {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(39,191,217,0.4);
    border-radius: 50%;
  }
  
  .ac-cursor.active {
    transform: translate(-50%, -50%) scale(1.8);
  }
  
  .ac-cursor-fx.active {
    transform: translate(-50%, -50%) scale(1.5);
  }
  
/* == main == */

  main{
    width: 100%;
    height: auto;
   }

 /* == whatsapp == */

.whatsapp-icon {
  margin-top:15px;
  animation: beat 2s ease-in-out infinite;
}
.whatsapp i {
  margin-top:12px;
  font-size: 36px; /* 🔥 aquí controlas el tamaño real del icono */
}
.whatsapp {
  position:fixed;
  width:3.75rem;
  height:60px;
  bottom:38px;
  right:40px;
  background-color:#25d366;
  color:#FFF;
  border-radius:50px;
  text-align:center;
  z-index:100;
  animation: breathe 2s ease-in-out infinite;
}

/*Estilos con animation contorno respirando*/
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ------------------ SERVICIOS ------------------ */
.contenedor-servicios {
  padding: 80px 1%;
  text-align: center;
}


.animar-scroll {
opacity: 0;
transform: translateY(40px);
transition: opacity 1s ease, transform 1s ease;
}

.animar-scroll.visible {
opacity: 1;
transform: translateY(0);
}

.contenedor-servicios h2 {
  font-family: 'Garamond', serif;
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #00355C;
}

.contenedor-servicios .intro {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 160%;
  color: #000000;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 40px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card-servicio {
  background-color: #f0f0f0;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}

.card-servicio p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 160%;
  color: #000000;
  font-family: "Montserrat", sans-serif;
}

.card-servicio h3 {
  font-family: 'Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: 20px;
}

.card-servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contenedor de icono */
.card-servicio .icono {
width: 80px;
height: 80px;
margin: 0 auto 20px;
display: flex;
align-items: center;
justify-content: center;
background-color: #018abd; /* color principal */
color: #fff;
border-radius: 50%;
font-size: 2rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-saber-mas {
  display: inline-block;
  margin-top: 14px;
  color: #00d4ff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-saber-mas:hover {
  color: #fff;
  transform: translateX(4px);
}

/* modal*/
.card-servicio:hover .icono {
transform: scale(1.1);
box-shadow: 0 6px 15px rgba(1, 138, 189, 0.4);
}

.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
z-index: 1000;
}

.modal-content {
background: #fff;
width: 80%;
max-width: 900px;
height: 80%;
border-radius: 12px;
overflow: hidden;
position: relative;
box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.modal-content iframe {
width: 100%;
height: 100%;
border: none;
}

.cerrar {
position: absolute;
top: 12px;
right: 35px;
font-size: 28px;
color: #ffffff;
cursor: pointer;
}
.cerrar:hover {
color: #018abd;
}


 /* ==Porque nosotros== */
.icon-box {
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: #018abd;
  fill: rgba(1, 138, 189, 0.15);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-section {
  background: #f0f0f0;
  padding: 6rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  color: #000;
}

.why-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}


.why-title {
  font-family: 'Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
  color: #00355c;
}

.why-title span {
  color: #018abd;
}

.why-intro {
  font-family: "Montserrat", serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  color: #000;
  max-width: 520px;
  margin-bottom: 3rem;
}

/* Cards */
.why-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.why-card {
  background: #ffffff;
  padding: 1.5rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid #e6e6e6;
}


.why-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 0.3rem;
  color: #00355c;
  font-weight: bold;
  font-weight: 600;
}

.why-card p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.4;
  color: #000;
}

/* Image */
.why-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.why-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  margin-top: 10rem; /* SOLO desktop */
}

/* Badge de certificación flotante */
.why-cert-badge {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.6rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-cert-badge img {
  width: 110px;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 0;
  max-width: unset;
  box-shadow: none;
}




@media (max-width: 900px) {
  .why-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-image {
    order: -1;
    justify-content: center;
  }

  .why-image img {
    margin-top: 0;          /* elimina el problema */
    max-width: 90%;         /* evita overflow */
  }

  .why-intro {
    max-width: 100%;
  }
  
}

@media (max-width: 480px) {
  .why-section {
    padding: 4rem 1.2rem;
  }

  .why-card {
    padding: 1.2rem;
  }

  .why-title {
    font-size: 2rem;
  }
}




/* Animaciones SEO-friendly */
[data-animation] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animation].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger automático */
.why-card:nth-child(1) { transition-delay: 0.1s; }
.why-card:nth-child(2) { transition-delay: 0.2s; }
.why-card:nth-child(3) { transition-delay: 0.3s; }
.why-card:nth-child(4) { transition-delay: 0.4s; }
.why-card:nth-child(5) { transition-delay: 0.5s; }

/* Chatbot*/
.chatbot-section {
  padding: 1.5rem 1.5rem;
  background: linear-gradient(135deg, #00355C 0%, #018abd 40%, #6ae3ff 70%, #7c7cff 100%);
  background-size: 300% 300%;
  animation: gradient 12s ease infinite;
  color: #ffffff;
  overflow: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
  }


.chatbot-container {
  max-width: 1300px;
  height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.chatbot-content h2 {
  font-family: Garamond, serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.chatbot-content .subtitle {
  font-family: Montserrat, sans-serif;
  font-size: 1.2rem;
  color: #e4e4e4;
  margin-bottom: 1.5rem;
}

.benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefits li {
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  color: #00355C;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(106, 227, 255, 0.35);
}

/* Imagen */
.chatbot-visual {
  position: relative;
  margin-top: 2rem;
  left: 5rem;
}

.chatbot-visual img {
  width: 400%;
  max-width: 450px;
}


/* Burbuja chat */
.chat-bubble-modern {
  position: absolute;
  bottom: 25%;
  left: -10%;
  width: 260px;
  background: linear-gradient(135deg, #018abd, #018abd);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 0.9rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
}

.chat-icon {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.chat-title {
  letter-spacing: 0.02em;
}

/* Message body */
.chat-message {
  background: #ffffff;
  color: #00355c;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 0 0 16px 16px;
}


/* Fade-in al hacer scroll */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== */
/* 📱 TABLET */
@media (max-width: 1024px) {
  .chatbot-container {
    grid-template-columns: 1fr;
    text-align: center;
    left: 10rem;
    
  }

  .chatbot-visual {
    margin-top: 2rem;
  }

  .chat-bubble-modern {
    position: static;
    margin: 1rem auto 0;
    width: 200px;

  }
}

/* 📱 MOBILE */
@media (max-width: 600px) {
  .chatbot-container {
    margin-top: 3rem;
    text-align: left;
  }
  .chatbot-content h2 {
    text-align: center;
    margin-bottom: 3rem;
  }
  .chatbot-visual img {
    max-width: 280px;
  }

  .chat-bubble-modern {
    width: 100%;
    max-width: 320px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
  .chatbot-visual {
    position: relative;
    margin-top: 2rem;
    left: -2rem;
  }
  
  .chatbot-visual img {
    width: 250%;
    max-width: 450px;
  }
  .chat-bubble-modern {
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 200px;
}
}

/* FAQs*/

.faq-section {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
}

.faq-section h2 {
  font-family: Garamond, serif;
  font-size: 2.2rem;
  color: #00355c;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid #e4e4e4;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  text-align: left !important;
  font-weight: 600;
  color: #00355c;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question span {
  color: #018abd;
  font-size: 1.2rem;
}
.faq-item.active .faq-answer {
  max-height: 1000px;
}
.faq-answer {
  padding-right: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  color: #555;
  padding-bottom: 20px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.checklist li {
  font-family: Montserrat, sans-serif;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #555; /* ajusta a tu paleta */
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%2327bfd9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .faq-section {
    padding: 40px 30px;
  }

  .faq-section h2 {
    font-size: 1.8rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}
/* ================= AGENDA LLAMADA ================= */

.agenda {
  font-family: 'Montserrat', sans-serif;
  background:#f0f0f0;
  color: #00355c;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  padding: 80px;
  gap: 60px;
}

.agenda-left .tag {
  font-size: 13px;
  letter-spacing: 2px;
  color: #00355c;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

.agenda-left h1 {
  font-family: 'Garamond', serif;
  font-size: 52px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.agenda-left h1 strong {
  color: #018abd;
}

.agenda-left p {
  font-size: 18px;
  color: #000;
  max-width: 480px;
}

/* CONTACTO */
.contacto {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.contacto li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 16px;
  text-decoration: none;
  color: #000;
}

.contacto li::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #018abd;
  border-radius: 50%;
}

   .agenda-right {
    overflow-x: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 26px;            /* ⬅ antes 40px */
  max-width: 420px;         /* ⬅ limita el tamaño */
  margin-left: auto;        /* ⬅ lo pega a la derecha */
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.agenda-right h3 {
  font-family: 'Garamond', serif;
  font-size: 20px;
  margin-bottom: 18px;
  color: #00355c;
}

.mes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.mes span {
  font-weight: 500;
  letter-spacing: .5px;
}

.mes button {
  background: linear-gradient(135deg, #018abd, #018abd);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #00355c;
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease;
}

.mes button:hover {
  transform: scale(1.08);
}

.dias-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 13px;
  color: #00355c;
  margin-bottom: 15px;
}

.calendario {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.dia {
  width: 42px;
  height: 42px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  transition: all .25s ease;
}

.dia.activo {
  border: 1px solid #018abd;
  color: #00355c;
}

.dia.activo:hover {
  background: #018abd;
  color: #00355c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39,191,217,.35);
}

.dia.seleccionado {
  background: #018abd;
  color: #00355c;
  box-shadow: 0 10px 25px rgba(39,191,217,.5);
}

.dia.inactivo {
  opacity: .25;
  cursor: not-allowed;
}

.zona-horaria {
  margin-top: 30px;
  font-size: 14px;
  color: #00355c;
  opacity: .8;
}

@media (max-width: 980px) {
  .agenda {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .agenda-left h1 {
    font-size: 40px;
  }
  .contacto li {
    text-decoration: none;
    color: #000;
  }
  .agenda-right {
    padding: 30px;
  }
}
@media (max-width: 480px) {
  .agenda-right {
    padding: 20px;
  }
  .contacto li {
    text-decoration: none;
    color: #000;
  }
  .calendario {
    gap: 6px;
  }

  .dias-semana {
    font-size: 11px;
  }

  .dia {
    font-size: 12px;
    max-width: 36px;
  }
}

   .modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #97cbdc;
  backdrop-filter: blur(18px);
  width: 420px;
  max-width: 90%;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}

/* Tipografía dentro del modal de agenda */
.modal-box h3 {
  color: #00355c;
}

.modal-box p,
.modal-box .duracion,
.modal-box label {
  color: #00355c;
}
.modal.hidden {
  display: none !important;
}
.hidden {
  display: none;
}

.back {
  background: none;
  border: none;
  color: #00355c;
  font-size: 22px;
  cursor: pointer;
  margin-bottom: 10px;
}

.horas {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.hora {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #00355c;
  color: #00355c;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  background: rgba(255,255,255,.35);
  font-weight: 600;
}

.hora:hover {
  background: #00355c;
  color: #97cbdc;
  box-shadow: 0 10px 25px rgba(0,53,92,.35);
}

form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,53,92,.3);
  background: rgba(255,255,255,.5);
  color: #00355c;
  resize: none;
  font-family: 'Montserrat', sans-serif;
}

input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,53,92,.3);
  background: rgba(255,255,255,.5);
  color: #00355c;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0,53,92,.55);
}

button[type="submit"] {
  background: #00355c;
  color: #97cbdc;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease;
}

button[type="submit"]:hover {
  background: #018abd;
  color: #fff;
}

.mensaje-final {
  font-size: 14px;
  color: #00355c;
  opacity: .85;
  margin-top: 10px;
}

/* ===== BOTONES MÁS PREMIUM ===== */

.ac-btn-primary {
  position: relative;
  overflow: hidden;
}

.ac-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
}

.ac-btn-primary:hover::after {
  transform: translateX(100%);
  transition: 0.6s;
}

/* ================= CARD DESTACADA (servicios) ================= */
.card-servicio {
  position: relative;
}

.card-servicio--destacada {
  background-color: #00355C;
  color: #fff;
  border: 2px solid #018abd;
}

.card-servicio--destacada h3,
.card-servicio--destacada p {
  color: #fff;
}

.card-servicio--destacada .btn-saber-mas {
  color: #97cbdc;
}

.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  color: #00355C;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ================= TESTIMONIOS ================= */
.testimonios-section {
  background: #00355C;
  padding: 5rem 1.5rem;
}

.testimonios-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.testimonios-titulo {
  font-family: 'Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.testimonios-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 3rem;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.testimonio-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.testimonio-card--destacada {
  border-color: #018abd;
  background: rgba(1, 138, 189, 0.08);
}

.testimonio-estrellas {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonio-texto {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonio-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #018abd, #018abd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonio-autor strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
}

.testimonio-autor span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Stats */
.testimonios-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-item strong {
  font-family: 'Garamond', serif;
  font-size: 2.2rem;
  color: #018abd;
  line-height: 1;
}

.stat-item span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #9ca3af;
}

@media (max-width: 600px) {
  .testimonios-stats {
    gap: 2rem;
  }
  .stat-item strong {
    font-size: 1.8rem;
  }
}

/* (navbar altura fija — reemplazado por nuevo navbar) */

/* ================= FOOTER — ESTRUCTURA EN FILAS ================= */

/* Resetear el grid anterior */
.contenedor-footer {
  display: block;
}

.footer {
  background: #00355c;
  color: #e4e4e4;
  padding: 3rem 6vw 0;
}

/* ── Layout principal: 4 columnas ── */
.footer-columns {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

/* Divisores verticales entre columnas */
.footer-columns > .footer-row + .footer-row {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2.5rem;
}

/* Fila base */
.footer-row {
  padding: 0;
}

/* Divisor horizontal (oculto en desktop, visible en mobile) */
.footer-divider {
  display: none;
}

/* --- Columna 1: Logo y frase --- */
.footer-row--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-row--brand p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #c9d1d9;
  margin: 0;
}

.footer-row--brand .logofooter {
  margin-bottom: 0;
  max-width: 160px;
}

/* --- Columna 2: Enlaces --- */
.footer-row--links {
  text-align: left;
}

.footer-row--links h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #e4e4e4;
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.6rem 0.4rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: #018abd;
}

/* --- Columna 3: Contacto y redes --- */
.footer-row--contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-group h4,
.footer-social-group h4 {
  font-size: 1rem;
  color: #018abd;
  margin-bottom: 1rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #e4e4e4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact-list li i {
  color: #018abd;
  width: 16px;
  text-align: center;
}

.footer-contact-list a {
  color: #e4e4e4;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-list a:hover {
  color: #018abd;
}

.footer-social-group .social {
  display: flex;
  gap: 1rem;
  margin-top: 0;
}

.footer-social-group .social a {
  font-size: 1.5rem;
  color: #e4e4e4;
  transition: color 0.3s, transform 0.3s;
}

.footer-social-group .social a:hover {
  color: #018abd;
  transform: translateY(-3px);
}

/* --- Fila 4: Formulario --- */
.footer-row--form h4 {
  font-size: 1rem;
  color: #018abd;
  margin-bottom: 1.2rem;
}

.form-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-footer-grid textarea {
  grid-column: 1 / -1;
}

.footer-row--form .form-footer button {
  display: block;
  width: 100%;
  max-width: 300px;
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  color: #00355c;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.footer-row--form .form-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(151, 203, 220, 0.3);
}

/* --- Footer bottom --- */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

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

  .footer-columns > .footer-row + .footer-row {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-row--brand .logofooter {
    max-width: 140px;
  }

  .form-footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-row--form .form-footer button {
    max-width: 100%;
  }
}

/* ================= FOOTER — CTA de cierre ================= */
.footer-cta-cierre {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-cierre p {
  font-family: 'Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #ffffff;
  margin: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  color: #00355C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(151, 203, 220, 0.35);
}

@media (max-width: 600px) {
  .footer-cta-cierre {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================= HERO — Tarjetas de servicio flotantes ================= */

.ac-hero-visual {
  position: relative;
}

/* Tarjeta base */
.ac-service-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: ac-card-float 6s ease-in-out infinite;
  z-index: 3;
  white-space: nowrap;
}

.ac-sc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #97cbdc22, #018abd33);
  border: 1px solid rgba(151, 203, 220, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #97cbdc;
  flex-shrink: 0;
}

.ac-sc-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ac-sc-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.ac-sc-text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

/* Posiciones individuales — sobre elementos de la imagen hero */
.ac-sc-1 {
  /* Sitio Web — encima de la computadora */
  top: -3%;
  right: 28%;
  animation-delay: 0s;
}

.ac-sc-2 {
  /* App Web — debajo de la computadora */
  bottom: 2%;
  right: 30%;
  animation-delay: -1.5s;
}

.ac-sc-3 {
  /* Chatbot IA — entre el cubo y el teléfono */
  top: 28%;
  right: 4%;
  animation-delay: -3s;
}

/* Animación flotante individual por tarjeta */
@keyframes ac-card-float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-10px); }
}

/* Badge "proyectos entregados" */
.ac-hero-badge-live {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 53, 92, 0.7);
  border: 1px solid rgba(151, 203, 220, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 4;
  white-space: nowrap;
}

.ac-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #018abd;
  flex-shrink: 0;
  animation: ac-live-pulse 2s ease-in-out infinite;
}

@keyframes ac-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(1, 138, 189, 0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(1, 138, 189, 0);  }
}

/* Ocultar tarjetas en móvil para no saturar */
@media (max-width: 900px) {
  .ac-service-card,
  .ac-hero-badge-live {
    display: none;
  }
}

/* ================= HERO — Device (computadora SVG) ================= */

.ac-hero-device {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ac-hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: ac-float 7s ease-in-out infinite;
}

/* Barra de progreso debajo de la imagen */
.ac-device-bar {
  display: none;
}

.ac-device-bar span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.ac-device-progress {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.ac-device-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  border-radius: 999px;
  animation: ac-progress 3s ease-in-out infinite;
}

@keyframes ac-progress {
  0%   { width: 0%;   opacity: 1; }
  80%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* Ocultar badge live (eliminado) */
.ac-hero-badge-live { display: none; }

@media (max-width: 900px) {
  .ac-hero-device {
    position: relative;
    inset: auto;
    margin-top: 2rem;
  }

  .ac-hero-img {
    max-width: 320px;
  }
}

/* ============================================================
   EXPERIENCIAS INMERSIVAS — 5 mejoras
   ============================================================ */

/* ── 1. SCROLL PROGRESS BAR ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #018abd, #97cbdc);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(1, 138, 189, 0.6);
}

/* ── 2. RIPPLE EN BOTONES CTA ───────────────────────────── */
.ac-btn-primary,
.nav-cta,
.nav-mobile-cta,
.footer-cta-btn {
  position: relative;
  overflow: hidden;
}

.ac-btn-primary::after,
.nav-cta::after,
.nav-mobile-cta::after,
.footer-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%),
    rgba(255,255,255,0.35) 0%,
    transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ac-btn-primary:active::after,
.nav-cta:active::after,
.nav-mobile-cta:active::after,
.footer-cta-btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* ── 3. 3D DEPTH EN CARDS DE SERVICIOS ─────────────────── */
.card-servicio {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

.card-servicio .icono,
.card-servicio h3,
.card-servicio p,
.card-servicio .btn-saber-mas {
  transform: translateZ(0px);
  transition: transform 0.4s ease;
}

.card-servicio:hover .icono {
  transform: translateZ(24px);
}

.card-servicio:hover h3 {
  transform: translateZ(16px);
}

.card-servicio:hover p {
  transform: translateZ(8px);
}

.card-servicio:hover .btn-saber-mas {
  transform: translateZ(20px);
}

/* ── 4. NÚMEROS ANIMADOS (stats) ────────────────────────── */
.stat-count {
  display: inline-block;
  transition: transform 0.3s ease;
}

.stat-count.counting {
  transform: scale(1.08);
}

/* ── 5. SCROLL-DRIVEN ANIMATIONS ────────────────────────── */

/* Soporte nativo (Chrome 115+) */
@supports (animation-timeline: scroll()) {
  .why-card {
    animation: ac-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  .testimonio-card {
    animation: ac-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .faq-item {
    animation: ac-reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  @keyframes ac-reveal-up {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes ac-reveal-left {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Fallback para Safari/Firefox: usa IntersectionObserver (ver JS abajo) */

/* ── MICRO-INTERACCIÓN: hover en íconos de why-cards ────── */
.why-card .icon-box {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.why-card:hover .icon-box {
  transform: scale(1.18) rotate(-4deg);
  box-shadow: 0 6px 20px rgba(1, 138, 189, 0.25);
}

/* ── MICRO-INTERACCIÓN: FAQ question hover ──────────────── */
.faq-question {
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.faq-question:hover {
  color: #018abd;
  padding-left: 6px;
}

/* ── MICRO-INTERACCIÓN: links de nav con underline animado  */
.footer-nav a {
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #018abd;
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* ── RESPETA prefers-reduced-motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #scroll-progress { transition: none; }
  .card-servicio,
  .card-servicio .icono,
  .card-servicio h3,
  .card-servicio p,
  .card-servicio .btn-saber-mas { transform: none !important; transition: none; }
  .why-card,
  .testimonio-card,
  .faq-item { animation: none; opacity: 1; transform: none; }
  .why-card .icon-box { transition: none; }
  .faq-question { transition: none; }
}

/* ── Fallback scroll-driven (Safari / Firefox) ──────────── */
.ac-reveal-pending {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.ac-reveal-pending.ac-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ac-reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= CHATBOT FLOTANTE ================= */

#chatbot-button {
  position: fixed;
  bottom: 33px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background: linear-gradient(135deg, #018abd 0%, #004581 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  z-index: 998;
  transition: width 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: .8rem;
}

.chatbot-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.35s ease;
}

#chatbot-button:hover {
  width: 210px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

#chatbot-button:hover .chatbot-text {
  opacity: 1;
  width: auto;
}

#chatbot-button svg {
  width: 26px;
  height: 26px;
  fill: white;
}

#chatbot-container {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 360px;
  height: 520px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
}

#chatbot-container.open {
  display: flex;
}

#chatbot-header {
  background: linear-gradient(135deg, #018abd 0%, #004581 100%);
  color: white;
  padding: 16px 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f0f0f0;
}

.chatbot-message {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
}

.chatbot-message.user {
  flex-direction: row-reverse;
}

.chatbot-message-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 14px;
}

.chatbot-message.user .chatbot-message-bubble {
  background: linear-gradient(135deg, #018abd 0%, #004581 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot .chatbot-message-bubble {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#chatbot-input-container {
  padding: 14px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

#chatbot-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

#chatbot-input:focus {
  border-color: #018abd;
}

#chatbot-send {
  background: linear-gradient(135deg, #018abd 0%, #004581 100%);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

#chatbot-send:hover:not(:disabled) { opacity: 0.9; }
#chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }

#chatbot-send svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.chatbot-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border-radius: 18px;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chatbot-typing-indicator span {
  width: 8px;
  height: 8px;
  background: #018abd;
  border-radius: 50%;
  animation: chatbot-typing 1.4s infinite;
}

.chatbot-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-typing {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-10px); }
}

@media (max-width: 480px) {
  #chatbot-button {
    width: 54px;
    height: 54px;
    bottom: 2.4rem;
    left: 16px;
  }
  #chatbot-container {
    width: calc(100vw - 100px);
    height: calc(100vh - 300px);
    bottom: 80px;
    left: 12px;
    border-radius: 16px;
  }
  .chatbot-message-bubble {
    max-width: 85%;
    font-size: 13px;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  #chatbot-container {
    width: 340px;
    height: 500px;
    bottom: 82px;
    left: 16px;
  }
  #chatbot-button {
    width: 60px;
    height: 60px;
  }
  #chatbot-button svg {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 1400px) {
  #chatbot-container {
    width: 380px;
    height: 560px;
  }
}

@media (max-width: 1024px) {
  #chatbot-button {
    animation: chatbot-bounce 0.7s ease-out, chatbot-pulse 2.8s ease-in-out infinite 1s;
  }
  @keyframes chatbot-bounce {
    0%   { transform: translateY(20px) scale(0.9); opacity: 0; }
    60%  { transform: translateY(-6px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
  }
}

/* ================= CALCULADORA DE PRESUPUESTO ================= */

.calc-section {
  background: #f3f7fa;
  padding: 5rem 1.5rem;
}

.calc-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calc-tag {
  display: inline-block;
  background: rgba(1,138,189,0.1);
  color: #018abd;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.calc-header h2 {
  font-family: 'Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #00355c;
  margin-bottom: 0.6rem;
}

.calc-header p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #5a6a7a;
}

/* Groups */
.calc-group {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

.calc-group legend {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00355c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* Options grid */
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.calc-option {
  cursor: pointer;
}

.calc-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.calc-card i {
  font-size: 1.4rem;
  color: #018abd;
  margin-bottom: 0.2rem;
}

.calc-card strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #00355c;
  line-height: 1.2;
}

.calc-card em {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  color: #018abd;
  font-weight: 600;
}

/* Selected state */
.calc-option input:checked + .calc-card {
  border-color: #018abd;
  background: rgba(1,138,189,0.06);
  box-shadow: 0 0 0 3px rgba(1,138,189,0.15);
  transform: translateY(-2px);
}

.calc-option:hover .calc-card {
  border-color: #97cbdc;
  transform: translateY(-2px);
}

/* Resultado */
.calc-result {
  background: linear-gradient(135deg, #00355c, #004581);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 1rem;
}

.calc-result-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.calc-result-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.calc-currency {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #97cbdc;
}

#calc-total {
  font-family: 'Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  transition: all 0.3s ease;
}

.calc-range {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
}

#calc-total-max {
  color: rgba(255,255,255,0.5);
}

.calc-result-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.calc-cta {
  display: inline-block;
  background: linear-gradient(90deg, #6ae3ff, #7c7cff);
  color: #00355c;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(106,227,255,0.3);
}

/* Animación del precio */
#calc-total.calc-bump {
  transform: scale(1.08);
  color: #6ae3ff;
}

@media (max-width: 600px) {
  .calc-options {
    grid-template-columns: 1fr 1fr;
  }
  .calc-result {
    padding: 2rem 1.2rem;
  }
}
