/* LOCAL FONTS */
@font-face {
  font-family: 'Special Gothic';
  src: url('assets/font/Special_Gothic_Expanded_One/SpecialGothicExpandedOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Teachers';
  src: url('assets/font/Teachers/static/Teachers-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Teachers';
  src: url('assets/font/Teachers/static/Teachers-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Teachers';
  src: url('assets/font/Teachers/static/Teachers-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Teachers';
  src: url('assets/font/Teachers/static/Teachers-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Teachers';
  src: url('assets/font/Teachers/static/Teachers-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Teachers';
  src: url('assets/font/Teachers/static/Teachers-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #12507F;
  --mint: #29DEA1;
  --teal: #27A089;
  --light: #E9EFF4;
  --white: #ffffff;
  --dark: #0a2d47;
  --gray: #6b8fa8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Teachers', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Special Gothic', sans-serif;
  letter-spacing: -0.02em;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5vw;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 80, 127, 0.1);
  transition: box-shadow 0.3s, transform 0.35s ease;
}

nav.scrolled {
  box-shadow: 0 4px 30px rgba(18, 80, 127, 0.12);
}

nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  transform: scale(3.5);
  transform-origin: left center;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

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

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: background 0.25s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  padding: 1.5rem 5vw 2rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--mint);
  color: var(--dark);
}

.btn-secondary {
  background: var(--navy);
  color: white;
}

.btn-white {
  background: white;
  color: var(--navy);
}

/* HERO */
#inicio {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 5vw 60px;
}

@media (max-width: 1200px) {
  /* Columna del formulario más angosta en pantallas medianas */
  .hero-form-col {
    flex: 0 0 380px;
    width: 380px;
  }

  /* Título más compacto */
  .hero-title {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .hero-badge {
    margin-bottom: 1.1rem;
  }

  .hero-subtitle {
    margin-bottom: 1.75rem;
  }

  .hero-stats {
    margin-top: 2rem;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* DESKTOP > 1024px — formulario llena toda la altura del hero */
@media (min-width: 1025px) {
  #inicio {
    align-items: stretch;
  }

  .hero-inner {
    align-items: stretch;
    justify-content: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-form-col {
    display: flex;
    flex-direction: column;
  }

  .hero-form-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #heroContactForm {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* El grupo del textarea crece para llenar el espacio */
  #heroContactForm .form-group:has(textarea) {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #heroContactForm .form-group:has(textarea) textarea {
    flex: 1;
    min-height: 80px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--mint);
  top: -200px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  bottom: -100px;
  left: -100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: var(--mint);
  top: 50%;
  left: 30%;
  animation: blobFloat 6s ease-in-out infinite 2s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(20px, -30px) scale(1.05)
  }

  66% {
    transform: translate(-15px, 20px) scale(0.95)
  }
}

.hero-inner {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 0;
  max-width: 640px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* Hero form — columna derecha */
.hero-form-col {
  flex: 0 0 440px;
  width: 440px;
  animation: fadeInUp 0.6s ease 0.75s both;
}

.hero-form-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
}

.hero-form-title {
  font-family: 'Special Gothic', sans-serif;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hero-form-subtitle {
  font-size: 0.8rem;
  color: rgba(233, 239, 244, 0.6);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.hero-form-card .form-group label {
  color: rgba(233, 239, 244, 0.8);
}

.hero-form-card .form-group input,
.hero-form-card .form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.hero-form-card .form-group input::placeholder,
.hero-form-card .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.hero-form-card .form-group input:focus,
.hero-form-card .form-group textarea:focus {
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(41, 222, 161, 0.15);
}

.hero-form-card .dropdown-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.38);
}

.hero-form-card .dropdown-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-form-card .dropdown-button.is-open,
.hero-form-card .dropdown-button:focus {
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(41, 222, 161, 0.15);
}

.hero-form-card .dropdown-button.has-value {
  color: white;
}

.hero-form-card .dropdown-chevron {
  color: rgba(255, 255, 255, 0.4);
}

.hero-form-card .dropdown-button.is-open .dropdown-chevron {
  color: var(--mint);
}

.hero-form-card .dropdown-menu {
  background: #0c3a5e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-form-card .dropdown-option {
  color: rgba(255, 255, 255, 0.82);
}

.hero-form-card .dropdown-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.hero-form-card .dropdown-option.option-selected {
  background: rgba(41, 222, 161, 0.12);
  color: var(--mint);
}

.hero-form-card textarea {
  min-height: 70px;
}

.hero-form-card .form-note {
  color: rgba(233, 239, 244, 0.4) !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(41, 222, 161, 0.15);
  border: 1px solid rgba(41, 222, 161, 0.4);
  color: var(--mint);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge::before {
  content: '●';
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-title .highlight {
  color: var(--mint);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(233, 239, 244, 0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.45s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.8rem;
  color: var(--mint);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(233, 239, 244, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(233, 239, 244, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(233, 239, 244, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

/* LOGOS */
.logos-section {
  background: var(--light);
  padding: 3rem 0;
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
}

.logos-track-wrap {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logos-track {
  display: flex;
  gap: 3rem;
  animation: scrollLogos 25s linear infinite;
  width: max-content;
}

/* Removed hover pause */

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 1.5rem;
  white-space: nowrap;
  height: 60px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(18, 80, 127, 0.08);
  color: var(--navy);
  font-family: 'Special Gothic', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.logo-item:hover {
  opacity: 1;
}

@keyframes scrollLogos {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* SECTIONS */
section {
  padding: 6rem 5vw;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(39, 160, 137, 0.12);
  color: var(--teal);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* BENEFICIOS */
#soluciones {
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.benefit-card {
  background: var(--light);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(18, 80, 127, 0.15);
  border-color: var(--mint);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover .benefit-icon,
.benefit-card:hover .benefit-title,
.benefit-card:hover .benefit-text {
  position: relative;
  z-index: 1;
}

.benefit-card:hover .benefit-title {
  color: white;
}

.benefit-card:hover .benefit-text {
  color: rgba(233, 239, 244, 0.85);
}

.benefit-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.benefit-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.3s, filter 0.3s;
}

.benefit-card:hover .benefit-icon-img {
  transform: scale(1.08);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

.benefit-title {
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.benefits-cta {
  text-align: center;
}

/* CASOS */
.casos-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.casos-section .section-title {
  color: white;
}

.casos-section .section-tag {
  background: rgba(41, 222, 161, 0.15);
  color: var(--mint);
}

.casos-section .section-subtitle {
  color: rgba(233, 239, 244, 0.7);
}

.casos-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(41, 222, 161, 0.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(39, 160, 137, 0.08) 0%, transparent 40%);
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.caso-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
}

.caso-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.caso-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(41, 222, 161, 0.4);
  transform: translateY(-5px);
}

.caso-card:hover::after {
  transform: scaleX(1);
}

.caso-photo {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.caso-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.caso-card:hover .caso-photo img {
  transform: scale(1.04);
}

.caso-photo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(41, 222, 161, 0.25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.caso-photo-placeholder span {
  font-size: 1.6rem;
  opacity: 0.4;
}

.caso-title {
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.75rem;
}

.caso-text {
  font-size: 0.88rem;
  color: rgba(233, 239, 244, 0.7);
  line-height: 1.7;
}

.casos-cta {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}

/* Controles carrusel productos (fondo navy) */
.productos-carousel-wrap {
  position: relative;
}

.productos-viewport {
  /* overflow:hidden sólo en mobile — ver breakpoint ≤1024px */
}

.productos-controls {
  display: none; /* se activa en ≤1024px */
}

.productos-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.productos-arrow:hover:not(:disabled) {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
}

.productos-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.productos-dots .carousel-dot {
  background: rgba(255, 255, 255, 0.25);
}

.productos-dots .carousel-dot.active {
  background: var(--mint);
}

/* PASOS */
.pasos-section {
  background: var(--light);
}

.pasos-timeline {
  max-width: 900px;
  margin: 0 auto 3rem;
  position: relative;
}

.pasos-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--mint), var(--teal));
}

.paso {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  align-items: flex-start;
}

.paso-num {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.1rem;
  color: var(--mint);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
  box-shadow: 0 0 0 4px var(--light);
}

.paso:hover .paso-num {
  background: var(--mint);
  color: var(--dark);
  transform: scale(1.1);
}

.paso-content {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  flex: 1;
  box-shadow: 0 2px 15px rgba(18, 80, 127, 0.06);
  border: 1px solid rgba(18, 80, 127, 0.06);
  transition: all 0.3s;
}

.paso:hover .paso-content {
  box-shadow: 0 8px 30px rgba(18, 80, 127, 0.12);
  transform: translateX(5px);
}

.paso-title {
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.paso-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.pasos-cta {
  text-align: center;
}

/* TESTIMONIALES — CAROUSEL */
#testimoniales {
  background: white;
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  /* margen negativo + padding para que no se corten las sombras hover */
  margin: -12px 0;
  padding: 12px 0;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.testimonials-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: var(--light);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(18, 80, 127, 0.1);
  border-color: var(--mint);
}

.testimonial-text {
  flex: 1;
}

/* Controles */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 80, 127, 0.18);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: var(--navy);
  width: 24px;
  border-radius: 4px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid rgba(18, 80, 127, 0.15);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(18, 80, 127, 0.08);
  flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: scale(1.08);
}

.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 640px) {
  .testimonial-card {
    flex: 0 0 82%;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }
}

.quote-mark {
  font-family: 'Special Gothic', sans-serif;
  font-size: 4rem;
  color: var(--mint);
  line-height: 0.8;
  margin-bottom: 1rem;
  display: block;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Special Gothic', sans-serif;
  font-size: 0.85rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.1rem;
}

.stars {
  color: var(--mint);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

/* FAQ */
#faq {
  background: var(--light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(18, 80, 127, 0.08);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(18, 80, 127, 0.08);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  gap: 1rem;
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item.active .faq-icon {
  background: var(--mint);
  color: var(--dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-cta {
  text-align: center;
}

/* CONTACTO */
#contactanos {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#contactanos .section-title {
  color: white;
}

#contactanos .section-tag {
  background: rgba(41, 222, 161, 0.15);
  color: var(--mint);
}

#contactanos .section-subtitle {
  color: rgba(233, 239, 244, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  color: var(--mint);
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(41, 222, 161, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-feature-text strong {
  display: block;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-feature-text span {
  color: rgba(233, 239, 244, 0.6);
  font-size: 0.85rem;
}

.contact-form {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-form p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(18, 80, 127, 0.15);
  border-radius: 10px;
  font-family: 'Teachers', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--light);
  transition: all 0.25s;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(39, 160, 137, 0.1);
}

/* ── Field validation states ── */
.form-group input.field-warn,
.wa-form-body input.field-warn {
  border-color: #f0a500 !important;
  background: #fffbf0 !important;
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.12) !important;
}
.form-group input.field-ok,
.wa-form-body input.field-ok {
  border-color: var(--teal) !important;
  background: white !important;
}
.field-msg {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  min-height: 1em;
  color: #c47a00;
  font-family: 'Teachers', sans-serif;
}
.field-msg:empty { display: none; }

/* Override para el hero form (fondo oscuro) */
.hero-form-card .form-group input.field-warn {
  border-color: #f0a500 !important;
  background: rgba(240, 165, 0, 0.08) !important;
}
.hero-form-card .field-msg { color: #ffd370; }

/* ── Premium Custom Dropdown ── */
.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  display: none;
}

.dropdown-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--light);
  border: 1.5px solid rgba(18, 80, 127, 0.15);
  border-radius: 10px;
  font-family: 'Teachers', sans-serif;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s;
  box-sizing: border-box;
  outline: none;
}

.dropdown-button:hover {
  border-color: rgba(18, 80, 127, 0.3);
  background: white;
}

.dropdown-button.is-open,
.dropdown-button:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(39, 160, 137, 0.1);
}

.dropdown-button.has-value {
  color: var(--dark);
}

.dropdown-button.select-error {
  border-color: #e05555;
  box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.1);
}

.dropdown-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gray);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-button.is-open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid rgba(18, 80, 127, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(18, 80, 127, 0.13), 0 2px 8px rgba(0,0,0,0.04);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform-origin: top center;
}

.dropdown-menu.dropdown-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu ul {
  list-style: none;
  padding: 0.35rem;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
}

.dropdown-menu ul::-webkit-scrollbar { width: 5px; }
.dropdown-menu ul::-webkit-scrollbar-track { background: transparent; }
.dropdown-menu ul::-webkit-scrollbar-thumb { background: #dde5ed; border-radius: 8px; }
.dropdown-menu ul::-webkit-scrollbar-thumb:hover { background: #c5d1db; }

.dropdown-option {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--dark);
  font-family: 'Teachers', sans-serif;
  transition: background 0.14s, color 0.14s;
}

.dropdown-option:hover {
  background: var(--light);
  color: var(--navy);
}

.dropdown-option.option-selected {
  background: rgba(39, 160, 137, 0.09);
  color: var(--teal);
  font-weight: 600;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 0.73rem !important;
  color: var(--gray) !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1.25rem;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-submit:hover::after {
  opacity: 1;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(18, 80, 127, 0.3);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* FOOTER */
footer {
  background: var(--dark);
  padding: 4rem 5vw 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 0.5rem;
}

.footer-sitemap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-brand p {
  color: rgba(233, 239, 244, 0.6);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 440px;
}

.footer-logos-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.footer-logo-img {
  width: 180px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.footer-crc-img {
  width: 130px;
  height: auto;
  display: block;
  opacity: 0.95;
  flex-shrink: 0;
}

.footer-title {
  font-family: 'Special Gothic', sans-serif;
  font-size: 0.85rem;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(233, 239, 244, 0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-item span:first-child {
  font-size: 1rem;
}

.footer-contact-item a,
.footer-contact-item p {
  color: rgba(233, 239, 244, 0.6);
  font-size: 0.82rem;
  text-decoration: none;
  line-height: 1.5;
}

.footer-contact-item a:hover {
  color: var(--mint);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(233, 239, 244, 0.6);
  font-size: 0.9rem;
  transition: all 0.25s;
}

.social-link:hover {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--mint);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  color: rgba(233, 239, 244, 0.35);
  font-size: 0.78rem;
  justify-self: start;
}

.footer-dev-credit {
  color: rgba(233, 239, 244, 0.35);
  font-size: 0.75rem;
  text-align: center;
  justify-self: center;
}

.footer-dev-credit a {
  color: rgba(233, 239, 244, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-dev-credit a:hover {
  color: var(--mint);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-self: end;
}

.footer-legal a {
  color: rgba(233, 239, 244, 0.35);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--mint);
}

/* WHATSAPP */
.wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.wa-trigger {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  transition: all 0.3s;
  border: none;
  position: relative;
  z-index: 2;
}

.wa-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

.wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.6
  }

  100% {
    transform: scale(1.6);
    opacity: 0
  }
}

.wa-form {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-form.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.wa-form-header {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.wa-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: rgba(41, 222, 161, 0.2);
  border: 1.5px solid rgba(41, 222, 161, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.wa-agent-name {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Special Gothic', sans-serif;
  letter-spacing: 0.01em;
}

.wa-agent-tagline {
  color: rgba(233, 239, 244, 0.72);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.wa-form-body {
  padding: 1.25rem;
}

.wa-bubble {
  background: rgba(18, 80, 127, 0.06);
  border: 1px solid rgba(18, 80, 127, 0.08);
  border-radius: 12px 12px 12px 4px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.wa-form-body label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.wa-form-body input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(18, 80, 127, 0.15);
  border-radius: 8px;
  font-family: 'Teachers', sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: var(--light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
}

.wa-form-body input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(39, 160, 137, 0.1);
}

.wa-send-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.wa-send-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  opacity: 0;
  transition: opacity 0.3s;
}

.wa-send-btn:hover::after {
  opacity: 1;
}

.wa-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 80, 127, 0.25);
}

.wa-send-btn svg,
.wa-send-btn span {
  position: relative;
  z-index: 1;
}

.wa-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.wa-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.placeholder-info {
  opacity: 0.6;
  font-style: italic;
}

/* RESPONSIVE */
/* ≤ 1024px: nav hamburger + footer mobile + cards 1 col
   Cubre: iPad Air (820), Surface Pro 7 (912), iPad Pro / Nest Hub (1024) */
@media (max-width: 1024px) {
  /* Nav: hamburger + logo centrado */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  nav#navbar {
    justify-content: flex-end;
    position: relative;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Corrige transform-origin para que el escalado quede centrado */
  .nav-logo-img {
    transform-origin: center center;
    margin-left: 0;
  }

  /* Scroll indicator oculto (forma apilada lo tapa en móvil/tablet) */
  .scroll-indicator {
    display: none;
  }

  /* Hero: columna — texto arriba, formulario abajo */
  #inicio {
    align-items: flex-start;
    padding: 90px 5vw 80px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .hero-form-col {
    flex: none;
    width: 100%;
  }

  /* Hero content: centrado en tablet/iPad */
  .hero-content {
    text-align: center;
    max-width: 100%;
    width: 100%;
    align-self: stretch;
  }

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

  .hero-badge {
    align-self: center;
  }

  /* Footer: layout mobile (columna, centrado) */
  .footer-grid {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
    text-align: center;
  }

  .footer-sitemap {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-logos-row {
    justify-content: center;
  }

  .footer-brand p {
    text-align: center;
    max-width: 100%;
  }

  /* Benefits: 1 columna */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Productos: carrusel transform (como testimoniales) */
  .productos-viewport {
    overflow: hidden;
    margin: -8px 0;
    padding: 8px 0;
  }

  .casos-grid {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
  }

  .casos-grid.is-dragging {
    cursor: grabbing;
    transition: none;
  }

  .caso-card {
    flex: 0 0 82vw;
    max-width: 360px;
    min-width: 260px;
  }

  .productos-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
  }
}

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

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  section {
    padding: 4rem 5vw;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 80px;
  }

  .hero-stats .stat-item:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-logo-img {
    width: 140px;
  }

  .footer-crc-img {
    width: 100px;
  }

  .footer-logos-row {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    align-items: center;
  }

  .footer-divider {
    display: block;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
  }

  .hero-mol-1 {
    width: 220px;
    right: -40px;
    opacity: 0.05;
  }

  .hero-mol-2 {
    display: none;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-copy {
    justify-self: center;
  }

  .footer-legal {
    justify-self: center;
    justify-content: center;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .pasos-line {
    left: 29px;
  }

  .nav-logo-img {
    transform: scale(2.5);
    transform-origin: center center;
    margin: 0 auto;
  }

  /* WA microform: evitar desbordamiento en pantallas pequeñas */
  .wa-form {
    width: calc(100vw - 48px);
    right: 0;
    left: auto;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  /* Productos: card más ancha en móvil */
  .caso-card {
    flex: 0 0 88vw;
    max-width: 100%;
  }
}

/* ============================================
   BRAND ASSETS — DECORATIVE ELEMENTS
   ============================================ */
.hero-deco-mol {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.hero-mol-1 {
  width: 420px;
  right: -80px;
  bottom: 10%;
  animation: molFloat 12s ease-in-out infinite;
}

.hero-mol-2 {
  width: 220px;
  left: 5%;
  top: 15%;
  animation: molFloat 9s ease-in-out infinite reverse 3s;
}

@keyframes molFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}

.casos-deco-pattern {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0.05;
  pointer-events: none;
}

/* ============================================
   HERO ENHANCED ANIMATION
   ============================================ */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: none;
  pointer-events: none;
  z-index: 0;
  animation: gridBreathe 10s ease-in-out infinite;
}

@keyframes gridBreathe {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Shimmer gradient on hero highlight */
.hero-title .highlight {
  background: linear-gradient(90deg, var(--mint) 0%, #b2f5e0 50%, var(--mint) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 5s linear 1s infinite;
}

@keyframes shimmerText {
  from {
    background-position: 200% center;
  }

  to {
    background-position: -200% center;
  }
}

/* Organic morphing blobs */
.blob-1 {
  animation: blobMorph1 14s ease-in-out infinite !important;
}

.blob-2 {
  animation: blobMorph2 18s ease-in-out infinite !important;
}

.blob-3 {
  animation: blobMorph3 10s ease-in-out infinite !important;
}

@keyframes blobMorph1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 50%;
  }

  25% {
    transform: translate(-30px, 40px) scale(1.12);
    border-radius: 42% 58% 38% 62%/54% 46% 54% 46%;
  }

  50% {
    transform: translate(25px, -20px) scale(0.93);
    border-radius: 62% 38% 56% 44%/44% 56% 44% 56%;
  }

  75% {
    transform: translate(40px, 30px) scale(1.06);
    border-radius: 50% 50% 44% 56%/50% 50% 56% 44%;
  }
}

@keyframes blobMorph2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 50%;
  }

  33% {
    transform: translate(30px, -40px) scale(1.10);
    border-radius: 56% 44% 50% 50%/38% 62% 38% 62%;
  }

  66% {
    transform: translate(-25px, 20px) scale(0.90);
    border-radius: 44% 56% 62% 38%/56% 44% 50% 50%;
  }
}

@keyframes blobMorph3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 50%;
  }

  50% {
    transform: translate(-20px, 30px) scale(1.18);
    border-radius: 58% 42% 46% 54%/42% 58% 54% 46%;
  }
}

/* Hero badge glow pulse (combined with existing fadeInUp) */
.hero-badge {
  animation: fadeInUp 0.6s ease both, badgeGlow 4s ease-in-out 2s infinite;
}

@keyframes badgeGlow {

  0%,
  100% {
    border-color: rgba(41, 222, 161, 0.4);
    box-shadow: none;
  }

  50% {
    border-color: rgba(41, 222, 161, 0.8);
    box-shadow: 0 0 24px rgba(41, 222, 161, 0.2);
  }
}

/* Stat card subtle glow pulse */
.hero-stats .stat-item {
  animation: statGlow 6s ease-in-out infinite;
}

.hero-stats .stat-item:nth-child(2) {
  animation-delay: 2s;
}

.hero-stats .stat-item:nth-child(3) {
  animation-delay: 4s;
}

@keyframes statGlow {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  50% {
    border-color: rgba(41, 222, 161, 0.3);
    box-shadow: 0 0 25px rgba(41, 222, 161, 0.1);
  }
}

/* ============================================
   SCROLL INDICATOR — fix animation override
   fadeInUp sets transform:translateY(0) via fill-mode,
   which wipes out translateX(-50%). Custom animation preserves both.
   ============================================ */
.scroll-indicator {
  animation: scrollReveal 1s ease 1s both;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================
   TESTIMONIALS — DESKTOP: 1 horizontal card
   ============================================ */
@media (min-width: 641px) {
  .testimonial-card {
    flex: 0 0 min(720px, 90%);
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem 3rem;
  }

  .tc-body {
    flex: 1;
    min-width: 0;
  }

  .testimonials-carousel .testimonial-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 170px;
    min-width: 170px;
    border-left: 2px solid rgba(18, 80, 127, 0.1);
    padding-left: 2rem;
    gap: 0.5rem;
  }

  .testimonials-carousel .author-avatar {
    width: 58px;
    height: 58px;
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .testimonials-carousel .author-name {
    font-size: 1rem;
  }

  .testimonials-carousel .author-role {
    font-size: 0.8rem;
  }
}

/* Tablet: 90% width capped at 720px */
@media (max-width: 900px) and (min-width: 641px) {
  .testimonial-card {
    flex: 0 0 min(680px, 92%);
  }
}

/* ============================================
   MOBILE FIXES
   ============================================ */
@media (max-width: 640px) {

  /* Testimonial card: stacked + centered text */
  .testimonial-card {
    flex: 0 0 82vw;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .tc-body {
    width: 100%;
  }

  .testimonials-carousel .testimonial-author {
    justify-content: center;
    flex-direction: row;
    text-align: left;
    width: auto;
    border-left: none;
    padding-left: 0;
    gap: 0.75rem;
  }
}

/* ============================================
   MOBILE VISUAL POLISH
   ============================================ */
@media (max-width: 640px) {

  /* Navbar — logo centrado */
  nav {
    justify-content: flex-end;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Hero — contenido centrado */
  .hero-content {
    text-align: center;
  }

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

  /* Beneficios — tarjetas centradas */
  .benefit-card {
    text-align: center;
  }

  .benefit-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Productos — tarjetas centradas */
  .caso-card {
    text-align: center;
  }

  /* Proceso — centrar contenido de cada paso */
  .paso {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .paso-content {
    text-align: center;
  }

  .pasos-line {
    display: none;
  }

  /* Contacto — sección info centrada */
  .contact-info {
    text-align: center;
  }

  .contact-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ============================================
   PRIVACY MODAL
   ============================================ */
.privacy-link {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(233, 239, 244, 0.6);
  font-size: 0.85rem;
  font-family: 'Teachers', sans-serif;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.privacy-link:hover {
  color: var(--mint);
}

.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 45, 71, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

.privacy-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.privacy-modal-box {
  position: relative;
  background: var(--dark);
  border: 1px solid rgba(41, 222, 161, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s ease;
}

.privacy-modal-overlay.open .privacy-modal-box {
  transform: translateY(0) scale(1);
}

.privacy-modal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 24px;
}

.privacy-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.privacy-modal-close:hover {
  background: rgba(41, 222, 161, 0.25);
}

.privacy-modal-scroll {
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.privacy-modal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-modal-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

.privacy-modal-header h2 {
  font-family: 'Special Gothic', sans-serif;
  color: white;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.privacy-modal-company {
  font-size: 0.85rem;
  color: var(--mint);
  font-weight: 600;
}

.privacy-modal-body h3 {
  font-family: 'Special Gothic', sans-serif;
  color: var(--mint);
  font-size: 1rem;
  margin: 1.75rem 0 0.6rem;
}

.privacy-modal-body p {
  color: rgba(233, 239, 244, 0.8);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.privacy-modal-body ul {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.privacy-modal-body li {
  color: rgba(233, 239, 244, 0.75);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.privacy-modal-body a {
  color: var(--mint);
}

.privacy-modal-body strong {
  color: white;
}

.privacy-modal-date {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(233, 239, 244, 0.4);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

/* ============================================
   DISTRIBUTED BRAND DECORATIVES
   ============================================ */
.section-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.deco-mol-sm {
  width: 140px;
  opacity: 0.06;
}

.deco-mol-md {
  width: 220px;
  opacity: 0.05;
}

.deco-pattern {
  width: 280px;
  opacity: 0.04;
}

@keyframes decoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(6deg);
  }
}

.deco-anim-1 {
  animation: decoFloat 14s ease-in-out infinite;
}

.deco-anim-2 {
  animation: decoFloat 10s ease-in-out infinite reverse 4s;
}

.deco-anim-3 {
  animation: decoFloat 18s ease-in-out infinite 2s;
}

@media (max-width: 640px) {
  .deco-mol-sm {
    width: 90px;
  }

  .deco-mol-md {
    width: 140px;
  }

  .deco-pattern {
    display: none;
  }

  .privacy-modal-scroll {
    padding: 1.5rem;
  }

  .privacy-modal-header h2 {
    font-size: 1.3rem;
  }
}

/* =============================================
   B-TEST STYLES
   ============================================= */

/* Hero centrado (sin formulario) */
.hero-inner--centered {
  justify-content: center;
  text-align: center;
}

.hero-content--centered {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.hero-micro-proof {
  font-size: 0.85rem;
  color: rgba(233, 239, 244, 0.6);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.6s ease 0.55s both;
}

/* Trust Bar */
.trust-bar {
  background: var(--light);
  padding: 2.5rem 5vw;
  text-align: center;
}

.trust-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.trust-bar-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.25rem;
}

.trust-brand {
  font-family: 'Special Gothic', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.trust-brand:hover {
  opacity: 1;
}

.trust-sep {
  color: var(--mint);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0.5rem;
}

/* Dolor / Problema Section */
.dolor-section {
  background: var(--white);
}

.dolor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.dolor-card {
  background: #fff;
  border: 1px solid rgba(18, 80, 127, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dolor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(18, 80, 127, 0.12);
}

.dolor-icon {
  margin-bottom: 1.25rem;
}

.dolor-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.dolor-card-title {
  font-family: 'Special Gothic', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.dolor-card-text {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
}

.dolor-cta {
  text-align: center;
  margin-top: 3rem;
}

.dolor-cta p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Sticky CTA Móvil */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--mint);
  color: var(--dark);
  font-family: 'Special Gothic', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.3s;
}

.sticky-cta-btn:hover {
  background: #22c88e;
}

@media (max-width: 1024px) {
  .sticky-cta {
    display: block;
  }

  /* Compensar espacio del sticky CTA en el footer */
  footer {
    padding-bottom: 5rem;
  }

  /* Ajustar WA button para no chocar con sticky */
  .wa-btn {
    bottom: 5rem;
  }
}

/* Dolor responsive */
@media (max-width: 768px) {
  .dolor-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .trust-bar-brands {
    gap: 0.5rem 0.15rem;
  }

  .trust-brand {
    font-size: 0.8rem;
  }

  .trust-sep {
    margin: 0 0.3rem;
  }

  .hero-micro-proof {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .trust-bar-brands {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trust-sep {
    display: none;
  }
}

/* Consent checkbox — agregado 2026-04-14 para deploy polizas.saquimi.com.mx */
.form-consent { margin: 12px 0 8px; }
.form-consent .consent-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.78); }
.form-consent input[type="checkbox"] { margin-top: 3px; accent-color: #29DEA1; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.privacy-inline-link { background: none; border: 0; padding: 0; color: #29DEA1; text-decoration: underline; cursor: pointer; font: inherit; }
.privacy-inline-link:hover { color: #27A089; }

/* Focus visible — WCAG AA */
*:focus-visible { outline: 2px solid #29DEA1; outline-offset: 2px; border-radius: 3px; }
