/* ── VARIABLES Y RESET ── */
:root {
  --azul-principal: #00387b;
  --azul-oscuro: #002a5c;
  --azul-profundo: #001d42;
  --azul-claro: #dce8f5;
  --azul-fondo: #f0f5fb;
  --azul-borde: #b3cde6;
  --azul-menta: #c8ddf0;
  --azul-neon: #5a9fd6;
  --azul-soft: #8dbde6;
  --texto-oscuro: #0a1a2e;
  --texto-gris: #4b5563;
  --texto-gris-claro: #6b7280;
  --blanco: #fff;
  --wa-color: #25D366;
  --telegram-color: #229ED9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --sombra-suave: 0 20px 50px rgba(0,0,0,0.1);
  --sombra-wa: 0 8px 30px rgba(37,211,102,0.4);
  --sombra-azul: 0 8px 30px rgba(0,56,123,0.4);
  --sombra-telegram: 0 8px 30px rgba(34,158,217,0.4);
  --transicion: all 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--azul-fondo);
  color: var(--texto-oscuro);
  line-height: 1.65;
  font-size: 16px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--azul-oscuro);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  height: 100px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (min-width: 768px) {
  .header-logo img {
    height: 100px;
  }
}

.nav-links {
  display: none;
  gap: 1.5rem;
  z-index: 210;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--blanco);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blanco);
  padding: 8px 18px;
  border-radius: 10px;
  border: 2px solid var(--blanco);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--blanco);
  color: var(--azul-oscuro);
}

/* ── HAMBURGUESA ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 220;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--blanco);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ── MENÚ MÓVIL ── */
.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul-principal);
  color: var(--blanco);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background 0.3s;
}

.nav-cta-mobile:hover {
  background: #002a5c;
}

@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--azul-fondo);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 0;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 210;
  }

  .nav-links.open {
    display: flex;
    right: 0;
  }

  .nav-links a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--azul-menta);
  }

  .nav-cta {
    display: none !important;
  }

  .nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* ── OVERLAY MÓVIL ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
}

.nav-overlay.active {
  display: block;
}

@media (min-width: 768px) {
  .header-inner {
    position: relative;
  }

  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    align-items: center;
    z-index: 210;
    margin: 0;
    padding: 0;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .nav-cta-mobile {
    display: none;
  }
}

/* ── HERO PANTALLA COMPLETA ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 20, 50, 0.92) 0%,
    rgba(0, 20, 50, 0.5) 40%,
    rgba(0, 20, 50, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  color: var(--blanco);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 56, 123, 0.2);
  border: 1px solid rgba(0, 56, 123, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--azul-soft);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero h1 span {
  color: var(--azul-neon);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── BOTONES GENÉRICOS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transicion);
  font-family: inherit;
}

.btn i {
  font-size: 1.2rem;
}

.btn-wa {
  background: var(--wa-color);
  color: var(--blanco);
  box-shadow: var(--sombra-wa);
}

.btn-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-green {
  background: var(--azul-principal);
  color: var(--blanco);
  box-shadow: var(--sombra-azul);
}

.btn-green:hover {
  background: #002a5c;
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--azul-principal);
  border: 2px solid var(--azul-principal);
}

.btn-outline-green:hover {
  background: var(--azul-principal);
  color: var(--blanco);
}

/* ── GALERÍA HORIZONTAL ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-item {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 20, 50, 0.7);
  backdrop-filter: blur(6px);
  color: var(--azul-menta);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── SECCIONES GENÉRICAS ── */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-center {
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--azul-principal);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--texto-gris);
  margin-bottom: 2.5rem;
}

/* ── BENEFICIOS (timeline vertical) ── */
.timeline {
  display: grid;
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.tl-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.tl-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--azul-claro);
  border: 2px solid var(--azul-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
}

.tl-item:hover .tl-icon {
  background: var(--azul-principal);
  border-color: var(--azul-principal);
}

.tl-icon .material-symbols-outlined {
  font-size: 26px;
  color: var(--azul-principal);
}

.tl-item:hover .tl-icon .material-symbols-outlined {
  color: var(--blanco);
}

.tl-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tl-content p {
  font-size: 0.95rem;
  color: var(--texto-gris);
}

/* ── SEGURIDAD (fondo azul oscuro) ── */
.security {
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-profundo));
  padding: 4rem 1.5rem;
  color: var(--blanco);
}

.security-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.security h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.security-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.02rem;
  margin-bottom: 2.5rem;
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.sec-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(90, 159, 214, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.2rem;
  transition: var(--transicion);
}

.sec-card:hover {
  border-color: rgba(90, 159, 214, 0.5);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.sec-card .material-symbols-outlined {
  font-size: 2.6rem;
  color: var(--azul-neon);
  display: block;
  margin-bottom: 1rem;
}

.sec-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.sec-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ── PARA QUIÉN (split con imagen) ── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split-reverse .split-img { order: 2; }
  .split-reverse .split-text { order: 1; }
}

.split-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.split-img img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}

.split-img:hover img {
  transform: scale(1.04);
}

.split-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.split-text p {
  color: var(--texto-gris);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.split-text ul {
  list-style: none;
}

.split-text ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.split-text ul li .material-symbols-outlined {
  color: var(--azul-principal);
  font-size: 20px;
}

/* ── CTA INTERMEDIO ── */
.cta-mid {
  background: var(--azul-claro);
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-mid-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-mid h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--azul-oscuro);
}

.cta-mid p {
  color: var(--texto-gris);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ── FAQ ── */
.faq-section {
  padding: 4rem 1.5rem;
  background: var(--blanco);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  border: 1px solid var(--azul-menta);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--azul-fondo);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question .material-symbols-outlined {
  color: var(--azul-principal);
  transition: transform 0.3s;
  font-size: 22px;
}

.faq-item.active .faq-question .material-symbols-outlined {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.3rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--texto-gris);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.3rem 1.1rem;
}

/* ── CONTACTO ── */
.contact-section {
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-oscuro));
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--blanco);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-inner > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .contact-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transicion);
  font-family: inherit;
}

.contact-btn i {
  font-size: 1.4rem;
}

.contact-btn.whatsapp {
  background: var(--wa-color);
  color: var(--blanco);
  box-shadow: var(--sombra-wa);
}

.contact-btn.whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.contact-btn.telegram {
  background: var(--telegram-color);
  color: var(--blanco);
  box-shadow: var(--sombra-telegram);
}

.contact-btn.telegram:hover {
  background: #1b8abf;
  transform: translateY(-2px);
}

.contact-btn.email-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--azul-menta);
  border: 1px solid rgba(90, 159, 214, 0.4);
}

.contact-btn.email-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-btn.phone-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn.phone-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ── SEO LOCAL ── */
.seo-local {
  padding: 3rem 1.5rem;
  background: var(--azul-fondo);
  text-align: center;
}

.seo-inner {
  max-width: 800px;
  margin: 0 auto;
}

.seo-inner h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--azul-oscuro);
}

.seo-inner p {
  color: var(--texto-gris);
  margin-bottom: 0.5rem;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
  color: var(--texto-gris-claro);
  border-top: 1px solid var(--azul-menta);
  background: var(--blanco);
}

footer a {
  color: var(--texto-gris);
  text-decoration: none;
}

footer a:hover {
  color: var(--azul-principal);
}
