/* Estilos compartidos de las páginas de servicios (individual, pareja y grupos). Requiere estilos.css. */

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 18px;
  border-radius: 8px; font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

/* Breadcrumb */
.breadcrumb { background: var(--bg); padding: 14px 5%; border-bottom: 1px solid #e2e8f0; margin-top: 72px; }
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.breadcrumb-inner a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb-inner i { font-size: 10px; color: #8a9aa8; }
.breadcrumb-inner [aria-current] { color: var(--navy); font-weight: 600; }

/* Hero */
.page-hero {
  background: linear-gradient(135deg, #0d2137 0%, #1B3A5C 60%, #1e4a6e 100%);
  padding: 88px 5% 72px; position: relative; overflow: hidden;
}
.page-hero.hero-pareja { background: linear-gradient(135deg, #1a2238 0%, #1B3A5C 55%, #2a4a6b 100%); }
.page-hero.hero-grupos { background: linear-gradient(135deg, #0d2137 0%, #173a52 55%, #1f5260 100%); }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { max-width: 840px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero .lead {
  font-size: 18px; color: rgba(255,255,255,.84);
  line-height: 1.75; margin: 0 auto 32px; max-width: 680px;
}
.page-hero .hero-badge { margin-bottom: 20px; display: inline-flex; }
.page-hero .hero-actions { justify-content: center; }
.page-hero .btn-outline { border-color: rgba(255,255,255,.55); }
.hero-reassure {
  display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin-top: 30px;
}
.hero-reassure li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.8); }
.hero-reassure i { color: var(--gold); }

/* Aviso */
.urgent-strip { background: #fff7ed; border-bottom: 1px solid #fed7aa; padding: 16px 5%; }
.urgent-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14.5px; line-height: 1.6; color: #7c2d12;
}
.urgent-strip-inner > i { margin-top: 4px; font-size: 18px; color: #c2410c; flex-shrink: 0; }
.urgent-strip p { margin: 0; }
.urgent-strip a { color: #7c2d12; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* Layout */
.article-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px;
  padding: 72px 5%;
}
.article-body h2 {
  font-size: clamp(24px, 2.6vw, 32px); color: var(--navy);
  margin: 64px 0 16px; line-height: 1.25; scroll-margin-top: 96px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 19px; color: var(--navy); margin: 28px 0 10px; }
.article-body p { font-size: 16.5px; color: #34485a; line-height: 1.85; margin-bottom: 20px; }
.article-body strong { color: var(--navy); }
.article-body p a, .article-body li a, .faq-answer a, .compare-card a, .toc a {
  color: var(--navy); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 3px;
}
.article-body p a:hover, .faq-answer a:hover { color: #0d2137; text-decoration-thickness: 2px; }

/* Índice */
.toc { background: var(--bg); border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 26px; margin: 0 0 48px; }
.toc p { font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 12px; }
.article-body .toc p { font-size: 13px; line-height: 1.4; margin: 0 0 12px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; break-inside: avoid; color: var(--muted); }
.toc a { font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.check-list {
  list-style: none; margin: 20px 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 0;
}
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: #34485a; line-height: 1.55; }
.check-list li i { color: var(--gold); font-size: 14px; margin-top: 4px; flex-shrink: 0; }
.check-list-single { grid-template-columns: 1fr; }

.highlight-box {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fb 100%);
  border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0;
  padding: 22px 26px; margin: 28px 0;
}
.article-body .highlight-box p { margin: 0; font-size: 16px; color: var(--navy); line-height: 1.7; }
.article-body .highlight-box p + p { margin-top: 12px; }

.note-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 18px 22px; margin: 28px 0; display: flex; gap: 14px; align-items: flex-start;
}
.note-box > i { color: var(--navy); margin-top: 5px; flex-shrink: 0; }
.article-body .note-box p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* Tarjetas */
.signals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 32px; }
.signal-card {
  background: var(--white); border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 16px rgba(27,58,92,.08); border-top: 3px solid var(--gold);
  display: flex; align-items: flex-start; gap: 14px;
}
.signal-card > i { color: var(--navy); font-size: 20px; flex-shrink: 0; margin-top: 2px; width: 24px; text-align: center; }
.article-body .signal-card h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.article-body .signal-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Bloques por tema (más extensos que las tarjetas) */
.topic-block { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; margin: 32px 0; }
.article-body .topic-block h3 { margin-top: 0; display: flex; align-items: center; gap: 12px; }
.article-body .topic-block h3 i { color: var(--gold); font-size: 18px; width: 22px; text-align: center; }
.article-body .topic-block p:last-child { margin-bottom: 0; }

/* Pasos */
.process-list { margin: 24px 0 8px; }
.process-item { display: flex; gap: 20px; margin-bottom: 26px; align-items: flex-start; }
.process-num {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
}
.article-body .process-text h3 { font-family: 'Inter', sans-serif; font-size: 16.5px; font-weight: 700; margin: 2px 0 6px; }
.article-body .process-text p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }

/* Qué esperar */
.expect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 8px; }
.expect-card { border-radius: 14px; padding: 24px; }
.expect-card.yes { background: #f0f7f4; border: 1px solid #cfe5db; }
.expect-card.no { background: #fff7ed; border: 1px solid #fed7aa; }
.article-body .expect-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.expect-card.yes h3 i { color: #2f7d5b; }
.expect-card.no h3 i { color: #c2410c; }
.expect-card ul { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.expect-card li { font-size: 14.5px; line-height: 1.6; color: #34485a; padding-left: 22px; position: relative; }
.expect-card.yes li::before { content: '✓'; position: absolute; left: 0; color: #2f7d5b; font-weight: 700; }
.expect-card.no li::before { content: '–'; position: absolute; left: 4px; color: #c2410c; font-weight: 700; }

/* Modalidades y pilares */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.mode-card { background: var(--bg); border-radius: 14px; padding: 22px 20px; border: 1px solid #e2e8f0; }
.mode-card > i { font-size: 22px; color: var(--navy); margin-bottom: 12px; display: block; }
.article-body .mode-card h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.article-body .mode-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Tabla comparativa */
.table-wrap { overflow-x: auto; margin: 24px 0 8px; border: 1px solid #e2e8f0; border-radius: 14px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.compare-table caption { text-align: left; padding: 14px 18px; font-size: 13px; color: var(--muted); caption-side: bottom; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; line-height: 1.6; border-bottom: 1px solid #edf2f7; }
.compare-table thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 14px; }
.compare-table tbody th { color: var(--navy); font-weight: 700; width: 26%; background: var(--bg); }
.compare-table td { color: #34485a; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }

/* Profesional */
.pro-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start;
  background: var(--white); border-radius: 16px; padding: 24px;
  box-shadow: 0 8px 32px rgba(27,58,92,.10); margin: 24px 0 8px;
}
.pro-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.article-body .pro-card h3 { margin-top: 0; }
.article-body .pro-card p { font-size: 15.5px; }
.pro-card .check-list { margin-bottom: 0; }

/* Otras terapias */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 8px; }
.compare-grid-3 { grid-template-columns: repeat(3, 1fr); }
.compare-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.article-body .compare-card h3 { font-family: 'Inter', sans-serif; font-size: 15.5px; font-weight: 700; margin: 0 0 6px; }
.article-body .compare-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* CTA dentro del contenido */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fb 100%);
  border: 1px solid #d5e1f3; border-radius: 16px; padding: 24px 28px; margin: 44px 0 0;
}
.article-body .inline-cta p { margin: 0; font-size: 16px; color: var(--navy); line-height: 1.6; }
.inline-cta p span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.inline-cta .btn-wsp { display: inline-flex; flex-shrink: 0; font-size: 14.5px; }

/* FAQ (details/summary: funciona sin JavaScript) */
.faq-section { margin-top: 12px; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.article-body .faq-item summary h3 {
  margin: 0; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.faq-item summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--navy); font-size: 13px; transition: transform .25s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px; font-size: 15.5px; color: #34485a; line-height: 1.8; }
.faq-answer p { font-size: 15.5px; margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; align-self: start; }
.sidebar-card {
  background: var(--white); border-radius: 16px; box-shadow: 0 8px 32px rgba(27,58,92,.10);
  overflow: hidden; margin-bottom: 24px;
}
.sidebar-card-header { background: var(--navy); padding: 24px; }
.sidebar-card-header h2, .sidebar-card-header h3 { color: var(--white); font-size: 20px; margin-bottom: 6px; }
.sidebar-card-header p { color: rgba(255,255,255,.78); font-size: 13.5px; line-height: 1.6; margin: 0; }
.sidebar-card-body { padding: 24px; }
.sidebar-card-body .btn-primary { width: 100%; justify-content: center; font-size: 14px; margin-bottom: 12px; }
.sidebar-contact-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #edf2f7; font-size: 14px; color: var(--muted);
}
.sidebar-contact-item:last-child { border-bottom: none; }
.sidebar-contact-item i { color: var(--navy); width: 16px; text-align: center; flex-shrink: 0; }
.sidebar-contact-item a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.sidebar-contact-item a:hover { color: var(--navy); text-decoration: underline; }
.sidebar-urgent { background: #fff7ed; border: 1px solid #fed7aa; box-shadow: none; }
.sidebar-urgent .sidebar-card-body { padding: 20px 24px; }
.sidebar-urgent h3 { font-size: 16px; color: #7c2d12; margin-bottom: 8px; }
.sidebar-urgent p { font-size: 13.5px; line-height: 1.65; color: #7c2d12; margin: 0; }
.sidebar-urgent a { color: #7c2d12; font-weight: 700; }

.other-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid #edf2f7; text-decoration: none; transition: transform .2s;
}
.other-card:last-child { border-bottom: none; }
.other-card:hover { transform: translateX(4px); }
.other-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #264d73);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 17px; flex-shrink: 0;
}
.other-info strong { display: block; font-size: 14px; color: var(--navy); font-weight: 600; }
.other-info span { font-size: 12.5px; color: var(--muted); }

/* CTA final */
.inner-cta {
  background: linear-gradient(135deg, var(--navy-dark), #1e4a6e);
  border-radius: 20px; padding: 52px 40px; text-align: center; margin: 64px 0 0;
}
.article-body .inner-cta h2 { color: var(--white); margin: 0 0 12px; }
.article-body .inner-cta p { font-size: 16px; color: rgba(255,255,255,.84); margin: 0 auto 28px; max-width: 560px; }
.inner-cta .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.inner-cta .btn-wsp { display: inline-flex; }
.inner-cta .btn-outline { border-color: rgba(255,255,255,.55); }
.inner-cta small { display: block; margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.6; }
.inner-cta small a { color: inherit; font-weight: 700; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 56px 5%; }
  .sidebar { position: static; }
  .check-list, .signals-grid, .expect-grid, .compare-grid, .compare-grid-3 { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 64px 5% 52px; }
  .page-hero .lead { font-size: 16.5px; }
  .article-layout { padding: 40px 5%; }
  .article-body h2 { margin-top: 52px; }
  .toc ol { columns: 1; }
  .inline-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .inline-cta .btn-wsp { width: 100%; justify-content: center; }
  .inner-cta { padding: 36px 22px; }
  .pro-card { grid-template-columns: 1fr; }
  .pro-card img { max-width: 220px; }
  .inner-cta .btn-wsp, .inner-cta .btn-outline { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
