﻿/* Wimanager landing styles - consolidated from index.php and assets/css/style-site.css */

/* ── Reset & Variables ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --brand-primary: #D7E72C;
  --brand-primary-hover: #c8d629;
  --brand-primary-soft: rgba(215, 231, 44, 0.14);
  --brand-primary-contrast: #090909;

  /* Legacy/accent colors used by product mockups */
  --mock-purple: #7c3aed;
  --mock-purple-soft: #ede9fe;

  /* Neutrals */
  --color-bg: #090909;
  --color-surface: #ffffff;
  --color-surface-dark: #181818;
  --color-text: #FEFEFE;
  --color-text-soft: rgba(254, 254, 254, 0.72);
  --color-text-muted: rgba(254, 254, 254, 0.55);
  --color-border: rgba(0,0,0,0.07);
  --color-line: #313131;
  --color-white: #ffffff;

  /* Feedback */
  --success-color: #047857;
  --error-color: #b91c1c;

  /* Compatibility aliases */
  --primary: var(--brand-primary);
  --primary-dark: var(--brand-primary-hover);
  --primary-light: var(--brand-primary-soft);
  --primary-color: var(--brand-primary);
  --bg: var(--color-bg);
  --body-color: var(--color-bg);
  --surface: var(--color-surface);
  --white: var(--color-white);
  --text: var(--color-text);
  --text-color: var(--color-text);
  --text-3: var(--color-text-muted);
  --border: var(--color-border);
  --linea: var(--color-line);
  --bg-grey: #f5f7fa;
  --bg-color-btn: var(--brand-primary-soft);
  --blanco: var(--color-surface-dark);

  /* Layout and effects */
  --nav-h: 80px;
  --tran: 0.22s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

html.home-scroll {
  scroll-snap-type: y proximity;
}

html.home-scroll.snap-free {
  scroll-snap-type: none;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  width: 100%;
  display: flex; align-items: center;
  padding: 0 2rem;
  transform: translateY(0);

  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow var(--tran), background var(--tran);
 
}
.nav.scrolled {  }
.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; justify-self: start;
  color: var(--text);
}
.nav-logo img { height: 38px; object-fit: contain; }
.nav-logo span {
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.2px;
  user-select: none;
  margin-top: -2px;
}

/* Nav links — centro */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 1rem; font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background var(--tran), color var(--tran);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Nav actions — derecha */
.nav-actions {
  display: flex; align-items: center; gap: 10px;
  justify-self: end;
}

/* Botones nav */
.btn-nav-ghost {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem; font-weight: 500;
  color: var(--text);

  padding: 8px 20px; border-radius: 999px; cursor: pointer;
  text-decoration: none;

  white-space: nowrap;
}
.btn-nav-ghost:hover {
  border-color: var(--primary);
  background: var(--bg);
}
.btn-nav-primary {
    background: var(--brand-primary);
    border-radius: 250px;
    font-weight: 500;
    color: var(--brand-primary-contrast);
    text-decoration: none;
    padding: 8px 20px;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease;
}

.btn-nav-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-primary);
    border-radius: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-nav-primary:hover::before {
    transform: translateX(0);
}

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

/* Avatar button */
.btn-avatar {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none;
  border-radius: 999px;
  cursor: pointer; transition: border-color var(--tran), box-shadow var(--tran);
  padding: 4px 4px 4px 18px;
}
.btn-avatar:hover {
background: var(--color-surface-dark);
}


.btn-avatar .avatar-svg { flex-shrink: 0;  }
.btn-avatar .avatar-name {
  font-size: 1rem; font-weight: 500;
    font-family: 'Roboto', sans-serif;
  color: var(--text); max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}




/* Materialize dropdown overrides */
.nav-user-dropdown-content {
  min-width: 325px !important;


  overflow: visible !important;
}
.nav-user-dropdown-content li > a,
.nav-user-dropdown-content li > span {
  padding: 13px 11px !important;
  color: var(--text) !important;
  line-height: normal !important;
}
.nav-user-dropdown-content li { min-height: auto !important; }
.nav-user-dropdown-content li:hover,
.nav-user-dropdown-content li.active {
  background: transparent !important;
}

/* Profile block inside dropdown */
.dropdown-profile-li {

  cursor: default !important;
  text-align: center;
}
.dropdown-profile-li:hover { background: transparent !important; }
.dropdown-profile {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  text-align: center;
padding: 20px 0;

}
.dropdown-profile h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1em; font-weight: 500;
  color: var(--text); 
  margin-bottom: 4px;
}
.dropdown-profile p {
  font-size: 13px; 
  color: var(--text); 
  font-weight: 400;
}

.d-avatar {
    border: 4px solid rgba(230, 232, 255, 0.5);
    width: 108px;
    height: 108px;
    border-radius: 250px;
    margin-bottom: 5px;
}

.d-avatar svg {
    width: 100px;
    height: 100px;
}

.d-avatar img {
    width: 100px !important;
    height: 100px !important;
}


.plan-free     { background: #f3f4f6; color: #6b7280; }
.plan-pro      { background: var(--mock-purple-soft); color: var(--mock-purple); }
.plan-business { background: #fef3c7; color: #b45309; }
.plan-enterprise { background: #ecfdf5; color: #047857; }

/* Dropdown items */
.dropdown-item {
  font-family: 'Roboto', sans-serif;
  display: flex !important; align-items: center; gap: 10px;
   border-radius: 10px;
  font-size: 1rem; font-weight: 500 !important;
  color: var(--text) !important;
  text-decoration: none;
  transition: background var(--tran), color var(--tran);
}
.dropdown-item svg { flex-shrink: 0; }
.dropdown-item:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

.nav-user-dropdown-content li.divider {
  margin: 10px 0 !important;
  background-color: var(--linea) !important;
  height: 1px;
  padding: 0;
}

/* Hamburger mobile */
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
  position: absolute;
  right: 22px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 3px;
  background: var(--text); border-radius: 3px;
  transition: transform var(--tran), opacity var(--tran);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* ← sobreescribe con dvh que se adapta dinámicamente */
  background: var(--bg);
  padding: calc(var(--nav-h) + 2rem) 12px 14px;
  z-index: 998;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile.open {
  transform: translateX(0);
  pointer-events: auto;
}

.nav.menu-open {
  background: var(--bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transform: translateY(0);
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 1rem;
}

.nav-mobile li.divider {
  margin: 0px 14px !important;
  background-color: var(--linea);
  height: 1px;
  opacity: 0.8;
}

.nav-mobile ul a {
  display: block; padding: 10px 14px;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  border-radius: 10px;
  transition: background var(--tran), color var(--tran);
}
.nav-mobile ul a:hover { background: var(--primary-light); color: var(--primary); }


.nav-mobile ul {
  flex: 1; /* ocupa todo el espacio disponible empujando las acciones abajo */
}

.nav-mobile .nav-mobile-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom); /* respeta el notch en iPhone */
}

.btn-primary {
    font-size: 1rem; 
    font-weight: 500;
    background: var(--color-bg);
    border-radius: 250px;
    color: #f5f5f5;
    text-decoration: none;
    padding: 14px 24px;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
/* ── SECCIONES ─────────────────────────────────────────────────────────────── */
section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body > footer {
  flex-shrink: 0;
  scroll-snap-align: end;
  scroll-snap-stop: normal;
}

body > main {
  flex: 1 0 auto;
}

body > section:not(#funciones):not(#cta-final) {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-inner {
  width: 100%;
  height: 100%;
  max-width: 1200px; margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 1rem;
}

#funciones {
  width: 100%;
  scroll-snap-stop: normal;
}

.funciones-switch {
  height: calc(5 * 100vh);
}

.funciones-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Izquierda ── */
.funciones-left {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
}

/* Barra progreso vertical */
.funciones-progress-track {
  --progress-gap: 8px;
  --progress-height: 0%;
  width: 6px;
  height: 280px;
  flex-shrink: 0;
  position: relative;
  margin-top: 0;
  overflow: hidden;
}
.funciones-progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--progress-height) + var(--progress-gap));
  bottom: 0;
  width: 100%;
  background: #313131;
  border-radius: 999px;
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1);
}
.funciones-progress-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
  height: var(--progress-height);
  transition: height 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* Text panels */
.funciones-text-panels {
  flex: 1;
  position: relative;
  min-height: 280px;
}

.funciones-text-panel {
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(calc(-50% + 16px));
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1),
              transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.funciones-text-panel.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.funciones-text-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 1rem;
}

.funciones-text-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

/* ── Derecha ── */
.funciones-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.funciones-screen {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;

  background: transparent;
}

.funciones-panels {
  position: relative;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
}
.funciones-panels::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(49, 49, 49, 0.15);
  border-radius: inherit;
  pointer-events: none;
}

.funciones-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1),
              transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.funciones-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.funciones-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* Video placeholder */
.mock-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 380px;
  color: var(--text-3);
  font-size: 0.85rem;
}
.mock-video-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .funciones-switch {
    height: calc(5 * 130vh);
  }

  .funciones-pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    padding: 1rem 1.2rem;
    align-items: start;
  }

  .funciones-left {
    position: sticky;
    top: var(--nav-h);
    background: var(--bg);
    z-index: 10;
    padding: 1rem 0 0.75rem;
  }

  .funciones-progress-track { display: none; }

  .funciones-text-panels { min-height: 160px; }

  .funciones-text-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .funciones-text-desc { display: none; }

  .funciones-panels { min-height: 260px; }
}

/* ── PLANES ───────────────────────────────────────────────────────────────── */
#quienes {
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

#quienes .section-inner {
  width: 100%;
  gap: 3rem;
}

#quienes .funciones-head {
  text-align: center;
}



/* ── Animaciones de entrada ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .section-inner { padding: 0 2rem; }

}

@media (max-width: 600px) {
  .nav { padding: 0 1.2rem; }
}


/* ── Estilos para las tarjetas de planes ──────────────────────────────────── */
.plan-card {
    background: var(--color-surface-dark);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;

}





.plan-badge {
position: absolute;
  top: 12px;
  right:12px;
  color: var(--text);
  padding: 5px 14px;
  border-radius: 250px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.03em;
}

.plan-name {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 1.5em;
    font-weight: 700;

    margin-bottom: 8px;
    line-height: 1;
}

.plan-price.free {
 
}

.plan-price span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    color: var(--text);
}

.plan-storage {
    margin: 12px 0;

}

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}

.feature-icon svg {
  display: block;

}

.feature-text {
  line-height: 1.8;
}

.feature-info {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.plan-card ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.plan-card ul li:first-child {
  font-weight: 500;
  margin-left: 0;
  padding-left: 0;
}


.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 5px 0;
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.material-tooltip {
    padding: 10px 14px;
    font-size: 13px;
    z-index: 2000;
    color: #fff;
    line-height: 140%;
    opacity: 0;
    position: absolute;
    text-align: left;
    max-width: calc(100% - 4px);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
white-space: pre-line;
    /* Nuevo estilo */
    background: rgba(21, 27, 39, 0.8);
    border-radius: 12px; 
     max-width: 220px;
    /* Pastilla */
    backdrop-filter: blur(4px);
}


/* ── Grid de planes ─────────────────────────────────────────────── */
.plans-grid-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
}

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

.plans-grid-item {
  padding: 4px 10px;
  box-sizing: border-box;
}

.plans-grid-item .plan-card {
  width: 100%;
  margin: 0;
}

.plans-grid-action {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.plans-grid-action .btn-primary {
  background: var(--primary-color);
  color: var(--body-color);
  border-color: var(--primary-color);
}

.plans-grid-action .btn-primary::before {
  background: var(--primary-color);
}

.plans-grid-action .btn-primary:hover {
  color: var(--body-color);
}

@media (max-width: 600px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid-item {
    padding: 4px 6px;
  }
}

/* ── Páginas internas ─────────────────────────────────────────────────────── */
.site-page {
  width: 100%;
  min-height: auto;
  padding: calc(var(--nav-h) + 72px) 2rem 96px;
}

.site-page-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-page-head {
  margin: 0 0 42px;
  text-align: left;
}

.site-page-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
}

.site-page-subtitle {
  margin-top: 18px;
  color: var(--text);
  opacity: 0.72;
  font-size: 1rem;
}

.plans-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plans-page-grid .plan-card {
  height: 100%;
  min-height: 420px;
}

.plans-empty {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: var(--color-surface-dark);
  color: var(--text);
  text-align: center;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.contact-info-panel,
.contact-form-panel {
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: var(--color-surface-dark);
  padding: 28px;
}

.contact-info-panel h2,
.contact-form-panel h2 {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.contact-info-panel p,
.contact-info-list {
  color: var(--text);
  opacity: 0.76;
}

.contact-info-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin-top: 24px;
}

.contact-info-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-info-list a:hover {
  color: var(--primary-color);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .btn-primary {
  width: auto;
  justify-self: start;
  background: var(--primary-color);
  color: var(--body-color);
  border: none;
  cursor: pointer;
}

.contact-form .btn-primary::before {
  background: var(--primary-color);
}

.contact-form .btn-primary:hover {
  color: var(--body-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--text);
  font-weight: 500;
}

.site-input,
.site-textarea {
  width: 100%;
  border: 1px solid var(--linea);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color var(--tran), background var(--tran);
}

.site-input {
  min-height: 52px;
  padding: 0 16px;
}

.site-textarea {
  min-height: 170px;
  padding: 15px 16px;
  resize: vertical;
}

.site-input::placeholder,
.site-textarea::placeholder {
  color: var(--text);
  opacity: 0.55;
}

.site-input:focus,
.site-textarea:focus {
  border-color: var(--primary-color);
}

.form-message {
  min-height: 24px;
  color: var(--text);
  font-weight: 500;
}

.form-message.success {
  color: var(--primary-color);
}

.form-message.error {
  color: var(--error-color);
}

.form-hidden {
  display: none;
}

.funciones-page {
  padding-top: var(--nav-h);
}

.funciones-page .funciones-pin {
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

@media (max-width: 900px) {
  .contact-page-grid,
  .form-row,
  .plans-page-grid {
    grid-template-columns: 1fr;
  }

  .site-page {
    padding: calc(var(--nav-h) + 42px) 1.2rem 72px;
  }
}


/* ── FAQ ────────────────────────────────────────────────────────────────── */


.faq-head {
  margin-bottom: 3rem;
}

.faq-list {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 30px 4px;
  cursor: pointer;
  text-align: left;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text);
  transition: color var(--tran);
}
.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: color var(--tran);
  position: relative;
}
.faq-question:hover .faq-icon {
  color: var(--primary);
}

.faq-icon .icon-plus,
.faq-icon .icon-minus {
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.faq-icon .icon-minus {
  opacity: 0;
  transform: rotate(-90deg);
}

/* Estado abierto */
.faq-item.open .faq-question {
  color: var(--primary);
}
.faq-item.open .faq-icon {
  color: var(--primary);
}
.faq-item.open .icon-plus {
  opacity: 0;
  transform: rotate(90deg);
}
.faq-item.open .icon-minus {
  opacity: 1;
  transform: rotate(0deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 4px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 4px 22px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.75;
}


/* ── CTA FINAL ──────────────────────────────────────────────────────────── */
#cta-final {
  /* altura grande = recorrido de scroll disponible para la animación */
  height: 300vh;
  min-height: 300vh;
  display: block;

}

/* Contenedor sticky — queda fijo mientras scrolleás los 300vh */
.cta-final-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-final-wrapper {
  position: relative;
  width: calc(100% - 4rem); /* empieza con padding lateral */
  max-width: 1200px;
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
  background: var(--color-surface-dark);
  will-change: width, height, border-radius;
}

.cta-final-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  transition: none;
}

.cta-reveal-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  opacity: 0;
  /* sin position absolute */
}

.cta-reveal-btn {
  opacity: 0;
  /* sin position absolute */
}

.cta-final-overlay .btn-primary {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.cta-final-overlay .btn-primary::before {
  background: var(--primary-light);
}
.cta-final-overlay .btn-primary:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .cta-final-wrapper {
    width: calc(100% - 2rem);
    height: 320px;
    border-radius: 16px;
  }
}

/* Shared helpers for dropdowns, footer, newsletter and cookies */

::selection {
  background-color: var(--primary-color);
  color: var(--brand-primary-contrast);
}

.link {
  color: var(--text-color);
  text-decoration: underline;
  transition: color 0.3s ease;
  font-weight: 500;
}

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

.btn-decline {
  color: var(--primary-color);
  background: var(--brand-primary-soft);
  font-family: "Roboto", sans-serif;
  padding: 10px 20px;
  border: none;
  border-radius: 250px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-circle {
  background: transparent;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
  color: var(--text-color);
}

.btn-circle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.dropdown-content {
  margin: 0;
  display: none;
  opacity: 0;
  position: absolute;
  left: 0;
  right: auto;
  top: 0;
  z-index: 1002;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  list-style: none;
  background: var(--color-surface-dark);
  color: var(--text-color);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  min-width: 190px;
}

.dropdown-content:focus {
  outline: 0;
}

.dropdown-content li {
  clear: both;
  display: block;
  min-height: auto;
  text-align: left;
  font-weight: 500;
  list-style: none;
}

.dropdown-content li:focus {
  outline: none;
}

.dropdown-content li.divider {
  min-height: 0;
  height: 1px;
}

.dropdown-content li > a,
.dropdown-content li > span,
.dropdown-content > a {
  display: block;
  padding: 10px 11px;
  color: var(--text-color);
  text-decoration: none;
}

.dropdown-content li > span > label {
  top: 0;
  left: 0;
}

.container {

  position: relative;
  max-width: 1200px;
  padding: 0 5px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}        

footer {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  background: var(--color-surface-dark);
  padding: 10px 30px 30px 30px;
}

 footer a {
  color: var(--text-color);
}

.footer-section span {
  font-weight: 600;
  line-height: 40px;
}

footer .container {

}        

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin: 40px 0 40px;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-top: 10px;
  margin-bottom: 10px;
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: var(--text-color);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 400;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  align-items: center;
  padding-top: 25px;
  border-top: solid 1px var(--linea);
}

.social-links {
  width: 100%;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--linea);
}

@media (max-width: 768px) {
   footer {
      padding: 10px 0px 30px 0px;
   }

  .footer-content {              
    grid-template-columns: 1fr;
    margin: 15px 0 25px;
  }

  .footer-section {
    margin-bottom: 0px;
    margin-top: -20px;
  }

  .social-links {
    margin-bottom: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
}

       .newsletter-container {
            width: 360px;
        }

        .newsletter-title {
            color: var(--text-color);
        }

        .newsletter-subtitle {
           margin-top: 10px;
            margin-bottom: 30px;
        }

        .email-input-container {
            position: relative;
            margin-bottom: 20px;
        }

        .email-input {
            width: 83.333%;
            padding: 15px 70px 15px 20px;
            font-size: 1rem;
            border: 2px solid var(--linea);
            border-radius: 250px;
            outline: none;
            transition: all 0.3s ease;
            background: var(--bg);
            color: var(--text);
        }

        .email-input::placeholder {
            color: var(--text);
            opacity: 0.55;
        }

        .email-input:focus {
            border-color: var(--primary-color);
            background: var(--bg);
        }

        .submit-button {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: white;
        }

        .submit-button:hover {
            background: var(--primary-dark);
        }

        .submit-button:active {
            transform: translateY(-50%) scale(0.95);
        }

        .submit-button svg {
            width: 24px;
            height: 24px;
        }

        .message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 8px;
            font-size: 14px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .message.show {
            opacity: 1;
        }

        .message.success {
            background: #d4edda;
            color: var(--success-color);
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background: #f8d7da;
            color: var(--error-color);
            border: 1px solid #f5c6cb;
        }

        .newsletter-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(5px) !important;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .newsletter-modal.active {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .newsletter-modal-content {
            background: var(--color-surface-dark);
            border-radius: 20px;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: translateY(-30px);
            transition: transform 0.3s ease;
        }

        .newsletter-modal.active .newsletter-modal-content {
            transform: translateY(0);
        }

        .newsletter-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .newsletter-modal-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 0px;
            margin-top: 0px;
        }

        .modal-form-group {
            margin-bottom: 25px;
        }

        .modal-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-color);
            font-size: 16px;
        }

        .newsletter-modal-input {
            width: 100%;
            padding: 16px 20px;
            font-size: 16px;
            border: 2px solid var(--linea);
            border-radius: 250px;
            outline: none;
            transition: all 0.3s ease;
            background: var(--bg);
            color: var(--text-color);
        }

        .newsletter-modal-input::placeholder {

            color: var(--text);
            opacity: 0.55;
        }        

        .newsletter-modal-input:focus {
            border-color: var(--primary-color);
            background: var(--bg);
        }

        .modal-submit-btn {
            width: 100%;
            padding: 15px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 250px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 0px;
        }

        .modal-submit-btn:hover {
            background: var(--primary-dark);
        }

        .newsletter-suggestions {
            color: var(--text-color);
            margin-top: 20px;
            text-align: left;
        }

        .newsletter-suggestions p {
            margin-top: 10px;
        }        

        @media (max-width: 600px) {
            .newsletter-container {
              width: 100%;
                padding: 40px 0 0px;
                margin-bottom: 15px;
                border-bottom: 1px solid var(--linea);
            }
            
            .newsletter-modal-content {
                padding: 30px 20px;
            }
            
        }



        .cookie-banner {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            max-width: 980px;
            width: calc(100% - 40px);
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 20px 30px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10),
                        0 1px 1px rgba(255, 255, 255, 0.45) inset;
            z-index: 1000;
            opacity: 0;
            display: none;
            transform: translateX(-50%) translateY(100px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .cookie-banner.show {
            opacity: 1;
            display: block;
            transform: translateX(-50%) translateY(0);
        }

        .cookie-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }

        .cookie-text {
            flex: 1;
            min-width: 300px;
            line-height: 1.5;
        }

        .cookie-actions {
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }

        @media (max-width: 600px) {
            .cookie-banner {
             padding: 20px;
            }

            .cookie-actions {
              width: 100%;
            }

            .cookie-actions button {
              width: 100%;
              display: block;
            }
        }
