/* =====================================================
   LORENA PONCE — PSICOLOGÍA
   Visual Design System — Warm · Organic · Healing
   ===================================================== */

/* Fuentes: cada HTML carga Google Fonts con <link> en el <head> (un @import aquí duplicaba la petición y bloqueaba el render). */

:root {
  /* ── Identidad: verdes pastel, muy tranquilos ──
     Nombres --sage/--terra/--lav conservados por compatibilidad:
     --sage* = verde eucalipto (acción), --terra* = verde agua (insignias),
     --lav* = azul agua suave. Pasteles --p-* para auroras y orbe. */
  --sage:          #427C60;   /* verde acento · enlaces, iconos, activo (4,6:1 sobre fondo; 4,9:1 con blanco) */
  --sage-mid:      #7FB89A;
  --sage-light:    #C6E6D3;   /* menta pastel */
  --sage-pale:     #EAF5EE;
  /* Botón principal: menta pastel con texto oscuro (≥ 7,8:1) */
  --btn-1:         #B5DEC5;
  --btn-2:         #9FD3B4;
  --btn-ink:       #24332B;

  --lav:           #7FA9BA;   /* azul agua */
  --lav-light:     #C5DEE8;
  --lav-pale:      #EAF4F8;

  --terra:         #2F7A6B;   /* verde agua · insignias y avisos (5,1:1 con blanco) */
  --terra-light:   #9ED9C8;
  --terra-pale:    #E3F4EF;

  /* Pasteles verdes para auroras, orbe y fondos */
  --p-pistacho:    #D6EDC4;
  --p-menta:       #BFE8D6;
  --p-agua:        #CDE9E4;
  --p-lima:        #EAF2C6;
  --p-cielo:       #CFE6EE;
  --p-salvia:      #DCEBDD;
  --dot:           #5FAE85;   /* puntos decorativos */
  /* Toquecitos de rosa palo sobre la base verde */
  --rosa:          #E8BFC4;   /* rosa palo */
  --rosa-mid:      #C98F98;   /* rosa palo intenso (iconos, puntos) */
  --rosa-pale:     #F8E8EA;
  --rosa-ink:      #8C4B57;   /* rosa palo oscuro para texto/insignias (6,9:1 con blanco) */
  /* Orbe «Respira»: multicolor pastel, independiente de la marca */
  --orb-1: #F9C6D3; --orb-2: #D9CCF6; --orb-3: #C3E0F7; --orb-4: #BFE8D6; --orb-5: #FBE7A6;

  --cream:         #F5FAF6;   /* blanco menta */
  --cream-2:       #ECF5EF;
  --cream-3:       #DFEDE4;

  --forest:        #3A4741;   /* gris pizarra con matiz verde · texto principal (9,2:1) */
  --stone:         #5F6E66;   /* texto secundario (5,1:1) */
  --stone-light:   #93A89C;

  --white:         #FFFFFF;
  --border:        #D6E6DC;
  --border-light:  #E8F2EB;

  /* Estado */
  --success:  #2F7A55;
  --danger:   #B42318;
  --warning:  #A86E14;
  --info:     var(--lav);

  /* Sombras con tinte verde */
  --shadow-xs: 0 1px 4px  rgba(30,58,46,0.05);
  --shadow-sm: 0 4px 14px rgba(30,58,46,0.07);
  --shadow-md: 0 10px 32px rgba(30,58,46,0.10);
  --shadow-lg: 0 22px 60px rgba(30,58,46,0.14);

  /* Shape */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font:       'Inter', system-ui, -apple-system, sans-serif;

  /* Aliases used by dashboard.css */
  --primary:        var(--sage);
  --primary-dark:   var(--sage);
  --primary-light:  var(--sage-light);
  --secondary:      var(--lav-light);
  --accent:         var(--terra);
  --accent-light:   var(--terra-light);
  --bg:             var(--cream);
  --bg-card:        var(--white);
  --text:           var(--forest);
  --text-muted:     var(--stone);
  --shadow-md:      var(--shadow-md);
  --nav-bg:         rgba(245,250,246,.90);
}

/* ── DARK MODE ─────────────────────────────── */
/* Se aplica en dos casos: (a) sistema en dark y nadie ha fijado light, o
   (b) usuario ha fijado data-theme="dark" explícitamente. */
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --sage:          #9AD6B4;   /* menta sobre fondo oscuro (10,8:1); texto oscuro encima */
    --sage-mid:      #7FC29E;
    --sage-light:    #3E6E57;
    --sage-pale:     #1D3027;
    --btn-1:         #A9DFC2;
    --btn-2:         #8FD3AE;
    --btn-ink:       #10241A;

    --lav:           #A5CBDA;
    --lav-light:     #456E7E;
    --lav-pale:      #1C2C33;

    --terra:         #8FD0BF;
    --terra-light:   #3F7D70;
    --terra-pale:    #19302B;

    --p-pistacho:    #2C4A2F;
    --p-menta:       #224A3B;
    --p-agua:        #20403E;
    --p-lima:        #3B4524;
    --p-cielo:       #1F3D48;
    --p-salvia:      #263C2E;
    --dot:           #8FD3AE;
    --rosa:          #D7A9B0;
    --rosa-mid:      #E3B5BC;
    --rosa-pale:     #3A2A2E;
    --rosa-ink:      #F0C9CF;
    --orb-1: #8A4A5E; --orb-2: #5A4C8A; --orb-3: #3C5F80; --orb-4: #2F6A55; --orb-5: #7A6A35;

    --cream:         #101915;
    --nav-bg:        rgba(16,25,21,.88);
    --cream-2:       #16221C;
    --cream-3:       #1E2D25;

    --forest:        #E6F2EA;
    --stone:         #A7BCAF;
    --stone-light:   #74897C;

    --white:         #18231D;
    --border:        #2A3A31;
    --border-light:  #1E2B24;

    --success:  #8FD3AE;
    --danger:   #FF8A80;
    --warning:  #E8C26D;

    --shadow-xs: 0 1px 4px  rgba(0,0,0,0.25);
    --shadow-sm: 0 4px 14px rgba(0,0,0,0.38);
    --shadow-md: 0 10px 32px rgba(0,0,0,0.52);
    --shadow-lg: 0 22px 60px rgba(0,0,0,0.62);
  }
}
:root[data-theme="dark"] {
  --sage:          #9AD6B4;   /* menta sobre fondo oscuro (10,8:1); texto oscuro encima */
  --sage-mid:      #7FC29E;
  --sage-light:    #3E6E57;
  --sage-pale:     #1D3027;
  --btn-1:         #A9DFC2;
  --btn-2:         #8FD3AE;
  --btn-ink:       #10241A;

  --lav:           #A5CBDA;
  --lav-light:     #456E7E;
  --lav-pale:      #1C2C33;

  --terra:         #8FD0BF;
  --terra-light:   #3F7D70;
  --terra-pale:    #19302B;

  --p-pistacho:    #2C4A2F;
  --p-menta:       #224A3B;
  --p-agua:        #20403E;
  --p-lima:        #3B4524;
  --p-cielo:       #1F3D48;
  --p-salvia:      #263C2E;
  --dot:           #8FD3AE;
  --rosa:          #D7A9B0;
  --rosa-mid:      #E3B5BC;
  --rosa-pale:     #3A2A2E;
  --rosa-ink:      #F0C9CF;
  --orb-1: #8A4A5E; --orb-2: #5A4C8A; --orb-3: #3C5F80; --orb-4: #2F6A55; --orb-5: #7A6A35;

  --cream:         #101915;
  --nav-bg:        rgba(16,25,21,.88);
  --cream-2:       #16221C;
  --cream-3:       #1E2D25;

  --forest:        #E6F2EA;
  --stone:         #A7BCAF;
  --stone-light:   #74897C;

  --white:         #18231D;
  --border:        #2A3A31;
  --border-light:  #1E2B24;

  --success:  #8FD3AE;
  --danger:   #FF8A80;
  --warning:  #E8C26D;

  --shadow-xs: 0 1px 4px  rgba(0,0,0,0.25);
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.38);
  --shadow-md: 0 10px 32px rgba(0,0,0,0.52);
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.62);
}

/* ── SKELETON LOADER ───────────────────────── */
@keyframes skeleton-pulse {
  0%   { background-position: -240px 0; }
  100% { background-position: 240px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 0%, var(--sage-pale) 50%, var(--border-light) 100%);
  background-size: 240px 100%;
  background-repeat: no-repeat;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent;
  user-select: none;
}
.skeleton-line { height: 14px; margin: 6px 0; width: 100%; }
.skeleton-line.short { width: 60%; }
.skeleton-line.wide  { width: 90%; }
.skeleton-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; opacity: .6; }
}

/* ── ANAMNESIS wizard ───────────────────────── */
.an-wrap { max-width: 720px; margin: 0 auto; }
.an-progress {
  height: 4px; background: var(--sage-pale); border-radius: 4px;
  overflow: hidden; margin-bottom: 20px;
}
.an-progress-bar {
  height: 100%; background: var(--sage);
  transition: width .3s ease;
}
.an-steps {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 32px; flex-wrap: wrap;
}
.an-step {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600;
  background: var(--sage-pale); color: var(--stone);
  border: 1px solid transparent;
}
.an-step.current { background: var(--sage); color: white; }
.an-step.done { background: var(--sage-light); color: var(--forest); }
.an-header { text-align: center; margin-bottom: 28px; }
.an-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px;
}
.an-header h2 {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700; letter-spacing: -.015em;
  margin: 0 0 8px;
}
.an-header p { color: var(--stone); font-size: 15px; margin: 0; }
.an-body {
  background: var(--white); padding: 32px;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px;
}
.an-nav {
  display: flex; gap: 10px; justify-content: space-between;
  flex-wrap: wrap;
}
.an-nav .btn { flex: 1; min-width: 130px; justify-content: center; }

.anq-scale { display: flex; gap: 8px; margin-top: 8px; }
.anq-scale-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border);
  cursor: pointer; font-family: var(--font-serif); font-size: 16px; font-weight: 700;
  color: var(--stone); transition: all .15s;
}
.anq-scale-btn:hover { border-color: var(--sage); }
.anq-scale-btn.active { background: var(--sage); color: white; border-color: var(--sage); }

/* Visor (admin read-only) */
.an-view-section { margin-bottom: 24px; }
.an-view-section h4 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700;
  margin: 0 0 12px; color: var(--forest);
  padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}
.an-view-row {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 12px; padding: 8px 0;
  font-size: 14px;
}
.an-view-label { color: var(--stone); font-weight: 500; }
.an-view-value { color: var(--forest); white-space: pre-wrap; }
@media (max-width: 640px) {
  .an-view-row { grid-template-columns: 1fr; gap: 2px; }
  .an-view-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
  .an-body { padding: 20px; }
}

/* ── DIARIO ─────────────────────────────────── */
.diary-wrap { max-width: 720px; margin: 0 auto; }
.diary-today { padding: 28px; }
.diary-mood-picker {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-top: 8px;
}
.diary-mood {
  padding: 14px 8px; border-radius: 14px;
  background: var(--cream); border: 2px solid transparent;
  cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.diary-mood:hover { background: var(--cream-2); }
.diary-mood.selected { background: var(--sage-pale); border-color: var(--sage); }
.diary-mood .dm-emoji { font-size: 26px; line-height: 1; }
.diary-mood .dm-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.diary-mood.selected .dm-label { color: var(--sage); font-weight: 600; }

.diary-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.diary-tag {
  padding: 6px 12px; border-radius: 50px;
  background: transparent; border: 1px solid var(--border);
  font-size: 12px; color: var(--stone); cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.diary-tag:hover { background: var(--cream-2); color: var(--forest); }
.diary-tag.selected { background: var(--sage); color: white; border-color: var(--sage); }

.diary-entry { padding: 16px 20px; margin-bottom: 10px; }
.diary-entry-head { display: flex; align-items: center; gap: 12px; }
.diary-entry-mood { font-size: 28px; line-height: 1; }
.diary-entry-text {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 14px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap;
}
@media (max-width: 640px) {
  .diary-today { padding: 20px; }
  .diary-mood { padding: 10px 4px; }
  .diary-mood .dm-emoji { font-size: 22px; }
}

/* ── TCC ────────────────────────────────────── */
.tcc-wrap { max-width: 720px; margin: 0 auto; }
.tcc-distortions { display: grid; gap: 8px; }
.tcc-distortion {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer;
  align-items: center;
}
.tcc-distortion:hover { background: var(--cream); }
.tcc-distortion input { accent-color: var(--sage); width: 18px; height: 18px; }
.tcc-d-name { font-weight: 600; font-size: 13px; grid-column: 2; }
.tcc-d-desc { font-size: 11.5px; color: var(--text-muted); grid-column: 2; }
.tcc-entry { padding: 18px 20px; margin-bottom: 12px; }
.tcc-block { margin-bottom: 8px; }
.tcc-label {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px; font-family: 'IBM Plex Mono', monospace;
}

/* ── EJERCICIOS ─────────────────────────────── */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ex-card {
  display: flex; gap: 16px; padding: 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.ex-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ex-icon { font-size: 32px; line-height: 1; }
.ex-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ex-lead { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.ex-meta { font-size: 11px; color: var(--sage); margin-top: 8px; font-family: 'IBM Plex Mono', monospace; letter-spacing: .05em; }

/* ── TAREAS ─────────────────────────────────── */
.tasks-wrap { max-width: 720px; }
.task-card details summary { list-style: none; }
.task-card details summary::-webkit-details-marker { display: none; }
.task-card details[open] summary { color: var(--forest); }

/* ── CUESTIONARIOS ──────────────────────────── */
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

/* ── TIMELINE ───────────────────────────────── */
.tl-wrap { position: relative; padding-left: 12px; }
.tl-wrap::before {
  content: ''; position: absolute; left: 22px; top: 12px; bottom: 12px;
  width: 2px; background: var(--border);
}
.tl-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  margin-bottom: 18px; position: relative;
}
.tl-marker {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; z-index: 1; margin-left: 4px;
}
.tl-content {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  position: relative;
}
.tl-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--stone); letter-spacing: .05em; margin-bottom: 3px; }
.tl-title { font-weight: 600; font-size: 14px; }
.tl-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.tl-mood { font-size: 18px; position: absolute; top: 8px; right: 12px; }

/* ── PLAN TERAPÉUTICO ───────────────────────── */
.pt-wrap { max-width: 720px; }
.pt-fase { border-left: 3px solid var(--sage); }
.pt-obj input[type=text]:focus { outline: 2px solid var(--sage-light); }

/* ── AVAILABILITY ───────────────────────────── */
.av-wrap { max-width: 900px; }

/* ── RESET & BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--forest);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
*:focus-visible {
  outline: 3px solid var(--sage-light);
  outline-offset: 3px;
  border-radius: 4px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sage); text-decoration: none; transition: color .2s; }
a:hover { color: var(--forest); }

/* ── UTILITIES ────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.text-muted   { color: var(--stone); }
.hidden       { display: none !important; }

.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}

.flex        { display:flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  min-height: 46px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all .22s ease;
  white-space: nowrap; text-decoration: none;
  letter-spacing: .015em;
}
.btn-primary {
  background: var(--terra); color: var(--white); border-color: var(--terra);
  box-shadow: 0 6px 18px rgba(232,152,120,.35);
}
.btn-primary:hover {
  background: #D47E5E; border-color: #D47E5E; color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,152,120,.45);
}
.btn-outline {
  background: transparent; color: var(--sage); border-color: var(--sage);
}
.btn-outline:hover {
  background: var(--sage); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194,54,90,.25);
}
.btn-white {
  background: var(--white); color: var(--sage); border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream); color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm  { padding: 10px 20px; min-height: 38px; font-size: 13.5px; }
.btn-lg  { padding: 18px 40px; min-height: 56px; font-size: 17px; }
.btn-danger  { background:var(--danger);  color:#fff; border-color:var(--danger);  }
.btn-success { background:var(--success); color:#fff; border-color:var(--success); }
.btn-accent  { background:var(--terra);   color:#fff; border-color:var(--terra);   }

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow .25s, transform .25s;
}
.card:hover        { box-shadow: var(--shadow-md); }
.card-hover:hover  { transform: translateY(-4px); }

/* ── FORMS ───────────────────────────────── */
.form-group   { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--stone); margin-bottom: 7px; letter-spacing: .01em;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--forest);
  background: var(--white); transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(194,54,90,.14);
}
.form-control::placeholder { color: var(--stone-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control  { cursor: pointer; }

/* ── BADGES ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
}
.badge-primary   { background:rgba(194,54,90,.14);  color:var(--sage); }
.badge-success   { background:rgba(74,139,98,.12);  color:var(--success); }
.badge-danger    { background:rgba(184,85,85,.12);  color:var(--danger); }
.badge-warning   { background:rgba(184,138,64,.12); color:var(--warning); }
.badge-secondary { background:var(--cream-3); color:var(--stone); }

/* ── ALERTS ─────────────────────────────── */
.alert {
  padding: 13px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background:rgba(74,139,98,.09);  color:var(--success); border:1px solid rgba(74,139,98,.18); }
.alert-danger  { background:rgba(184,85,85,.09);  color:var(--danger);  border:1px solid rgba(184,85,85,.18); }
.alert-info    { background:var(--sage-pale);     color:var(--sage);    border:1px solid rgba(194,54,90,.20); }
.alert-warning { background:rgba(184,138,64,.09); color:var(--warning); border:1px solid rgba(184,138,64,.18); }

/* ── TABS ───────────────────────────────── */
.tabs {
  display: flex; border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px; gap: 0;
}
.tab-btn {
  padding: 11px 20px; border: none; background: none;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--stone); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.tab-btn:hover { color: var(--sage); }
.tab-btn.active { color: var(--sage); border-bottom-color: var(--sage); }
.tab-content        { display: none; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: all .3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1160px; margin: 0 auto; padding: 0 28px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--forest);
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--sage), var(--sage-mid));
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
  box-shadow: 0 6px 16px rgba(194,54,90,.28);
}
.navbar-nav {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.navbar-nav a {
  padding: 9px 15px; border-radius: 50px; white-space: nowrap;
  color: var(--stone); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.navbar-nav a { font-size: 15px; }
.navbar-nav a:hover { background: var(--sage-pale); color: var(--sage); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: var(--forest);
  align-items: center; justify-content: center;
  transition: background .15s;
}
.mobile-menu-toggle:hover { background: var(--sage-pale); }
.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* Mobile menu overlay + drawer */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(43,30,46,.45);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1051;
  width: min(340px, 88vw);
  background: var(--cream);
  padding: 20px 20px 28px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -8px 0 32px rgba(43,30,46,.15);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--forest);
  font-size: 22px; font-weight: 300;
  border-radius: 10px;
  transition: background .15s;
}
.mobile-menu-close:hover { background: var(--sage-pale); }
.mobile-menu .nav-link {
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  transition: background .15s;
}
.mobile-menu .nav-link:hover { background: var(--sage-pale); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 14px 4px; }
.mobile-menu .btn { justify-content: center; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  padding: 130px 0 0;
  background: var(--cream);
  position: relative; overflow: hidden;
  min-height: 96vh;
  display: flex; align-items: center;
}

/* Organic background blobs */
.hero-blob-1 {
  position: absolute; top: -140px; right: -160px; width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(143,196,201,.34) 0%, transparent 65%);
  border-radius: 50%;
  animation: driftA 16s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute; bottom: -100px; left: -120px; width: 560px; height: 560px;
  background: radial-gradient(ellipse, rgba(244,197,172,.28) 0%, transparent 60%);
  border-radius: 50%;
  animation: driftB 20s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob-3 {
  position: absolute; top: 30%; left: 35%; width: 340px; height: 340px;
  background: radial-gradient(ellipse, rgba(91,122,138,.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
@keyframes driftA {
  0%,100% { transform: translate(0,0) scale(1);    }
  33%      { transform: translate(30px,-30px) scale(1.04); }
  66%      { transform: translate(-20px,20px) scale(.97); }
}
@keyframes driftB {
  0%,100% { transform: translate(0,0) scale(1);    }
  40%      { transform: translate(-25px,35px) scale(1.03); }
  70%      { transform: translate(20px,-15px) scale(.96); }
}

.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
  position: relative; z-index: 1;
  padding-bottom: 80px;
}

/* Hero text */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-pale); color: var(--sage);
  padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid rgba(194,54,90,.20);
  margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1);    }
  50%      { opacity:.5; transform:scale(1.4); }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 64px; font-weight: 700; line-height: 1.08;
  color: var(--forest); margin-bottom: 26px;
  letter-spacing: -.025em;
}
.hero h1 em {
  font-style: italic; color: var(--sage);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--terra-light), var(--sage-light));
  border-radius: 2px;
  opacity: .7;
}
.hero p {
  font-size: 19px; color: var(--stone); line-height: 1.75;
  margin-bottom: 40px; max-width: 500px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 0; }
.hero-stat-item {
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.hero-stat-item:first-child { padding-left: 0; }
.hero-stat-item:last-child  { border-right: none; }
.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 700; color: var(--sage);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--stone); margin-top: 4px; }

/* Hero Illustration */
.hero-illustration-wrap {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  height: 540px;
}
.hero-portrait-svg {
  width: 440px; height: 520px;
  filter: drop-shadow(0 24px 56px rgba(43,30,46,.16));
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1)   translateY(0px); }
  50%      { transform: scale(1.015) translateY(-8px); }
}

/* Floating info cards */
.hero-chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600; color: var(--forest);
  white-space: nowrap;
}
.hero-chip-1 { bottom: 60px; left: -20px; animation: floatA 4s ease-in-out infinite; }
.hero-chip-2 { top: 60px; right: -10px; animation: floatB 5s ease-in-out infinite; }
.hero-chip-3 { top: 45%; left: -30px; animation: floatC 6s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes floatC { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.chip-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.chip-icon-sage  { background: var(--sage-pale); }
.chip-icon-lav   { background: var(--lav-pale);  }
.chip-icon-terra { background: var(--terra-pale); }
.chip-sub { font-size: 11px; color: var(--stone); font-weight: 400; display: block; }

/* ── WAVE DIVIDER ──────────────────────── */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section      { padding: 88px 0; }
.section-warm { background: var(--cream-2); }
.section-white{ background: var(--white);   }
.section-sage { background: var(--sage-pale); }

.section-header { margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--sage); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 46px; font-weight: 700; color: var(--forest);
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -.025em;
}
.section-title em { font-style: italic; color: var(--sage); }
.section-subtitle {
  font-size: 18px; color: var(--stone); font-weight: 400;
  max-width: 560px; line-height: 1.75;
}
.section-header.text-center .section-subtitle { margin: 0 auto; }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-layout {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 72px; align-items: center;
}
.about-portrait-frame {
  position: relative;
}
.about-portrait-blob {
  width: 100%; aspect-ratio: 3/4;
}
.about-tag {
  position: absolute; bottom: 32px; right: -16px;
  background: var(--white);
  border-radius: 18px; padding: 14px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  font-size: 13px; font-weight: 600; color: var(--forest);
}
.about-tag span { display: block; font-size: 11px; color: var(--stone); font-weight: 400; }
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 700; margin-bottom: 20px;
  color: var(--forest); line-height: 1.2;
}
.about-text p { color: var(--stone); line-height: 1.85; margin-bottom: 16px; font-size: 16px; }

.credential-list { list-style: none; margin: 28px 0 36px; }
.credential-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}
.credential-list li:last-child { border: none; }
.cred-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1.5px solid var(--border-light);
  transition: all .25s;
  cursor: default;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--sage-light), var(--terra-light));
  opacity: 0; transition: opacity .25s;
}
.service-card:hover {
  border-color: var(--sage-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--sage-pale), var(--terra-pale));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 24px;
  transition: transform .25s;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--forest);
}
.service-card p { color: var(--stone); font-size: 14px; line-height: 1.75; }
.service-price {
  margin-top: 20px; font-family: var(--font-serif);
  font-size: 24px; font-weight: 700; color: var(--sage);
}
.service-price span { font-family: var(--font); font-size: 13px; color: var(--stone); font-weight: 400; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.steps-wrap { position: relative; }
.steps-connector {
  position: absolute; top: 44px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light), var(--lav-light), transparent);
}
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; position: relative; z-index: 1; }
.step-card { text-align: center; }
.step-circle {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--sage), var(--sage-mid));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(194,54,90,.28);
  transition: transform .25s;
}
.step-card:hover .step-circle { transform: scale(1.07); }
.step-number {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700; color: var(--white);
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--forest); }
.step-card p  { font-size: 13.5px; color: var(--stone); line-height: 1.7; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid var(--border-light);
  position: relative;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 72px; line-height: .7;
  color: var(--sage-light); margin-bottom: 6px;
  display: block;
}
.testimonial-stars { font-size: 15px; margin-bottom: 14px; color: #D4A017; }
.testimonial-text {
  font-size: 15px; color: var(--stone); line-height: 1.8;
  font-style: italic; margin-bottom: 22px;
  font-family: var(--font-serif); font-weight: 400;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--terra-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.testimonial-author-name { font-weight: 700; font-size: 14px; }
.testimonial-author-sub  { font-size: 12px; color: var(--stone); }

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(140deg, #1F3A42 0%, #3A7559 50%, #1B2F36 100%);
  color: var(--white); padding: 104px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(143,196,201,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(244,197,172,.12) 0%, transparent 55%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-leaf {
  font-size: 56px; display: block; margin-bottom: 20px;
  animation: sway 5s ease-in-out infinite;
}
@keyframes sway {
  0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)}
}
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 44px; font-weight: 700; margin-bottom: 18px;
  line-height: 1.15; letter-spacing: -.02em;
}
.cta-section h2 em { font-style: italic; color: var(--sage-light); }
.cta-section p {
  font-size: 18px; opacity: .75; margin-bottom: 40px;
  max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.75; font-weight: 300;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-info-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 14px;
  border: 1px solid var(--border-light);
  transition: box-shadow .2s;
}
.contact-info-card:hover { box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0;
}
.contact-label { font-size: 11.5px; color: var(--stone); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-value { font-size: 15px; font-weight: 600; color: var(--forest); margin-top: 2px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #1B2F36;
  color: rgba(255,255,255,.68); padding: 72px 0 84px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 44px; margin-bottom: 52px;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  color: white; margin-bottom: 16px;
}
.footer-desc { font-size: 14px; line-height: 1.75; }
.footer-heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: white; margin-bottom: 18px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.55); font-size: 14px; transition: color .2s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

/* ── MODAL ───────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43,30,46,.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; max-width: 520px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s;
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: var(--forest);
}
.modal-close {
  background: var(--cream-3); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--stone);
  transition: all .2s; flex-shrink: 0;
}
.modal-close:hover { background: var(--danger); color: white; }

/* ── TIMELINE ────────────────────────────── */
.timeline { position:relative; padding-left:28px; }
.timeline::before {
  content:''; position:absolute; left:8px; top:0; bottom:0;
  width:2px; background:var(--border-light);
}
.timeline-item { position:relative; margin-bottom:24px; }
.timeline-dot {
  position:absolute; left:-24px; top:3px;
  width:14px; height:14px; border-radius:50%;
  background:var(--sage); border:2px solid white;
  box-shadow:0 0 0 3px var(--sage-pale);
}
.timeline-item-date  { font-size:12px; color:var(--stone); margin-bottom:4px; }
.timeline-item-content { font-size:14px; font-weight:500; }
.timeline-item-note  { font-size:13px; color:var(--stone); margin-top:4px; }

/* ── PROGRESS ──────────────────────────── */
.progress-bar-wrap { background:var(--cream-3); border-radius:50px; overflow:hidden; height:8px; }
.progress-bar { height:100%; background:linear-gradient(to right,var(--sage),var(--sage-light)); border-radius:50px; transition:width .6s ease; }

/* ── RESOURCE CARD ─────────────────────── */
.resource-card {
  background:var(--white); border-radius:var(--radius); padding:22px;
  border:1.5px solid var(--border-light);
  display:flex; gap:18px; align-items:flex-start;
  transition: all .22s;
}
.resource-card:hover { border-color:var(--sage-light); box-shadow:var(--shadow-sm); }
.resource-icon {
  width:46px; height:46px; border-radius:12px;
  background:var(--sage-pale);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; flex-shrink:0;
}
.resource-title { font-size:15px; font-weight:700; margin-bottom:5px; color:var(--forest); }
.resource-desc  { font-size:13px; color:var(--stone); line-height:1.6; }

/* ── RESPONSIVE ────────────────────────── */
/* Navbar compacto en portátiles pequeños (6 enlaces + 2 botones no caben con el padding normal) */
@media(max-width:1280px){
  .navbar-inner { padding: 0 20px; }
  .navbar-nav a { padding: 9px 10px; font-size: 14px; }
  .navbar-actions .btn { padding-left: 16px; padding-right: 16px; }
}
/* Por debajo de 1080px el menú pasa a hamburguesa */
@media(max-width:1080px){
  .navbar-nav, .navbar-actions { display:none; }
  .mobile-menu-toggle { display: flex; }
}
@media(max-width:1024px){
  .hero h1 { font-size:46px; }
  .section-title { font-size:36px; }
  .steps-grid { grid-template-columns:repeat(2,1fr); }
  .steps-connector { display:none; }
}
@media(max-width:768px){
  .container, .navbar-inner { padding: 0 20px; }
  .hero-content { grid-template-columns:1fr; text-align:center; }
  .hero-illustration-wrap { display:none; }
  .hero-actions { justify-content:center; }
  .hero-stats { justify-content:center; flex-wrap:wrap; row-gap:18px; }
  .hero-stat-item { padding:0 18px; }
  .hero-content { grid-template-columns:minmax(0,1fr); } /* la pista 1fr crecía al min-content de las stats y el hero desbordaba 40px en móvil */
  .hero h1 { font-size:38px; }
  .hero p { max-width:none; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
  .about-layout { grid-template-columns:1fr; }
  .about-portrait-frame { display:none; }
  .footer-grid { grid-template-columns:1fr; }
  .navbar-brand { font-size: 16px; }
  .brand-icon { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .footer-bottom { flex-direction:column; gap:12px; text-align:center; }
  .cta-section h2 { font-size:32px; }
}
