/* Puente — Psicoterapia Online
   Paleta Opción B: Lino (#F6F5F0), Carbón (#222624), Salvia Bosque Oscuro (#2F483E) */

:root {
  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --surface-alt: #EFECE5;
  --text: #222624;
  --text-muted: #525955;
  --accent: #2F483E;
  --accent-hover: #22362E;
  --accent-soft: #E6ECE8;
  --border: #DFDDD4;
  --border-strong: #C9C6BA;
  --error: #8C3B32;
  --success-bg: #E6ECE8;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(34, 38, 36, 0.04);
  --shadow-md: 0 10px 30px rgba(34, 38, 36, 0.06);
  --max-w: 1080px;
  --max-read: 740px;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.03rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.012em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}

p.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.72;
  color: var(--text);
  max-width: 68ch;
}

strong {
  color: var(--text);
  font-weight: 600;
}

ul, ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.2rem;
  z-index: 999;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.container--narrow {
  max-width: var(--max-read);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.nav-link {
  font-size: 0.93rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 450;
  padding: 0.35rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 450;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.35rem 0;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] {
  color: var(--accent);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.91rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  color: var(--text);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.4rem 1.5rem;
}

.nav-mobile.open {
  display: block;
}

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

.nav-mobile li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile li:last-child {
  border-bottom: none;
}

.nav-mobile a {
  display: block;
  padding: 0.78rem 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.98rem;
}

.nav-mobile .mobile-sub {
  padding-left: 1rem;
  border-bottom: none;
}

.nav-mobile .mobile-sub a {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.55rem 0;
}

.nav-mobile .mobile-cta {
  margin-top: 1rem;
  border-bottom: none;
}

.nav-mobile .mobile-cta a {
  text-align: center;
  color: #fff;
  padding: 0.78rem 1rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--compact {
  padding: 3.2rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Hero */
.hero {
  padding: 5.2rem 0 4.6rem;
}

.hero-inner {
  max-width: 780px;
}

.hero-meta {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Page Header (Inner pages) */
.page-header {
  padding: 3.8rem 0 2.8rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card--subtle {
  background: var(--bg);
  box-shadow: none;
}

.card-link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Pillars / Callout boxes */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.7rem;
  margin: 1.8rem 0;
}

.callout--soft {
  background: var(--accent-soft);
  border-color: rgba(47, 72, 62, 0.2);
  border-left: 3px solid var(--accent);
}

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

/* Clinical List */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
}

.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-alt);
  padding-top: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-field .hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.78rem 0.95rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 72, 62, 0.12);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.6rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status--success {
  background: var(--success-bg);
  border: 1px solid rgba(47, 72, 62, 0.3);
  color: var(--text);
}

.form-status--error {
  background: #F9ECEA;
  border: 1px solid rgba(140, 59, 50, 0.3);
  color: var(--error);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* CTA Band */
.cta-band {
  background: var(--accent);
  color: #F6F5F0;
  border-radius: var(--radius-lg);
  padding: 3rem 2.6rem;
}

.cta-band h2 {
  color: #FFFFFF;
}

.cta-band p {
  color: rgba(246, 245, 240, 0.88);
  max-width: 62ch;
}

.cta-band .btn--light {
  background: #F6F5F0;
  color: var(--accent);
}

.cta-band .btn--light:hover {
  background: #FFFFFF;
  color: var(--accent-hover);
}

.cta-band .btn--outline-light {
  background: transparent;
  color: #F6F5F0;
  border-color: rgba(246, 245, 240, 0.45);
}

.cta-band .btn--outline-light:hover {
  background: rgba(246, 245, 240, 0.12);
  color: #FFFFFF;
}

/* Info Box for credentials */
.credential-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin: 1.6rem 0;
}

.credential-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--surface-alt);
}

.credential-row:last-child {
  border-bottom: none;
}

.credential-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.credential-val {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.6rem 0 2.4rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.9rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

.footer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.3rem 0;
  }
  .hero {
    padding: 3.6rem 0 3.2rem;
  }
  .grid-2,
  .form-grid,
  .footer-grid,
  .credential-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.5rem;
  }
  .cta-band {
    padding: 2.2rem 1.5rem;
  }
}
