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

:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --accent: #00D8D6;
  --secondary: #FF9F40;
  --purple: #A855F7;
  --green: #10B981;
  --bg: #F7F9FC;
  --text: #1F2933;
  --muted: #6B7280;
  --card-bg: #ffffff;
  --footer-bg: #1A202C;
  --footer-text: #E2E8F0;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --transition: 0.25s ease;
  --max-width: 1120px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #E4EEFF 0, #F7F9FC 40%, #FFFFFF 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.82);
  /* border-bottom: 1px solid rgba(148, 163, 184, 0.25); */
  transition: transform 0.3s ease-in-out;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 18px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--purple), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.35);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  padding: 6px 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: width var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border-radius: 6px;
  border: none;
  padding: 14px 23px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(52, 152, 219, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(52, 152, 219, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
  background: rgba(226, 232, 240, 0.6);
}

main {
  padding-bottom: 64px;
}

.hero {
  padding: 45px 0 100px;
  min-height: 88.5vh;
  /* border-bottom: 1px solid black; */
  position: relative;
  overflow: visible;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* ... existing commented code ... */

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  max-width: 600px;
  height: 65%;
  background-image: url('fondo-esquina-sincuadro.png');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
  animation: slide-corner-in 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slide-corner-in {
  0% {
    opacity: 0;
    transform: translate(100px, 100px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero::after {
    width: 80%;
    height: 40%;
    /* opacity: 0.6; */
  }

  .hero-vertical-layout {
    gap: 30px;
  }

  .hero-visual-top {
    flex-direction: column;
    gap: 20px;
  }

  .hero-logo-large {
    max-width: 200px;
  }
}

.hero-vertical-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-top: 20px;
}

.hero-visual-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-logo-large {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(52, 152, 219, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-content-bottom {
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content-bottom .hero-tags,
.hero-content-bottom .hero-cta,
.hero-content-bottom .hero-kpis {
  justify-content: center;
}

.hero-content-bottom .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 25px;
}

.hero h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 49px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.8rem;
}

.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  border: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.08);
  font-weight: 500;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: initial-wave 2s ease-out forwards;
  opacity: 0; /* Start hidden for animation */
}

@keyframes initial-wave {
  0% { 
    opacity: 0;
    transform: translateY(10px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.15);
  }
  60% {
    transform: translateY(0);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tag:nth-child(1) { animation-delay: 0.5s; }
.tag:nth-child(2) { animation-delay: 0.7s; }
.tag:nth-child(3) { animation-delay: 0.9s; }
.tag:nth-child(4) { animation-delay: 1.1s; }

.tag:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.15);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-kpi strong {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(52, 152, 219, 0.12), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #111827;
}

.hero-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.hero-card-body {
  display: grid;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hero-label {
  color: #4B5563;
}

.hero-value {
  font-weight: 600;
  color: #111827;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-badge {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background: rgba(248, 250, 252, 0.9);
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.benefits-stats-card {
  /* background: var(--card-bg); */
  border-radius: var(--radius);
  padding: 30px;
  /* border: 1px solid rgba(148, 163, 184, 0.2); */
  /* box-shadow: var(--shadow); */
  display: flex;
  justify-content: space-around;
  gap: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.benefit-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 15px;
  border-radius: 12px;
  transition: all var(--transition);
  cursor: default;
  flex: 1;
}

.benefit-stat:hover {
  /* background: rgba(52, 152, 219, 0.05); */
  transform: translateY(-5px);
}

.benefit-stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  order: -1;
  margin-bottom: 4px;
  transition: transform var(--transition);
}

.benefit-stat:hover .benefit-stat-number {
  transform: scale(1.1);
}

.stat-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.12);
  border: 1px solid rgba(52, 152, 219, 0.1);
  transition: all var(--transition);
}

.benefit-stat:hover .stat-circle {
  background: var(--primary);
  color: white;
  transform: rotate(10deg);
}

.benefit-stat:hover .stat-circle i {
  color: white;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.benefit-stat-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .benefits-stats-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Estilos decorativos para fondos */
.section-bg-gradient {
  position: relative;
  background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(0, 216, 214, 0.05), transparent 40%);
}

.benefit-item-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px;
  /* background: white; */
  border-radius: var(--radius);
  transition: all var(--transition);
  /* border: 1px solid rgba(52, 152, 219, 0.1); */
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.05);
}

.benefit-item-v2:hover {
  /* background: white; */
  box-shadow: 0 15px 35px rgba(44, 126, 180, 0.219);
  transform: translateY(-5px);
  /* border-color: rgba(52, 152, 219, 0.3); */
}

.benefit-item-v2 i {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(52, 152, 219, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}

.benefit-item-v2:hover i {
  background: var(--primary);
  color: white;
  transform: rotate(10deg);
}

.benefit-item-v2 h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.benefit-item-v2 p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

section {
  padding: 40px 0 10px;
}

section {
  border-top: 1px solid rgba(52, 152, 219, 0.08);
  position: relative;
}

section:nth-of-type(even) {
  background: rgba(248, 250, 252, 0.4);
}

.hero {
  border-top: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-header h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius);
  padding: 19px;
  border: 1px solid rgba(48, 153, 223, 0.205); 
  box-shadow: 0 10px 12px rgba(15, 23, 42, 0.185);
  /* transition: all 1s ease-in-out;  */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding-bottom: 70px; /* Espacio extra para la imagen */
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 70px;
  width: 76%;
  height: 132px; /* Ajusta esto según el alto visible que quieras de la imagen */
  background-image: url('fondo-esquina-sincuadro-pequeña.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* hacer mas grande al pasar el mouse */
.card:hover {
  transform: scale(1.01) !important;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.8);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(52, 152, 219, 0.1); */
  color: black;
  /* margin-bottom: 16px; Eliminado porque ahora se maneja en el header flex */
  font-size: 1.4rem;
  transition: all 0.1s ease-in-out;
  flex-shrink: 0; /* Evita que el icono se aplaste */
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0; /* Eliminado el margen inferior ya que está centrado verticalmente */
  text-align: left;
  line-height: 1.3;
}

.card p {
  font-size: 0.84rem;
  color: #283547;
  margin-bottom: 8px;
}

/* Módulos Background Animado */
.section-modules-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.relative-z2 {
  position: relative;
  z-index: 2;
}

.modules-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.module-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.6;
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(3, 147, 243, 0.178);
  animation: orbit-1 10s infinite linear;
}

.shape-2 {
  bottom: 20%;
  right: 15%;
  width: 300px;
  height: 300px;
  /* background: rgba(20, 138, 216, 0.274); */
  background: rgba(134, 63, 201, 0.116);
  animation: orbit-2 15s infinite linear;
}

.shape-3 {
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: rgba(14, 219, 216, 0.164);
  animation: orbit-3 10s infinite linear;
}

.shape-4 {
  top: 20%;
  right: 40%;
  width: 250px;
  height: 250px;
  background: rgba(139, 57, 216, 0.123); /* Un toque morado sutil */
  animation: orbit-4 15s infinite linear;
}

@keyframes orbit-1 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(300px, 100px) scale(1.1); }
  50% { transform: translate(500px, 400px) scale(0.9); }
  75% { transform: translate(100px, 300px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbit-2 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-400px, -200px) scale(1.1); }
  66% { transform: translate(-200px, -400px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbit-3 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-300px, 200px) scale(1.2); }
  50% { transform: translate(-100px, -200px) scale(0.8); }
  75% { transform: translate(300px, -100px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbit-4 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(200px, -200px) scale(0.9); }
  50% { transform: translate(-200px, 100px) scale(1.1); }
  75% { transform: translate(-100px, -300px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.card-tag {
  font-size: 0.74rem;
  color: #4B5563;
  padding: 4px 10px;
  /* border: 1px solid rgb(35, 56, 148); */
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
  display: inline-block;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4B5563;
}

.step span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(52, 152, 219, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.highlight {
  color: var(--accent);
  font-size: 0.78rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.trust-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.trust-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}

.cta-final {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: 24px;
  padding: 22px 20px;
  color: #E5E7EB;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.45);
  margin-top: 24px;
}

.cta-final h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.cta-final p {
  font-size: 0.86rem;
  color: #E5E7EB;
  margin-bottom: 10px;
}

.cta-form {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr;
  gap: 10px;
}

.input {
  border-radius: 999px;
  border: none;
  padding: 9px 12px;
  font-size: 0.82rem;
  outline: none;
  background: rgba(15, 23, 42, 0.25);
  color: #F9FAFB;
}

.input::placeholder {
  color: #94A3B8;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-img {
  /* background: white; */
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 280px;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #94A3B8;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.1rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #64748B;
  font-size: 1.2rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: white;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-form-wrapper {
   background: white;
   padding: 40px;
   border-radius: 24px;
   box-shadow: 0px 20px 50px rgba(15, 23, 42, 0.267);
   border: 1px solid rgba(52, 152, 219, 0.1);
 }

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text);
}

.contact-group {
  margin-bottom: 20px;
}

.contact-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.contact-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  background: white;
}

.contact-info-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-info-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-features {
  list-style: none;
  padding: 0;
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text);
}

.contact-features i {
  color: var(--primary);
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  
  .contact-info-content {
    order: -1;
    text-align: center;
  }

  .contact-features li {
    justify-content: center;
  }
}

.support-section {
  background: white;
  border-radius: var(--radius);
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(52, 152, 219, 0.1);
  box-shadow: var(--shadow);
}

.support-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}

.support-content p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 500px;
}

.btn-support {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.btn-support:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
  color: white;
}

@media (max-width: 768px) {
  .support-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .support-content p {
    margin-bottom: 20px;
  }
}

.btn-dark {
  background: #111827;
  color: #F9FAFB;
  border-radius: 999px;
  padding: 9px 16px;
  border: none;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-dark:hover {
  transform: translateY(-1px);
  background: #020617;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.7);
}

footer {
  padding: 26px 0 18px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.76rem;
  color: #4B5563;
}

@media (max-width: 920px) {
  .logo-img {
    height: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .cta-final {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    padding-top: 100px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 100%;
  }

  .nav-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    margin-top: 4px;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }
.delay-1500 { transition-delay: 1.5s; }

/* FIX: Combinar transiciones para que el hover de la card funcione bien */
.card.animate-on-scroll {
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease, border-color var(--transition);
}
