/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:   #00237c;
  --color-blue:      #2D67E8;
  --color-text:      #17171b;
  --color-light-bg:  #f3f3f3;
  --color-white:     #ffffff;
  --font:            'Space Grotesk', sans-serif;
  --max-w:           1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-light-bg);
  line-height: 1.65;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
/* Ajustes para el badge de reCAPTCHA v3 */
.grecaptcha-badge {
    z-index: 9999 !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
}

/* Ajuste para el ícono flotante de WhatsApp (si usas la clase .whatsapp-float) */
.whatsapp-float {
    z-index: 9998 !important;
}
/* ============================================
   NAVBAR
============================================ */

.nav-links {
  display: flex;
  gap: 40px; /* ← antes 25, súbelo */
  align-items: center;
  margin-left: auto;
  margin-right: 40px; /* espacio antes del botón */
  color: white;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  color: white;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
  transition: 0.3s;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
}
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 15px 100px;
  display: flex;
  align-items: center;
  gap: 20px;  
  
}
.navbar.scrolled {
  position: fixed;
  background: var(--color-primary);
  padding: 10px 100px;
}

.navbar .logo img { width: 104px; }

.navbar .nav-cta {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-blue);
  color: var(--color-white);
  border: 1px solid var(--color-blue);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  transition: background .2s, border-color .2s;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar .nav-cta:hover {
  background: transparent;
  border-color: var(--color-white);
}

/* Mobile nav */
.navbar-mobile {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
}
.navbar-mobile .logo img { width: 100px; }
.navbar-mobile .nav-login {
  padding: 12px 20px;
  color: var(--color-white);
  font-size: 14px;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 220px 100px 150px;
  background-image: url('../images/hero-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #00237C;
  opacity: 0.65;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 849px;
}
.hero h1 {
  font-size: 72px;
  font-weight: 500;
  line-height: 1em;
  color: var(--color-white);
  margin-bottom: 0;
}
.hero .hero-sub {
  font-size: 25px;
  font-weight: 300;
  line-height: 46px;
  color: var(--color-white);
  padding: 30px 0;
  max-width: 800px;
}

.btn-primary {
  display: inline-block;
  padding: 16px 30px;
  background: var(--color-blue);
  color: var(--color-white);
  border: 1px solid var(--color-blue);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  text-transform: capitalize;
  transition: background .2s, border-color .2s;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary:hover {
  background: transparent;
  border-color: var(--color-white);
}

/* ============================================
   NOSOTROS
============================================ */
.nosotros {
  background: #17171B;
  padding: 100px 20px;
}
.nosotros-inner {
  display: flex;
  justify-content: flex-end;
}
.checklist {
  list-style: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7em;
  color: #F3F3F3;
  padding: 10px 0;
}
.checklist li + li { border-top: 1px solid rgba(255,255,255,0.08); }
.checklist li svg {
  flex-shrink: 0;
  margin-top: 4px;
  width: 20px;
  height: 20px;
  fill: var(--color-blue);
}

/* ============================================
   FEATURES (3 cards)
============================================ */
.features {
  background: var(--color-light-bg);
  padding: 70px 20px 50px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-blue);
  border-radius: 31px;
  padding: 20px;
}
.feature-card .icon {
  margin-bottom: 20px;
}
.feature-card .icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-blue);
}
.feature-card h2 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.136em;
  letter-spacing: -0.6px;
  color: var(--color-blue);
  margin-bottom: 40px;
}
.feature-card p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65em;
  color: var(--color-text);
}

/* ============================================
   STATS
============================================ */
.stats {
  background: var(--color-light-bg);
  padding: 7% 10% 9%;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  margin-top: 5%;
}
.stat-item {
  flex: 0 0 auto;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 35px;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.2em;
  text-transform: capitalize;
}
.stat-item .stat-label {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5em;
  max-width: 200px;
}

/* ============================================
   CONTACT
============================================ */
.contact {
  position: relative;
  padding: 15% 5%;
  background-color: var(--color-primary);
  background-image: url('../images/contact-bg.jpg');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  opacity: 0.65;
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 50px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact-left {
  flex: 0 0 45%;
  padding-right: 5%;
}
.contact-left h2 {
  font-size: 60px;
  font-weight: 600;
  line-height: 1em;
  color: #F3F3F3;
  margin-bottom: 30px;
}
.contact-left p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65em;
  color: #F3F3F3;
}
.contact-left a {
  color: #60a5fa;
}

/* Form */
.contact-form-wrapper { flex: 1; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 6px;
}
.form-group label .required { color: #F87171; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  color: #17171b;
  font-size: 16px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-white); }
.form-group textarea { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

.btn-submit {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 30px;
  background: var(--color-blue);
  color: var(--color-white);
  border: 1px solid var(--color-blue);
  border-radius: 32px;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-submit:hover { background: transparent; border-color: var(--color-white); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

#form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}
#form-status.success { color: #4ade80; }
#form-status.error   { color: #f87171; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--color-light-bg);
  padding: 1% 3%;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner > div {
  min-width: 200px;
}
.footer-logo img { width: 120px; }

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-blue);
  font-size: 16px;
}
.footer-contact svg {
  width: 16px; height: 16px;
  fill: var(--color-blue);
  flex-shrink: 0;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--color-blue);
  border-radius: 34px;
  transition: opacity .2s;
}
.footer-social a:hover { opacity: 0.8; }
.footer-social svg { width: 17px; height: 17px; fill: var(--color-white); }

.footer-bottom { background: #eeeeee; padding: 16px 24px; }
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  /* se mantiene TODO lo que ya tienes */
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  /* SOLO se corrige esto */
  flex-direction: row;
}
.footer-links a { font-size: 14px; color: var(--color-text); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 16px; color: var(--color-text); white-space: nowrap;}
.contact-text a {
  color: #60a5fa; /* azul bonito tipo Elementor */
  text-decoration: none;
  font-weight: 500;
}
.contact-text a {
  color: #60a5fa;
  font-weight: 500;
}
.contact-left .contact-text a {
  color: #60a5fa;
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* hover suave */
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* animación tipo WP */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.mobile-only {
  display: none;
}
.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.legal h1 {
  margin-bottom: 20px;
}

.legal h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.legal p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
  }

  .navbar .nav-cta {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .navbar        { padding: 30px 40px 20px; }
  .navbar.scrolled { padding: 10px 40px; }
  .hero          { padding: 150px 20px 70px; }
  .hero h1       { font-size: 80px; line-height: 95px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats         { padding: 0% 2% 10%; }
  .contact       { padding: 6% 5% 10%; }
  .contact-inner { flex-direction: column; }
  .contact-left  { flex: none; padding-right: 0; }
  .contact-left h2 { font-size: 80px; line-height: 95px; }
}


@media (max-width: 900px) {
  .navbar             { display: none; }
  .navbar-mobile      { display: flex; }
  .hero               { padding: 151px 20px 120px; }
  .hero h1            { font-size: 40px; line-height: 1.15em; }
  .hero .hero-sub     { font-size: 20px; line-height: 1.4em; }
  .nosotros           { padding: 68px 20px; }
  .checklist li       { font-size: 16px; }
  .features           { padding: 20px 20px 0; }
  .features-grid      { grid-template-columns: 1fr; }
  .feature-card       { margin-bottom: 20px; padding: 14px; }
  .stats              { padding: 15% 5% 5%; }
  .stats-grid         { gap: 20px; }
  .stat-item .stat-number { font-size: 30px; }
  .contact            { padding: 17% 5% 20%; }
  .contact-left h2    { font-size: 47px; line-height: 1.15em; }
  .form-row           { grid-template-columns: 1fr; }
  .footer-inner       { flex-direction: column; align-items: center; }
  .footer-bottom-inner { flex-direction: column; align-items: center; }
  .mobile-only {
    display: inline-block;
  }
}
