/* ==========================================================================
   CONFÍO SALUD MENTAL — SISTEMA DE ESTILOS WEB («LA CASA CONFÍO»)
   Basado en la Especificación de Diseño y Wireframe Maestro
   Paleta: Lino cálido (#F2EFE9) + Verde Salvia (#D7E1DB) + Tinta (#1A1A1A)
   Tipografía: Fraunces (Editorial humana) + Space Mono (Funcional/Técnica)
   ========================================================================== */

/* --- 1. Variables y Tokens de Diseño --- */
:root {
  /* Fondos Base Cálidos */
  --bg-main:       #F2EFE9;   /* Lino cálido: Fondo principal */
  --bg-card:       #FAF9F6;   /* Blanco roto cálido: Fondo de tarjetas y contenedores */
  --bg-card-sub:   #EAE6DF;   /* Arena suave: Cajas secundarias o divisores */
  
  /* Tintas y Textos */
  --ink:           #1A1A1A;   /* Tinta principal: Máxima legibilidad */
  --ink-secondary: #4A4A4A;   /* Texto secundario y notas */
  --ink-muted:     #767676;   /* Bordes sutiles y textos auxiliares */
  
  /* Verde Salvia Pastel Suave (Incorporación Botánica) */
  --sage-soft:     #D7E1DB;   /* Verde salvia pastel: Fondo de la sección de la App */
  --sage-card:     #EBF1EE;   /* Verde salvia ultra-suave: Fondos de acordeones */
  --sage-ink:      #203D2E;   /* Verde bosque profundo: Acentos orgánicos y citas */
  
  /* Acentos de Interacción y Estados */
  --accent-teal:   #2A9D8F;   /* Teal de la App: Estado activo / confirmación */
  --earth-warm:    #C8A882;   /* Acento tierra cálido / madera suave */
  --border-strong: #1A1A1A;   /* Borde sólido editorial (2px) */
  --border-light:  #D4D0C8;   /* Borde suave para divisores */
  --border-radius: 6px;       /* Curvatura sutil y orgánica */
  
  /* Tipografías */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono:  'Space Mono', monospace;
  
  /* Dimensiones y Espaciados */
  --header-height: 72px;
  --max-width: 1140px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.75rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* --- 2. Reseteo y Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--ink);
}

body {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* --- 3. Tipografía y Jerarquía --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Tipografía funcional (Space Mono) */
.font-mono,
.badge,
.tag,
.btn,
.nav-link,
.card-meta,
.footer-meta {
  font-family: var(--font-mono);
}

/* --- 4. Componentes Comunes y Layout --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: var(--spacing-lg);
  max-width: 720px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  background: var(--bg-card-sub);
  color: var(--ink);
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-light);
}

.badge-sage {
  background: var(--sage-soft);
  color: var(--sage-ink);
  border-color: #BFCEC5;
}

.badge-active {
  background: #E6F4EA;
  color: #137333;
  border-color: #CEEAD6;
}

.badge-waiting {
  background: #FEF7E0;
  color: #B06000;
  border-color: #FEEFC3;
}

/* Botones Editoriales Brutalistas Cálidos */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-align: center;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--bg-card);
  border: 2px solid var(--ink);
}

.btn-primary:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-secondary:hover {
  background-color: var(--ink);
  color: var(--bg-card);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #486A56; /* Verde oliva botánico, sobrio y congruente */
  color: #FAF9F6;
  border: 2px solid #2F4A3B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 2px 2px 0px rgba(47, 74, 59, 0.14);
}

.btn-whatsapp:hover {
  background-color: #2F4A3B;
  border-color: #1E3327;
  color: #FAF9F6;
  transform: translateY(-2px);
  box-shadow: 3px 4px 12px rgba(47, 74, 59, 0.24);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-ink);
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid currentColor;
}

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

/* Tarjetas */
.card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: 3px 3px 0px rgba(26, 26, 26, 0.08);
}

/* --- 5. Cabecera Fija (Header) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(242, 239, 233, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--sage-ink);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-header-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--ink);
  color: var(--bg-card);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  padding: 0;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: all 0.25s ease;
}

/* --- 6. Hero / Portada (El Recibidor) --- */
.hero-section {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-light);
  background-image: 
    /* Velo muy sutil: deja ver con claridad la planta, el panelado de madera y el sofá */
    linear-gradient(
      to right,
      rgba(242, 239, 233, 0.60) 0%,
      rgba(242, 239, 233, 0.38) 40%,
      rgba(242, 239, 233, 0.08) 72%,
      transparent 100%
    ),
    /* Suavizado vertical ligero en los extremos para no tapar la maceta ni el suelo */
    linear-gradient(
      to bottom,
      rgba(242, 239, 233, 0.20) 0%,
      transparent 10%,
      transparent 90%,
      rgba(242, 239, 233, 0.30) 100%
    ),
    url('../assets/img/hero-portada.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero-container {
  position: relative;
  z-index: 2;
}

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

.hero-title {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
  line-height: 1.18;
  text-shadow: 0 1px 2px rgba(242, 239, 233, 0.95), 0 0 14px rgba(242, 239, 233, 0.85);
}

.hero-text-block {
  background-color: rgba(242, 239, 233, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.35rem 1.6rem;
  border-radius: var(--border-radius);
  border-left: 3.5px solid var(--sage-ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-lead {
  font-size: 1.26rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.hero-subtext {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0;
}

.hero-content .btn-primary {
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.18);
}

.hero-content .btn-secondary {
  background-color: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-content .btn-secondary:hover {
  background-color: var(--ink);
  color: var(--bg-card);
}

/* --- 7. Nuestra Filosofía --- */
.filosofia-section {
  background-color: var(--bg-main);
}

.filosofia-quote-card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--border-radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 4px 4px 0px rgba(26, 26, 26, 0.06);
}

.filosofia-quote-card blockquote {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  color: var(--sage-ink);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.filosofia-essential-text {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 1.8rem;
}

.pilares-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  list-style: none;
}

.pilar-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card-sub);
  border-radius: 3px;
  border: 1px solid var(--border-light);
  color: var(--ink);
}

.expandable-block {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 1.5rem;
}

.expandable-content {
  display: none;
  margin-top: 1.25rem;
  padding: 1.5rem;
  background-color: var(--sage-card);
  border-left: 3px solid var(--sage-ink);
  border-radius: 0 4px 4px 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}

.expandable-content.is-open {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* --- 8. Dos Caminos, Un Punto de Encuentro (Terapeutas) --- */
.terapeutas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.terapeuta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.terapeuta-header {
  margin-bottom: 1.5rem;
}

.terapeuta-portrait-placeholder {
  height: 220px;
  background: linear-gradient(135deg, #E8ECE9 0%, #DCE5E0 100%);
  border: 1.5px dashed #A5B6AC;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--sage-ink);
}

.terapeuta-portrait-placeholder svg {
  width: 44px;
  height: 44px;
  stroke: var(--sage-ink);
  margin-bottom: 0.75rem;
  opacity: 0.75;
}

.portrait-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terapeuta-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.terapeuta-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--sage-ink);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.terapeuta-bio {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.transparency-box {
  background: var(--bg-card-sub);
  border-left: 3px solid var(--earth-warm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.terapeuta-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* --- 9. ¿Cómo podemos acompañarte? (Situaciones Humanas) --- */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.accordion-item:hover {
  box-shadow: 2px 2px 0px rgba(26, 26, 26, 0.08);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.2s ease;
}

.accordion-trigger:hover {
  background-color: rgba(215, 225, 219, 0.2);
}

.accordion-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage-ink);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.is-open .accordion-trigger {
  background-color: var(--sage-card);
  border-bottom: 1px solid var(--border-light);
}

.accordion-body {
  display: none;
  padding: 1.5rem 1.6rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--sage-card);
}

.accordion-item.is-open .accordion-body {
  display: block;
  animation: accordionSlide 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes accordionSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 10. La App Confío en tu Día a Día --- */
.app-section {
  background-color: var(--sage-soft);
  border-top: 2px solid var(--sage-ink);
  border-bottom: 2px solid var(--sage-ink);
}

.app-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.app-features-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.app-feature-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--sage-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-feature-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--sage-ink);
  flex-shrink: 0;
}

.app-screenshot-card {
  background: var(--bg-card);
  border: 2px solid var(--sage-ink);
  border-radius: var(--border-radius);
  padding: 0.85rem;
  box-shadow: 6px 6px 0px rgba(32, 61, 46, 0.25);
  max-width: 440px;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-screenshot-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0px rgba(32, 61, 46, 0.3);
}

.app-screenshot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.65rem;
}

.app-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

.app-screenshot-inner {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
}

.app-screenshot-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.install-guide-box {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--sage-ink);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.install-tabs {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.install-step-card {
  background: var(--bg-card-sub);
  padding: 0.85rem;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.install-step-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

/* --- 11. Tarifas y Preguntas Frecuentes (FAQ) --- */
.tarifas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.tarifa-card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 3px 3px 0px rgba(26, 26, 26, 0.08);
}

.tarifa-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.tarifa-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 1.25rem;
}

.tarifa-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sage-ink);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
}

/* --- 12. La Puerta (Contacto Humano) --- */
.contacto-card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--border-radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 5px 5px 0px rgba(26, 26, 26, 0.08);
}

.contacto-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.contacto-card p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 620px;
  margin: 0 auto 2rem auto;
}

.contacto-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.email-contact-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-secondary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.email-contact-link:hover {
  color: var(--ink);
}

/* --- 13. Pie de Página (Footer) --- */
.site-footer {
  background-color: var(--bg-card-sub);
  border-top: 2px solid var(--ink);
  padding: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.footer-disclaimer-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-disclaimer-box strong {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: end;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* --- 14. Animaciones y Accesibilidad --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 3px solid var(--sage-ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- 15. Responsive Design (Tablets y Móviles) --- */
@media (max-width: 900px) {
  :root {
    --spacing-xl: 3.5rem;
    --spacing-lg: 2.2rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3.5rem;
    background-image: 
      linear-gradient(
        to bottom,
        rgba(242, 239, 233, 0.70) 0%,
        rgba(242, 239, 233, 0.50) 45%,
        rgba(242, 239, 233, 0.75) 100%
      ),
      url('../assets/img/hero-portada.jpg');
    background-position: left center;
  }

  .hero-content {
    max-width: 100%;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .terapeutas-grid,
  .tarifas-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .install-tabs {
    grid-template-columns: 1fr;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  /* Menú Móvil */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem 2rem;
    box-shadow: -10px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    gap: 1.5rem;
  }

  .nav-menu.is-active {
    right: 0;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 32px;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .brand {
    gap: 0.55rem;
  }
}

/* --- 15. Botón Flotante Discreto de WhatsApp --- */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background-color: #486A56; /* Verde oliva botánico sobrio */
  border: 2px solid #2F4A3B;
  border-radius: var(--border-radius); /* Cuadrado con bordes suaves de 6px */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAF9F6;
  box-shadow: 2px 3px 8px rgba(47, 74, 59, 0.22);
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  background-color: #2F4A3B;
  border-color: #1E3327;
  color: #FAF9F6;
  transform: translateY(-2px);
  box-shadow: 3px 5px 14px rgba(47, 74, 59, 0.32);
}

.whatsapp-floating-btn svg {
  width: 24px;
  height: 24px;
  fill: #FAF9F6;
  transition: transform 0.2s ease;
}

.whatsapp-floating-btn:hover svg {
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .whatsapp-floating-btn {
    bottom: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
  }
  .whatsapp-floating-btn svg {
    width: 22px;
    height: 22px;
  }
}
