/* ------------------------------
   VARIABLES Y RESET
------------------------------ */

:root {
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --bg-hero: #f0f4ff;

  --primary: #1d4ed8;       /* Azul */
  --primary-soft: #e0ebff;
  --accent: #10b981;        /* Verde */
  --accent-soft: #e6f7f1;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;

  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-main);
  background: radial-gradient(circle at top, #ecf2ff 0, #f5f7fb 40%, #f5f7fb 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e5e7eb;
}
::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Enlaces, imágenes y botones */

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* ------------------------------
   LAYOUT GENERAL
------------------------------ */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.section {
  padding-block: 70px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.section-kicker {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-text {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Grids */

.grid {
  display: grid;
  gap: 20px;
}

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

/* ------------------------------
   BOTONES Y LINKS
------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn-outline {
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding-block: 8px;
  padding-inline: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
}

/* Links inline */

.link-inline {
  font-size: 1.4rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.link-inline::after {
  content: "→";
  font-size: 1.4rem;
}

/* ------------------------------
   HEADER
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  gap: 20px;
}

/* Logo */

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;          /* para que la imagen quede recortada */
  background: transparent;   /* ya no necesitamos el degradado */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* La propia imagen del logo */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* o "cover" si quieres que llene todo */
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.logo-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Navegación */

.site-nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 1.35rem;
  color: var(--text-muted);
  padding-block: 4px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link-cta {
  padding-inline: 16px;
  padding-block: 8px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.nav-link-cta:hover {
  background: var(--primary-soft);
}

/* Toggle móvil */

.nav-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-inline: 8px;
  background: #ffffff;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 999px;
  transition: var(--transition-fast);
}

.site-header.nav-open #siteNav {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset-inline: 16px;
  top: 58px;
  background: #ffffff;
  padding: 12px 16px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* ------------------------------
   HERO
------------------------------ */

.hero {
  background: var(--bg-hero);
  padding-block: 70px 60px;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.hero-content {
  max-width: 600px;
}

.hero-kicker {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.badge-label {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.badge-value {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.badge-note {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-footnote {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* Hero media */

.hero-media {
  display: grid;
  gap: 16px;
}

.hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 6px;
}

.hero-card li {
  font-size: 1.4rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.hero-card li::before {
  content: "•";
  color: var(--primary);
  margin-top: 2px;
}

.hero-figure {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.7);
  background: #111827;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal de video */

.video-modal {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding-inline: 16px;
}

.video-modal.active {
  display: flex;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.video-container video {
  width: 100%;
  display: block;
}

.watermark-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.watermark {
  width: 120px;
  opacity: 0.7;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ------------------------------
   BENEFICIOS
------------------------------ */

.benefits {
  background: var(--bg-page);
}

.benefit-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px 20px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.45);
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 10px;
}

.benefit-card h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 1.4rem;
  color: var(--text-muted);
}

/* Cinta CTA */

.cta-strip {
  margin-top: 36px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, #1d4ed8, #10b981);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-strip h3 {
  font-size: 1.8rem;
}

.cta-strip p {
  font-size: 1.4rem;
  max-width: 520px;
}

/* ------------------------------
   CÓMO FUNCIONA (TIMELINE)
------------------------------ */

.how-it-works {
  background: #ffffff;
}

.timeline {
  position: relative;
  margin-top: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #bfdbfe, #e5e7eb);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  padding-bottom: 22px;
}

.timeline-marker {
  position: absolute;
  left: 6px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-content h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 1.4rem;
  color: var(--text-muted);
}

/* ------------------------------
   BLOQUE DESTACADO
------------------------------ */

.highlight {
  background: var(--accent-soft);
}

.highlight-grid {
  display: grid;
  gap: 20px;
}

.highlight-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.2);
}

.highlight-label {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.highlight-list {
  list-style: none;
  margin-bottom: 10px;
}

.highlight-list li {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.highlight-list span {
  color: var(--text-muted);
}

.highlight-note {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* ------------------------------
   FAQ
------------------------------ */

.faq {
  background: #ffffff;
}

.faq-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-card {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
}

.faq-trigger span {
  text-align: left;
}

.faq-trigger ion-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  color: var(--text-muted);
}

.icon-close {
  display: none;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding-inline: 16px;
  transition: max-height var(--transition-med);
}

.faq-panel p {
  font-size: 1.4rem;
  color: var(--text-muted);
  padding-block: 0 12px;
}

.faq-card.active {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.5);
}

.faq-card.active .faq-panel {
  max-height: 400px;
}

.faq-card.active .icon-open {
  display: none;
}

.faq-card.active .icon-close {
  display: inline-block;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #f9fafb;
  padding-block: 16px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.footer-link {
  font-size: 1.3rem;
  color: var(--primary);
}

/* ------------------------------
   MEDIA QUERIES
------------------------------ */

@media (min-width: 640px) {
  .hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header.nav-open #siteNav {
    right: 16px;
    left: auto;
    width: auto;
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .faq-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .highlight-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 80px;
  }

  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .site-header.nav-open #siteNav {
    position: static;
    display: flex;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .timeline {
    margin-top: 32px;
  }
}
/* -------------------------------------------------
   BLOQUE RECOMENDACIÓN ETIQUETADO (VERSIÓN FINAL)
-------------------------------------------------- */

.tag-tip {
  margin: 22px auto 0;
  max-width: 880px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: flex-start;
}

/* Icono circular */
.tag-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e8f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.tag-tip-content {
  min-width: 0; /* evita cortes raros en móvil */
}

.tag-tip-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.tag-tip-text {
  font-size: 1.35rem;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Lista normal, sin flex (para que el texto fluya bien) */
.tag-tip-list {
  margin: 0 0 10px 1.2rem;
  padding: 0;
  list-style: disc;
}

.tag-tip-list li {
  display: list-item;
  font-size: 1.3rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 4px;
}

/* eliminamos cualquier pseudo-bullet anterior */
.tag-tip-list li::before {
  content: none !important;
}

.tag-tip-note {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.45;
}

/* ======== RESPONSIVE — MÓVIL ======== */
@media (max-width: 540px) {
  .tag-tip {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 14px 12px 12px;
  }

  .tag-tip-icon {
    margin: 0 auto;
    width: 34px;
    height: 34px;
    font-size: 1.6rem;
  }

  .tag-tip-title {
    text-align: center;
    font-size: 1.45rem;
  }

  .tag-tip-text,
  .tag-tip-list li,
  .tag-tip-note {
    font-size: 1.25rem;
    text-align: left;
    word-break: normal;
    white-space: normal;
  }
}
