/* ==========================================================================
   ÀLEX NAVARRO | PSICÓLOGO GENERAL SANITARIO
   Estética: Editorial, minimalista, cálida y contemporánea.
   ========================================================================== */

:root {
  /* Paleta cromática */
  --bg-page: #FAF7F2;
  --bg-subtle: #F3EFE9;
  --bg-card: #FFFFFF;
  --bg-dark: #132824;
  --bg-dark-surface: #1B3530;
  
  --text-main: #1A2422;
  --text-muted: #566460;
  --text-light: #746F6B;
  --text-inverse: #F8F5F0;
  --text-inverse-muted: #B4C2BE;
  
  --brand-petroleum: #142B27;
  --brand-petroleum-hover: #0D1F1C;
  --brand-sage: #5C8171;
  --brand-sage-text: #686442;
  --brand-sage-light: #E7EFEA;
  --brand-sage-border: #C8DCD1;
  
  --border-subtle: #DCD3C7;
  --border-card: #E2D8CC;
  
  /* Tipografías */
  --font-serif: 'Playfair Display', 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Espaciado y Layout */
  --max-width: 1140px;
  --max-width-narrow: 840px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-padding: clamp(4.5rem, 9vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Sombras ultra sutiles y elegantes */
  --shadow-subtle: 0 4px 20px -4px rgba(20, 43, 39, 0.04);
  --shadow-card: 0 10px 30px -10px rgba(20, 43, 39, 0.06);
  --shadow-float: 0 20px 40px -15px rgba(20, 43, 39, 0.12);
  
  /* Transiciones */
  --transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tipografías alojadas en la propia web para evitar conexiones externas */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Contenedores */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Tipografía Editorial */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.22;
  color: var(--brand-petroleum);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  line-height: 1.75;
}

p.lead {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-petroleum);
  color: var(--text-inverse);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-sage);
  outline-offset: 3px;
}

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

/* Tags de sección */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-sage-text);
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background-color: var(--brand-sage);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--brand-petroleum);
  color: var(--text-inverse);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: var(--brand-petroleum-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--text-inverse);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-petroleum);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--brand-petroleum);
}

/* Header & Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 225, 215, 0.6);
  transition: var(--transition);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--brand-petroleum);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 500;
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--brand-petroleum);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-petroleum);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
  white-space: nowrap;
}

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

.language-switcher a:hover,
.language-switcher a.is-active {
  color: var(--brand-petroleum);
}

.language-switcher a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.language-switcher-mobile {
  align-self: flex-start;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

/* Dropdown para Áreas */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-main);
}

.dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--brand-petroleum);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--brand-petroleum);
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-page);
  padding: 2.5rem var(--gutter);
  flex-direction: column;
  gap: 1.5rem;
  z-index: 89;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-nav-panel.is-active {
  display: flex;
}

.mobile-nav-panel .nav-link {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brand-petroleum);
}

/* ==========================================================================
   HERO INTERNO DE PÁGINAS (SUBPAGES)
   ========================================================================== */

.page-hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.breadcrumbs a:hover {
  color: var(--brand-petroleum);
}

.page-hero-title {
  margin-bottom: 1rem;
}

.page-hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
}

/* ==========================================================================
   LAYOUT DE PÁGINAS DE SERVICIO / ÁREAS
   ========================================================================== */

.service-detail-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.service-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.service-main-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.service-main-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.checklist-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-subtle);
}

.checklist-box h4 {
  font-size: 1.15rem;
  color: var(--brand-petroleum);
  margin-bottom: 1rem;
}

.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checklist-list li::before {
  content: '✓';
  color: var(--brand-sage);
  font-weight: bold;
}

.service-sidebar-card {
  position: sticky;
  top: 105px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.service-sidebar-card h2,
.service-sidebar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-sidebar-card p {
  font-size: 0.925rem;
  margin-bottom: 1.75rem;
}

.session-prices {
  max-width: 460px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-subtle);
}

.session-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-main);
}

.session-price-row + .session-price-row {
  border-top: 1px solid var(--border-subtle);
}

.session-price-row strong {
  color: var(--brand-petroleum);
  font-size: 1.05rem;
}

.price-tax-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   SECCIONES HOME (HERO, ÁREAS, SOBRE MÍ, ETC.)
   ========================================================================== */

.hero-section {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-petroleum);
  margin-bottom: 1.5rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-sage);
}

.hero-title { margin-bottom: 1.5rem; }

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-pills {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-petroleum);
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-subtle);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.hero-reassurance li::before {
  content: '✓';
  color: var(--brand-sage);
  font-weight: 700;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--bg-subtle);
  aspect-ratio: 4 / 5;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-wrapper picture,
.about-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(231, 225, 215, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-badge-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-petroleum);
}

.hero-badge-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ÁREAS DE TRABAJO EN HOME */
.areas-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.center .section-tag::before { display: none; }

.section-title { margin-bottom: 1rem; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.area-card {
  background-color: var(--bg-card);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-sage-border);
}

.area-title {
  font-size: 1.55rem;
  margin-bottom: 1rem;
  color: var(--brand-petroleum);
}

.area-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.area-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-sage-text);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.area-link:hover {
  color: var(--brand-petroleum);
}

/* SOBRE MÍ */
.about-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  background-color: var(--bg-subtle);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--brand-petroleum);
  background:
    radial-gradient(circle at 72% 28%, rgba(139, 135, 100, 0.24), transparent 32%),
    linear-gradient(145deg, var(--brand-sage-light), var(--bg-card));
}

.about-photo-placeholder span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-photo-placeholder small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-quote-box {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  max-width: 320px;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}

.about-quote-box p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--brand-petroleum);
}

.credentials-container {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.credentials-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.credential-item {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.credential-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-petroleum);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.credential-detail {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* CÓMO FUNCIONA */
.method-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

.step-card {
  position: relative;
  background-color: var(--bg-card);
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-subtle);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-petroleum);
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--brand-petroleum);
}

.step-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* TERAPIA ONLINE */
.online-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.online-banner {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.online-banner .section-tag { color: #98B8A7; }
.online-banner .section-tag::before { background-color: #98B8A7; }
.online-banner h2 { color: var(--text-inverse); margin-bottom: 1.25rem; }

.online-banner .online-intro {
  color: var(--text-inverse-muted);
  font-size: 1.15rem;
  max-width: 720px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.advantage-item {
  border-top: 1px solid rgba(248, 245, 240, 0.15);
  padding-top: 1.5rem;
}

.advantage-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-inverse);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.advantage-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-inverse-muted);
}

/* CIERRE / CONVERSIÓN */
.cta-final-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-subtle) 100%);
}

.cta-final-box {
  max-width: 760px;
  margin: 0 auto;
}

.cta-final-box h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
.cta-final-box p { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--text-muted); margin-bottom: 2.5rem; }

.cta-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.free-conversation-note {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.free-conversation-note button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-sage-text);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.free-conversation-note button:hover {
  color: var(--brand-petroleum);
}

/* FAQ */
.faq-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 1.75rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brand-petroleum);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--brand-sage);
}

.faq-item.is-open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-item.is-open .faq-answer { display: block; }

/* FOOTER MULTI-COLUMNA */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse-muted);
  padding-top: clamp(4rem, 7vw, 5.5rem);
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(248, 245, 240, 0.1);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(248, 245, 240, 0.1);
}

.footer-col-brand .brand-name { color: var(--text-inverse); font-size: 1.5rem; }
.footer-col-brand .brand-sub { color: #98B8A7; margin-top: 0.25rem; display: block; }
.footer-col-brand .footer-desc { margin-top: 1.25rem; max-width: 320px; font-size: 0.9rem; line-height: 1.65; color: var(--text-inverse-muted); }

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-inverse);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-nav-list a:hover { color: var(--text-inverse); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.825rem;
  color: rgba(248, 245, 240, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-emergency {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(248, 245, 240, 0.1);
  color: var(--text-inverse-muted);
  font-size: 0.82rem;
}

.footer-emergency a {
  color: var(--text-inverse);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* MODAL DE PRIMERA VISITA */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(19, 40, 36, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-visible { opacity: 1; visibility: visible; }

.modal-dialog {
  background: var(--bg-card);
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-card);
  padding: clamp(1.35rem, 3vw, 2rem);
  max-height: 94vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.is-visible .modal-dialog { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-subtle);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover { background-color: var(--border-subtle); color: var(--brand-petroleum); }

.modal-header { margin-bottom: 1.75rem; padding-right: 2rem; }
.modal-header h3 { font-size: 1.65rem; margin-bottom: 0.5rem; }
.modal-header p { font-size: 0.925rem; color: var(--text-muted); }

/* Formulario */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--brand-petroleum); margin-bottom: 0.4rem; }

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-sage);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--brand-sage-light);
}

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

.modal-dialog .modal-header { margin-bottom: 0.75rem; }
.modal-dialog .form-group { margin-bottom: 0.75rem; }
.modal-dialog .form-control,
.modal-dialog .form-select,
.modal-dialog .form-textarea { padding: 0.68rem 0.9rem; }
.modal-dialog .form-control,
.modal-dialog .form-select { padding-top: 0.58rem; padding-bottom: 0.58rem; }
.modal-dialog .form-textarea { min-height: 58px; }
.modal-dialog .privacy-consent { margin: 0.45rem 0 1rem; }

.form-legal { font-size: 0.775rem; color: var(--text-light); line-height: 1.45; margin-top: 1rem; margin-bottom: 1.5rem; }
.form-legal a { text-decoration: underline; }

.privacy-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--brand-petroleum);
}

.privacy-consent a {
  color: var(--brand-petroleum);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.emergency-note {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.emergency-note strong { color: var(--brand-petroleum); }
.emergency-note p { margin: 0.3rem 0 0; font-size: inherit; line-height: 1.55; }
.emergency-note a { color: var(--brand-petroleum); font-weight: 700; text-decoration: underline; }

.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.success { display: block; background-color: var(--brand-sage-light); color: var(--brand-petroleum); border: 1px solid var(--brand-sage-border); }
.form-status.error { display: block; background-color: #FDE8E8; color: #9B1C1C; border: 1px solid #F8B4B4; }

/* Contenido Legal */
.legal-content {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.legal-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.legal-content p { margin-bottom: 1.25rem; }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 960px) {
  .areas-grid, .steps-grid, .advantages-grid, .service-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .hero-grid, .about-grid, .footer-top-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-image-wrapper, .about-photo-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .about-quote-box {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
  
  .credentials-grid { grid-template-columns: 1fr; }
  .nav-desktop, .btn-header-cta, .language-switcher-desktop { display: none; }
  .mobile-toggle { display: block; }
}
