

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #266490;
  background-color: #f9fafb;
}

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

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

/* -------- LAYOUT BÁSICO -------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 250, 251, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
}

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

/* -------- LOGO -------- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.logo-img {
  height: 48px;   /* antes 32px */
  width: auto;
  display: block;
}


.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
}

/* -------- BOTONES -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.17s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #266490;
  color: #f9fafb;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.35);
}

.btn-outline {
  background: transparent;
  color: #266490;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background: #266490;
  color: #f9fafb;
  border-color: #266490;
}

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

/* -------- HERO -------- */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: #266490;
}

.hero-highlight {
  background: linear-gradient(120deg, #266490, #4b5563);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-footnote {
  font-size: 0.75rem;
  color: #6b7280;
}

.hero-image-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  border: 1px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  padding: 0 1rem;
}

/* -------- SECCIONES GENÉRICAS -------- */
.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #266490;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* -------- VIDEO -------- */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  background: #000;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------- BENEFICIOS -------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  text-align: center;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* ICONO GRANDE (ÚNICA DEFINICIÓN) */
.feature-icon {
  margin-left: auto;
  margin-right: auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: #f9fafb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.feature-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.feature-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.feature-text {
  font-size: 0.85rem;
  color: #6b7280;
}

/* -------- MAPA -------- */
.map-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  background: #e5e7eb;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------- CTA / FORMULARIO -------- */
.cta-section {
  background: #266490;
  color: #f9fafb;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.cta-small {
  font-size: 0.75rem;
  color: #9ca3af;
}

.form-card {
  background: #f9fafb;
  color: #266490;
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

input,
textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  background: #ffffff;
}

input:focus,
textarea:focus {
  border-color: #266490;
  box-shadow: 0 0 0 1px #266490;
}

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

.form-footnote {
  font-size: 0.7rem;
  color: #6b7280;
}

/* -------- FOOTER -------- */
footer {
  padding: 2rem 0 1.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-section {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-section {
    padding: 1.5rem 1.25rem;
  }
}

/* -------- HERO CAROUSEL -------- */
.hero-carousel {
  width: 100%;
  background: #0b1220; /* fallback si no carga imagen */
}

.carousel {
  position: relative;
  width: 100%;
  height: clamp(340px, 52vw, 560px); /* full banner responsive */
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 450ms ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(17, 24, 39, 0.35);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  background: rgba(17, 24, 39, 0.55);
}

.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

/* Mobile: flechas un poco más chicas */
@media (max-width: 640px) {
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}

.form-card {
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.cta-section.single {
  max-width: 820px;   /* controla el ancho del fondo azul */
  margin: 0 auto;     /* lo centra */
  background: #266490;
  border-radius: 1.8rem;
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}

/* Formulario centrado */
.cta-section.single .form-card {
  width: 100%;
  max-width: 460px;
  background: #f9fafb;
  border-radius: 1.2rem;
  padding: 1.6rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-right a {
  color: #6b7280;
  font-size: 0.85rem;
}

.footer-right a:hover {
  color: var(--brand-primary);
}

/* Mobile */
@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(38, 100, 144, 0.10);
  border: 1px solid rgba(38, 100, 144, 0.25);
  color: #266490;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-email:hover {
  background: rgba(38, 100, 144, 0.16);
}
