@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────── */
:root {
  --primary:    #0A3D62;
  --accent:     #1ABC9C;
  --action:     #E67E22;
  --dark:       #2C3E50;
  --light:      #F4F6F7;
  --white:      #ffffff;
  --text:       #374151;
  --text-muted: #6B7280;
  --border:     #E5E7EB;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.3s var(--ease);
}

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 1.25rem 0;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.navbar.scrolled {
  background: rgba(44, 62, 80, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  padding: 0.7rem 0;
}
.navbar-brand img {
  height: 80px;
  transition: height var(--t);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}
.navbar.scrolled .navbar-brand img { height: 64px; }

.nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  padding: 0.5rem 1rem !important;
  transition: color var(--t);
}
.nav-link:hover { color: var(--accent) !important; }
.nav-link.active { color: var(--accent) !important; font-weight: 700; }

.btn-nav {
  background: var(--accent);
  color: white !important;
  border-radius: 50px;
  padding: 0.5rem 1.5rem !important;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--t);
  border: none;
}
.btn-nav:hover {
  background: #16a085;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,188,156,0.4);
}
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.6rem;
}
.navbar-toggler-icon { filter: invert(1); }

/* ─── Hero ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1b2c3a 0%, var(--dark) 45%, var(--primary) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,188,156,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,126,34,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,188,156,0.14);
  border: 1px solid rgba(26,188,156,0.3);
  color: var(--accent);
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}
.hero h1 .text-accent { color: var(--accent); }
.hero .hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--t);
}
.btn-hero-primary:hover {
  background: #16a085;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,188,156,0.42);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.28);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  transition: all var(--t);
}
.btn-hero-secondary:hover {
  color: white;
  border-color: white;
  background: rgba(255,255,255,0.08);
}

/* Floating stat cards */
.hero-visual {
  position: relative;
  height: 420px;
}
.stat-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  min-width: 160px;
  animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(1) { top: 8%;   left: 4%;   animation-delay: 0s;   }
.stat-card:nth-child(2) { top: 4%;   right: 6%;  animation-delay: 1.2s; }
.stat-card:nth-child(3) { bottom: 28%; left: 12%; animation-delay: 2.1s; }
.stat-card:nth-child(4) { bottom: 8%;  right: 4%; animation-delay: 0.6s; }

.stat-card .sc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(26,188,156,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.stat-card .sc-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.stat-card .sc-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
  white-space: nowrap;
}

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

/* ─── Stats Bar ─────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 1.75rem 0;
}
.stat-item {
  text-align: center;
  color: white;
  padding: 1rem 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  margin-top: 0.3rem;
  display: block;
}

/* ─── Sections general ──────────────────────── */
section { padding: 5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 640px;
  margin: 0 auto 0;
  text-align: center;
}

/* ─── Feature Cards (Beneficios) ────────────── */
.feature-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--t);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-1 .card-icon { background: rgba(26,188,156,0.12);  color: var(--accent);  }
.card-2 .card-icon { background: rgba(230,126,34,0.12);  color: var(--action);  }
.card-3 .card-icon { background: rgba(10,61,98,0.10);    color: var(--primary); }
.card-4 .card-icon { background: rgba(26,188,156,0.12);  color: var(--accent);  }

.feature-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.68;
  flex-grow: 1;
}
.btn-card {
  margin-top: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--t), color var(--t);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.btn-card:hover { gap: 0.65rem; color: #16a085; }

/* ─── Methodology ───────────────────────────── */
.method-section { background: var(--light); }
.method-steps { position: relative; }
.method-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0.25;
  pointer-events: none;
}
.method-step { text-align: center; position: relative; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  transition: all var(--t);
}
.method-step:hover .step-num {
  background: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(26,188,156,0.38);
}
.method-step h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.method-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 200px;
  margin: 0 auto;
}

/* ─── Vision ────────────────────────────────── */
.vision-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.vision-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(26,188,156,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.vision-text strong {
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}
.vision-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.roadmap-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: white;
  margin-bottom: 0.75rem;
  border: 1.5px solid var(--border);
  transition: all var(--t);
}
.roadmap-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.roadmap-year {
  background: var(--primary);
  color: white;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.roadmap-item p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ─── Contacto ──────────────────────────────── */
#contacto {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 5rem 0;
}
#contacto .section-title { color: white; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
}
.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26,188,156,0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-box .form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  display: block;
}
.form-box .form-control,
.form-box .form-select {
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-box .form-control:focus,
.form-box .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,61,98,0.1);
  outline: none;
}
.btn-submit {
  background: var(--action);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  transition: all var(--t);
  margin-top: 0.25rem;
}
.btn-submit:hover {
  background: #d35400;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.42);
}
.btn-submit:disabled,
.btn-submit:disabled:hover {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Modals ────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.modal-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.modal-body { padding: 1.75rem 2rem; }
.modal-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: none;
}
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modal-list li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.modal-list li:last-child { border-bottom: none; }
.modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.modal-result-box {
  background: rgba(26,188,156,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* ─── Team Section ──────────────────────────── */
.team-img-wrap {
  position: relative;
  padding-bottom: 2.5rem;
  padding-right: 2rem;
}
.team-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.team-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  border-radius: var(--radius);
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
  .team-img-wrap { padding-bottom: 1.5rem; padding-right: 1rem; }
  .team-img-secondary { width: 45%; }
}

/* ─── Value Cards (Nosotros) ────────────────── */
.value-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.value-card .card-icon { margin: 0 auto 1rem; }

/* ─── Footer ────────────────────────────────── */
footer {
  background: #1a2530;
  padding: 3.5rem 0 1.75rem;
}
.footer-brand img {
  height: 46px;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 260px;
}
footer h6 {
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.1rem;
}
footer a {
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--t);
  display: block;
  margin-bottom: 0.5rem;
}
footer a:hover { color: var(--accent); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.52);
  font-size: 0.875rem;
}
.footer-social:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.35);
}

/* ─── WhatsApp ──────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(37,211,102,0.42);
  transition: all var(--t);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

/* ─── Scroll Animations ─────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.30s; }
.fade-up.d4 { transition-delay: 0.40s; }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 991px) {
  .method-line { display: none; }
  .navbar-collapse {
    background: rgba(44,62,80,0.97);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    padding: 1rem;
  }
  .btn-nav { margin-top: 0.5rem; display: inline-block; }
}

@media (max-width: 767px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 7rem 0 3rem; min-height: auto; }

  /* Hero visual: de absolutos flotantes a grid 2x2 */
  .hero-visual {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .stat-card {
    position: static;
    animation: none;
    min-width: 0;
    padding: 1rem;
  }
  .stat-card .sc-num { font-size: 1.5rem; }
  .stat-card .sc-label { white-space: normal; }

  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .form-box { padding: 1.75rem 1.25rem; }

  .section-title { font-size: 1.75rem; }
  .vision-item { flex-direction: row; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 575px) {
  .hero .d-flex.gap-3 { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
}

/* ─── Fix form success visibility ──────────── */
#mensaje-exito { display: none; }
