/* ==========================================================================
   Folgar Estudio Contable — estilos generales
   ========================================================================== */

:root{
  --bg: #17110c;
  --bg-alt: #1c150e;
  --bg-card: #241b13;
  --bg-card-alt: #2a2015;
  --border: #3a2c1e;
  --border-light: #4a3826;

  --text: #f5f0e8;
  --text-muted: #b5a596;
  --text-dim: #968676;

  --accent: #E0A863;
  --accent-muted: rgba(224,168,99,.65);
  --accent-dark: #c88f4e;
  --accent-soft: rgba(224,168,99,.12);
  --border-subtle: rgba(255,255,255,.06);
  --border-hover: rgba(224,168,99,.30);

  --green: #7fb98a;
  --red: #d98a7a;

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

  --section-pad: 100px;
  --section-pad-lg: 128px;
  --section-pad-sm: 72px;

  --container: 1440px;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Escala de padding vertical de sección, reducida en mobile redefiniendo las
   mismas variables — así ninguna regla que use var(--section-pad*) necesita
   un override propio por breakpoint. Servicios y Dashboard quedan afuera de
   esta escala a propósito (ver css de esas secciones). */
@media (max-width: 768px){
  :root{
    --section-pad: 64px;
    --section-pad-lg: 64px;
    --section-pad-sm: 48px;
  }
}

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

html{ scroll-behavior: smooth; }

/* Snap "pantalla a pantalla": cada sección ocupa la altura del viewport
   (menos el navbar fijo) y centra su contenido. */
@media (min-width: 640px){
  html{ scroll-snap-type: y proximity; }

  .about,
  .dashboard-section{
    min-height: calc(100vh - 84px);
    min-height: calc(100dvh - 84px);
    display: flex;
    align-items: center;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4{
  font-family: var(--font-head);
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.25;
  font-weight: 600;
}

h1{ font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 600; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.05rem; }

p{ margin: 0 0 16px; color: var(--text-muted); }

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

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

.accent{ color: var(--accent); }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 56px);
}

.icon{
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
}

section{ position: relative; }

/* ==========================================================================
   ANCLA DE NAVBAR — offset para que el header fijo (84px) no tape la
   sección al llegar desde un link del navbar o un anchor (#servicios, etc).
   Ya no hay scroll-snap: cada sección mide lo que pide su contenido.
   ========================================================================== */
.snap-screen{
  scroll-snap-align: start;
  scroll-margin-top: 84px;
}

/* ==========================================================================
   WORD REVEAL — los títulos principales se revelan palabra por palabra a
   medida que la sección entra en pantalla; el progreso lo calcula JS en
   cada frame de scroll (ver script.js), por eso acá solo definimos el
   estado "palabra pendiente" -> "palabra visible".
   ========================================================================== */
.word-reveal__word{
  display: inline-block;
  opacity: .16;
  filter: blur(3px);
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}
.word-reveal__word.is-visible{
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .word-reveal__word{ opacity: 1; filter: none; transform: none; transition: none; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

.section-title{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-title p{ margin: 0; }

/* ---------- Botones ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn .icon{ font-size: 1.1em; }
.btn:hover{ transform: translateY(-2px); }

.btn--primary{
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #241a10;
}
.btn--primary:hover{ opacity: .92; }

.btn--outline{
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}
.btn--outline:hover{ border-color: var(--accent); color: var(--accent); }

.btn--whatsapp{
  background: linear-gradient(180deg, #2fd66b, #23bd5b);
  color: #0b3318;
}
.btn--whatsapp:hover{ opacity: .92; }

.btn--sm{ padding: 10px 18px; font-size: .85rem; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 17, 12, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

/* Offset de anclas: el navbar es sticky (84px), así el contenido de cada
   sección no queda tapado al navegar con los links del menú. Las secciones
   con .snap-screen ya traen su propio scroll-margin-top; #contacto (footer)
   no participa del snap y necesita esta regla igual. */
#inicio,
#servicios,
#nosotros,
#recursos,
#contacto{
  scroll-margin-top: 84px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__icon{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.logo__icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo__icon--sm{ width: 26px; height: 26px; }

.logo__text{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 1px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo__text small{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .55rem;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-wrapper{
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
  justify-content: space-between;
}

.nav{
  display: flex;
  gap: 34px;
  flex: 1;
  justify-content: center;
}
.nav a{
  font-size: .93rem;
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav a:hover{ color: var(--accent); }

.navbar__cta{ flex-shrink: 0; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(10,8,6,.96) 0%, rgba(10,8,6,.78) 35%, rgba(10,8,6,.25) 60%, rgba(10,8,6,.05) 100%),
    url('../assets/img/hero-desk.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero .container{
  max-width: none;
  padding-left: clamp(32px, 6vw, 96px);
}

.hero__inner{
  position: relative;
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  width: 100%;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero__content{ position: relative; z-index: 1; max-width: 500px; }

.hero__text{
  max-width: 460px;
  font-size: 1.02rem;
}

.hero__actions{
  display: flex;
  gap: 16px;
  margin: 22px 0 28px;
  flex-wrap: wrap;
}

.hero__features{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.hero__features li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero__features .icon{
  font-size: 1.3rem;
  color: var(--accent-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT — Un estudio contable diferente
   ========================================================================== */
.about{ padding: var(--section-pad-sm) 0; background: var(--bg-alt); }

.about__inner{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about__eyebrow{
  display: block;
  margin: 0 0 12px;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.about__intro h2{ max-width: 420px; }
.about__intro p{ max-width: 400px; }

.about__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 3px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  transition: border-color .2s ease, gap .2s ease;
}
.about__link:hover{ border-color: var(--accent); gap: 10px; }

.about__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card{
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover{ border-color: var(--border-hover); transform: translateY(-4px); }

.feature-card--row{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px;
}

.feature-card__icon{
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-muted);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-card--row .feature-card__icon{
  width: 40px; height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.feature-card h3{ font-size: .98rem; margin-bottom: 8px; }
.feature-card p{ font-size: .85rem; margin: 0; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services{
  padding: var(--section-pad-sm) 0;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}
.services .section-title{ margin-bottom: 22px; }
.services .section-title h2{ font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; margin-bottom: 8px; }
.services .section-title p{ font-size: .92rem; }

.services__grid{
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 10px;
  width: 100%;
}

.service-item{
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1 1 250px;
  background: #221a12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.service-item:hover{
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

.service-item__head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.service-item__icon{
  width: 38px; height: 38px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-muted);
  font-size: 1.2rem;
  transition: transform .25s ease, border-color .25s ease;
}
.service-item:hover .service-item__icon{
  transform: translate(3px, -2px);
  border-color: var(--border-hover);
}

.service-item h3{ font-size: .92rem; margin: 0; }

.service-item__body{
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-item__body--text{
  justify-content: center;
}
.service-item__body--text p{
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text);
}
.service-item p{ font-size: .78rem; margin: 0; line-height: 1.45; color: var(--text-muted); }

.service-item__list{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-item__list li{
  position: relative;
  padding-left: 14px;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.service-item__list li::before{
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}
.service-item__list li.service-item__extra{ display: none; }
.service-item.is-open .service-item__list li.service-item__extra{ display: block; }

.service-item__toggle{
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s ease;
}
.service-item__toggle:hover{ opacity: 1; text-decoration: underline; }

/* ==========================================================================
   DASHBOARD SECTION
   ========================================================================== */
.dashboard-section{ padding: clamp(16px, 3vh, 40px) 0 clamp(20px, 5vh, 70px); }

.dashboard__inner{
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: clamp(24px, 4vh, 50px);
  align-items: center;
}

.dashboard__text h2{ max-width: 320px; }

.checklist li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(6px, 1.2vh, 10px) 0;
  font-size: .95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child{ border-bottom: none; }
.checklist .icon{ color: var(--green); font-size: 1.15rem; flex-shrink: 0; }

.dashboard__preview{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(10px, 1.8vh, 16px);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}

.browser-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: clamp(6px, 1.2vh, 12px);
  margin-bottom: clamp(8px, 1.4vh, 14px);
  border-bottom: 1px solid var(--border);
}
.browser-bar__title{ font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.browser-bar__dots{ margin-left: auto; display: flex; gap: 6px; }
.browser-bar__dots i{ width: 7px; height: 7px; border-radius: 50%; background: var(--border-light); display: block; }

.dash-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: clamp(6px, 1.2vh, 12px);
}
.dash-stat{
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(6px, 1vh, 10px) 12px;
}
.dash-stat small{ display: block; font-size: .66rem; color: var(--text-dim); margin-bottom: 4px; }
.dash-stat strong{ display: block; font-size: .96rem; font-weight: 600; margin-bottom: 4px; }
.dash-stat span{ font-size: .62rem; }
.dash-stat .up{ color: var(--green); }
.dash-stat .down{ color: var(--red); }
.dash-stat .neutral{ color: var(--text-dim); }

.dash-row{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.dash-panel{
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(8px, 1.2vh, 12px);
}
.dash-panel small{ display: block; font-size: .68rem; color: var(--text-dim); margin-bottom: 6px; }

.line-chart{ width: 100%; height: clamp(38px, 6vh, 60px); }
.line-chart__labels{
  display: flex;
  justify-content: space-between;
  font-size: .6rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.dash-panel--donut{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.donut{
  width: clamp(46px, 6vh, 64px); height: clamp(46px, 6vh, 64px);
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 40%, #8a6a48 40% 65%, #5c4632 65% 85%, #3a2f24 85% 100%);
  position: relative;
  margin: 2px 0 clamp(6px, 1vh, 10px);
}
.donut::after{ content: ''; position: absolute; inset: 26%; background: var(--bg-card-alt); border-radius: 50%; }
.donut-legend{ width: 100%; }
.donut-legend li{
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; color: var(--text-muted);
  padding: 2px 0; justify-content: flex-start;
}
.donut-legend i{ width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

.due-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(4px, 0.9vh, 7px) 0;
  font-size: .78rem;
  border-bottom: 1px solid var(--border);
}
.due-list li:last-child{ border-bottom: none; }
.due-date{
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3px 8px;
  font-weight: 600;
  font-size: .82rem;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 40px;
}
.due-date em{ font-style: normal; font-size: .55rem; color: var(--text-dim); font-weight: 400; }
.due-note{ margin-left: auto; font-style: normal; font-size: .72rem; color: var(--text-dim); }

/* ==========================================================================
   CTA
   ========================================================================== */
/* El fondo (imagen + degradados) vive en .cta-footer-bg para que la foto
   corra sin cortes por debajo del CTA y del footer, como una sola pieza.
   min-height es un piso, no un centrado: si el contenido ya es más alto
   no hace nada; si la ventana es más alta que el contenido, evita que al
   llegar al final real de la página se vea la cola de la sección anterior
   por arriba (la imagen simplemente sigue cubriendo ese espacio de más). */
.cta-footer-bg{
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(180deg, rgba(10,8,6,0) 0%, rgba(10,8,6,0) 68%, rgba(10,8,6,.9) 100%),
    linear-gradient(90deg, rgba(10,8,6,.88) 0%, rgba(10,8,6,.6) 25%, rgba(10,8,6,.2) 45%, rgba(10,8,6,.05) 100%),
    url('../assets/img/hero-desk-2.jpg');
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
}

.cta{
  position: relative;
  scroll-margin-top: 84px;
  padding: var(--section-pad-sm) 0;
}

.cta__content{ max-width: 560px; }
.cta__content h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 28px; }
.cta__content p{ font-size: .95rem; max-width: 440px; margin-bottom: 22px; }

.cta__actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.cta__list{ display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.cta__list li{
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; color: var(--text-muted); font-weight: 500;
}
.cta__list .icon{ color: var(--accent-muted); font-size: 1.2rem; flex-shrink: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{ margin-top: auto; padding: 28px 0 20px; }

.footer__inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer__contact{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer__contact a, .footer__contact span{ display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.footer__contact a:hover{ color: var(--accent); }
.footer__contact .icon{ color: var(--text-dim); font-size: .9rem; flex-shrink: 0; }

.footer__rights{ font-size: .78rem; color: var(--text-dim); white-space: nowrap; }

.footer__legal{ display: flex; gap: 16px; }
.footer__legal a{ font-size: .78rem; color: var(--text-dim); }
.footer__legal a:hover{ color: var(--accent); }

.footer__social{ display: flex; gap: 8px; margin-left: auto; }
.footer__social a{
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(23, 17, 12, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  padding: 0;
  transition: border-color .2s ease, background .2s ease;
}
.footer__social a:hover{ background: var(--accent-soft); border-color: var(--accent); }

/* ==========================================================================
   MODAL — Quiero ser cliente
   ========================================================================== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open{
  visibility: visible;
  opacity: 1;
}
.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, .78);
  backdrop-filter: blur(3px);
}

.modal__dialog{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 3.2vh, 32px);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.modal.is-open .modal__dialog{ transform: translateY(0) scale(1); }

.modal__close{
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.modal__close:hover{ border-color: var(--accent); color: var(--accent); }

.modal__header{ margin: 0 36px clamp(6px, 1.8vh, 20px) 0; }
.modal__header h2{ margin: 0 0 4px; font-size: 1.3rem; }
.modal__header p{ margin: 0; font-size: .88rem; }

.modal-form{ display: flex; flex-direction: column; gap: clamp(6px, 1.6vh, 16px); }

.modal-form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-form__field{ display: flex; flex-direction: column; gap: clamp(3px, .8vh, 6px); }
.modal-form__field label{ font-size: .8rem; font-weight: 600; color: var(--text-muted); }

.modal-form__field input,
.modal-form__field select,
.modal-form__field textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: clamp(6px, 1.1vh, 10px) 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s ease;
}
.modal-form__field textarea{ resize: vertical; }
.modal-form__field input:focus,
.modal-form__field select:focus,
.modal-form__field textarea:focus{
  outline: none;
  border-color: var(--accent);
}
.modal-form__field input:invalid:not(:placeholder-shown){ border-color: var(--red); }

.modal-form__checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  color: var(--text-dim);
  cursor: pointer;
}
.modal-form__checkbox input{ margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }

.modal-form__actions{
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.modal-form__submit,
.modal-form__whatsapp{ flex: 1; justify-content: center; }

.modal-form__note{ margin: 0; font-size: .74rem; color: var(--text-dim); text-align: center; }

/* Pantallas bajas (notebooks con barra del navegador, ~700px de alto o
   menos): achicamos lo último que queda, los botones, para que el modal
   siga entrando entero sin scroll interno. */
@media (max-height: 700px){
  .modal__dialog{ padding: clamp(12px, 3vh, 22px); }
  .modal-form{ gap: clamp(5px, 1.3vh, 10px); }
  .modal-form__submit,
  .modal-form__whatsapp{ padding-top: 10px; padding-bottom: 10px; }
}

.modal-form__success{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 0 8px;
}
.modal-form__success[hidden]{ display: none; }
.modal-form__success .icon{ font-size: 2.4rem; color: var(--accent); }
.modal-form__success h3{ margin: 0; }
.modal-form__success p{ margin: 0; max-width: 360px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px){
  .about__inner{ grid-template-columns: 1fr; }
  .about__intro{ max-width: 600px; }
  .dashboard__inner{ grid-template-columns: 1fr; }
  .dashboard__text{ text-align: center; }
  .dashboard__text h2{ margin: 0 auto 20px; }
  .checklist li{ justify-content: center; }
}

@media (max-width: 900px){
  .nav-wrapper{ display: none; }
  .nav-toggle{ display: flex; }

  .navbar.is-open .nav-wrapper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px 28px;
    gap: 18px;
  }
  .navbar.is-open .nav{
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }
  .navbar.is-open .navbar__cta{
    display: inline-flex;
  }

  .hero{
    background-image:
      linear-gradient(180deg, rgba(10,8,6,.55) 0%, rgba(10,8,6,.88) 55%, rgba(10,8,6,.97) 100%),
      url('../assets/img/hero-desk.jpg');
    background-position: center 30%;
  }
  .cta-footer-bg{
    background-image:
      linear-gradient(180deg, rgba(10,8,6,.5) 0%, rgba(10,8,6,.86) 50%, rgba(10,8,6,.97) 80%, rgba(10,8,6,.97) 100%),
      url('../assets/img/hero-desk-2.jpg');
    background-position: center 30%;
  }
  .hero .container{
    max-width: var(--container);
    padding-left: 32px;
  }
  .hero__inner{
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 48px 0;
  }
  .hero__content{ max-width: 100%; }
  .hero__features{ grid-template-columns: repeat(2, 1fr); }

  .dash-grid{ grid-template-columns: repeat(2, 1fr); }
  .dash-row{ grid-template-columns: 1fr; }

}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
  .hero .container{ padding-left: 20px; }
  .hero__inner{ padding: 40px 0; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .hero__actions .btn{ justify-content: center; }
  .cta__actions{ flex-direction: column; align-items: stretch; }
  .cta__actions .btn{ justify-content: center; }
  .hero__features{ grid-template-columns: 1fr 1fr; }

  .service-item{ flex-basis: 100%; max-width: 100%; }

  .dashboard-section{ padding: 20px 0 60px; }
  .dashboard__preview{ padding: 16px; }
  .dash-grid{ grid-template-columns: 1fr 1fr; }

  .modal{ padding: 0; align-items: flex-end; }
  .modal__dialog{ max-width: 100%; max-height: 96vh; max-height: 96dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px 18px; }
  .modal-form{ gap: 8px; }
  .modal-form__row{ gap: 10px; }
  .modal-form__actions{ flex-direction: column; }
  .modal__header{ margin-bottom: 10px; }

  .footer__inner{ flex-direction: column; text-align: center; }
  .footer__contact{ justify-content: center; }
  .footer__legal{ justify-content: center; }
  .footer__social{ justify-content: center; margin-left: 0; }
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */
.login-page{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-topbar{
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(23, 17, 12, .6);
}
.login-topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.login-topbar__back{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .2s ease;
}
.login-topbar__back:hover{ color: var(--accent); }
.login-topbar__back .icon{ font-size: 1.1rem; }

.login-hero{
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(16px, 3.5vh, 40px) 0;
  background-image:
    linear-gradient(90deg, rgba(10,8,6,.96) 0%, rgba(10,8,6,.85) 45%, rgba(10,8,6,.55) 75%, rgba(10,8,6,.3) 100%),
    url('../assets/img/hero-desk.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.login-hero__inner{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.login-intro__eyebrow{
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 12px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.login-intro h1{
  max-width: 460px;
  font-size: clamp(1.6rem, 1.3rem + 1.6vh, 2.5rem);
  margin-bottom: clamp(6px, 1.2vh, 14px);
}
.login-intro__text{
  max-width: 440px;
  margin-bottom: clamp(14px, 2.6vh, 26px);
  font-size: .95rem;
}

.login-benefits{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.6vh, 16px);
  max-width: 560px;
  margin-bottom: clamp(12px, 2.4vh, 22px);
}
.login-benefits__card{ padding: clamp(10px, 1.8vh, 18px); }
.login-benefits__card .service-item__head{ gap: 10px; margin-bottom: clamp(6px, 1vh, 12px); }
.login-benefits__card .feature-card__icon{ width: 34px; height: 34px; margin: 0; flex-shrink: 0; font-size: 1.05rem; }
.login-benefits__card h3{ font-size: .86rem; margin: 0; }
.login-benefits__card p{ font-size: .76rem; line-height: 1.35; }

.login-contact{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(10px, 1.6vh, 14px) clamp(14px, 2vw, 20px);
  background: rgba(23, 17, 12, .55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  max-width: 560px;
}
.login-contact__meta{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 12px;
}
.login-contact__item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.login-contact__item .icon{ color: var(--accent-muted); font-size: 1.15rem; flex-shrink: 0; }
.login-contact__item > div{ max-width: 190px; }
.login-contact__item strong{ display: block; color: var(--text); font-size: .84rem; }
.login-contact__item span{ display: block; font-size: .74rem; color: var(--text-dim); }
.login-contact__item--sm{ gap: 5px; }
.login-contact__item--sm .icon{ font-size: .95rem; }
.login-contact__item--sm span{ font-size: .68rem; color: var(--text-muted); white-space: nowrap; }

a.login-contact__item{ transition: color .2s ease; }
a.login-contact__item:hover{ color: var(--accent); }
a.login-contact__item:hover .icon{ color: var(--accent); }
a.login-contact__item:hover span{ color: var(--accent); }

.login-panel{ display: flex; justify-content: center; }

.login-card{
  width: 100%;
  max-width: 480px;
  background: rgba(36, 27, 19, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  padding: clamp(22px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 16px);
}

.login-card__logo{
  align-self: center;
  width: clamp(44px, 6vh, 56px); height: clamp(44px, 6vh, 56px);
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 4px;
}
.login-card__logo img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.login-card h2{ text-align: center; margin: 0 0 4px; }
.login-card__subtitle{ text-align: center; margin: 0 0 8px; font-size: .92rem; }

.login-password{ position: relative; }
.login-password input{ padding-right: 44px; }
.login-password__toggle{
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s ease;
}
.login-password__toggle:hover{ color: var(--accent); }

.login-card__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.login-card__row .modal-form__checkbox{ gap: 6px; font-size: .78rem; white-space: nowrap; }
.login-card__forgot{ font-size: .78rem; color: var(--text-muted); flex-shrink: 0; }
.login-card__forgot:hover{ text-decoration: underline; }

.login-card__submit{ width: 100%; justify-content: center; margin-top: 4px; }

.login-card__note{
  margin: 0;
  padding: 10px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}

.login-card__secure{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: .78rem;
  color: var(--text-dim);
}
.login-card__secure .icon{ font-size: 1rem; }

@media (max-width: 1100px){
  .login-hero__inner{ grid-template-columns: 1fr; gap: 40px; }
  .login-intro{ text-align: center; }
  .login-intro h1, .login-intro__text{ margin-left: auto; margin-right: auto; }
  .login-benefits{ margin: 0 auto; }
  .login-panel{ order: -1; }
}

@media (max-width: 640px){
  .login-topbar__back span{ display: none; }
  .login-hero{ padding: 32px 0; }
  .login-benefits{ grid-template-columns: 1fr; }
  .login-card{ padding: 28px 22px; }
  .login-contact{ flex-wrap: wrap; justify-content: flex-start; }
  .login-contact__meta{ flex-wrap: wrap; }
}
