/*
Theme Name: Diseño A — Sofía Quinteiro
Description: Tema de la versión de pruebas (diseño A aprobado en maqueta). Sobrio y clínico.
Version: 1.0
*/
@font-face {
    font-family: 'Fraunces';
    src: url('./fonts/fraunces-400.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('./fonts/inter-400.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--ds-page); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

.site-mock, .site-main { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* ---------- palette ----------
verde mar  #2F7E79  botones, enlaces, acentos
azul tinta #23404E  titulares y texto importante
coral      #F2A48D  toques cálidos
arena      #F7F2EC  fondos alternos
---------------------------------- */

.ribbon {
    background: #23404E;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* ---------- site header ---------- */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ds-hairline);
    margin-bottom: 8px;
}
.brand { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 600;
    color: #23404E;
    letter-spacing: -0.01em;
}
.brand-sub { font-size: 13px; color: #2F7E79; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 14px;
    border-radius: 999px;
    color: #23404E;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.site-nav a[aria-current="page"], .site-nav a.active {
    background: #2F7E79;
    color: #fff;
}

/* ---------- shared ---------- */
.site-main h1, .site-main h2, .site-main h3 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    color: #23404E;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}
.site-main h1 { font-size: 34px; line-height: 1.15; font-weight: 600; }
.site-main h2 { font-size: 26px; font-weight: 600; }
.site-main h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.site-main p { font-size: 17px; line-height: 1.65; color: #37474f; margin: 0 0 14px; }

.section { padding: 28px 0 8px; }
.section-arena {
    background: #F7F2EC;
    border-radius: 20px;
    padding: 28px 20px 12px;
    margin: 12px -4px 0;
}
.section-intro { color: #585254; font-size: 16px; }
.section-more { margin-top: 6px; }
.text-link { color: #2F7E79; font-weight: 600; font-size: 16px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-verde { background: #2F7E79; color: #fff; }
.btn-outline { border-color: #23404E; color: #23404E; background: transparent; }
.btn-coral { background: #F2A48D; color: #23404E; }
.btn-ghost-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }

/* ---------- hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    background: #F7F2EC;
    border-radius: 24px;
    padding: 32px 28px;
    margin-top: 16px;
}
.hero-text h1 { font-size: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-photo img {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(35, 64, 78, 0.14);
}

/* ---------- areas ---------- */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.area-grid-detailed { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.area-card {
    border: 1px solid var(--ds-hairline);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.area-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.area-photo-icon {
    background: #F7F2EC;
    position: relative;
    height: 0;
    padding-bottom: 66.67%;
}
.area-photo-icon > svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.area-body { padding: 14px 16px 18px; }
.area-body p { font-size: 15px; margin: 0; color: #585254; }

/* ---------- consejos ---------- */
.consejo-list { list-style: none; margin: 12px 0 0; padding: 0; }
.consejo-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--ds-hairline);
}
.consejo-list li:last-child { border-bottom: none; }
.consejo-list a { color: #23404E; font-weight: 600; font-size: 17px; text-decoration: none; }
.consejo-list a:hover { color: #2F7E79; text-decoration: underline; }
.consejo-list span { color: #585254; font-size: 14px; white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
    background: #23404E;
    color: #fff;
    border-radius: 24px;
    text-align: center;
    padding: 36px 24px 28px;
    margin: 32px 0 8px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 10px; }
.cta-note { font-size: 14px; margin: 0; }

/* ---------- doctora ---------- */
.page-head { padding: 26px 0 4px; }
.doctora {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
    padding-top: 18px;
}
.doctora-photo img {
    width: 100%;
    border-radius: 20px;
    background: #F7F2EC;
    box-shadow: 0 10px 30px rgba(35, 64, 78, 0.12);
}
.doctora-text .lede { font-size: 19px; color: #23404E; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; }
.facts li {
    padding: 12px 0;
    border-top: 1px solid var(--ds-hairline);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.facts strong { color: #23404E; font-size: 16px; }
.facts span { color: #585254; font-size: 15px; }
.media-figure { margin: 14px 0 0; }
.media-figure img { width: 100%; border-radius: 16px; display: block; }
.media-figure figcaption { color: #585254; font-size: 14px; padding-top: 8px; }

/* ---------- contacto ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.contact-card {
    border: 1px solid var(--ds-hairline);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    background: #D8E4E6;
}
.contact-card strong { font-family: 'Fraunces', Georgia, serif; font-size: 19px; color: #23404E; }
.contact-card span { color: #37474f; font-size: 16px; line-height: 1.5; }
.contact-card-wa { background: #2F7E79; border-color: #2F7E79; }
.contact-card-wa strong, .contact-card-wa span { color: #fff; }
.contact-card-wa svg { color: #fff; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer {
    margin-top: 36px;
    padding: 24px 4px 8px;
    border-top: 1px solid var(--ds-hairline);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    font-size: 15px;
    color: #585254;
}
.site-footer div { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { color: #23404E; font-family: 'Fraunces', Georgia, serif; font-size: 17px; }
.site-footer a { color: #2F7E79; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; padding: 26px 20px; }
    .hero-text h1 { font-size: 30px; }
    .hero-photo { order: -1; }
    .hero-photo img { max-width: 240px; }
    .doctora { grid-template-columns: 1fr; }
    .doctora-photo img { max-width: 260px; margin: 0 auto; }
    .site-main h1 { font-size: 28px; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ===== VARIANTE A: sobria y clínica ===== */
.v-A .ribbon { border-radius: 2px; background: #5b6b73; }
.v-A .site-header { padding: 18px 0 0; border-bottom: 2px solid #16303d; margin-bottom: 0; }
.v-A .brand-name { font-size: 26px; color: #16303d; }
.v-A .brand-sub { color: #2F7E79; font-size: 12px; letter-spacing: 0.14em; }
.v-A .site-nav { gap: 0; margin-top: 6px; }
.v-A .site-nav a { border-radius: 0; padding: 10px 14px; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -2px; color: #16303d; }
.v-A .site-nav a[aria-current="page"], .v-A .site-nav a.active { background: transparent; color: #2F7E79; border-bottom-color: #2F7E79; font-weight: 600; }
.v-A .site-main h1, .v-A .site-main h2, .v-A .site-main h3 { color: #16303d; font-weight: 500; letter-spacing: -0.015em; }
.v-A .site-main h2 { font-size: 27px; padding-bottom: 10px; border-bottom: 1px solid var(--ds-hairline); position: relative; }
.v-A .site-main h2::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: #2F7E79; }
.v-A .site-main p { color: #33444c; }
.v-A .btn { border-radius: 4px; letter-spacing: 0.01em; }
.v-A .btn-verde { background: #2F7E79; }
.v-A .btn-outline { border-color: #16303d; color: #16303d; }
.v-A .btn-coral { background: #fff; color: #16303d; }
.v-A .hero { background: #fff; border-radius: 0; padding: 36px 0 30px; margin-top: 0; border-bottom: 1px solid var(--ds-hairline); grid-template-columns: 1.2fr 0.8fr; }
.v-A .hero-text h1 { font-size: 40px; font-weight: 500; }
.v-A .hero-photo img { border-radius: 2px; box-shadow: none; background: linear-gradient(180deg, #eef3f4, #dfe9eb); max-width: 300px; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); background: #16303d; color: #fff; margin-top: 0; }
.creds div { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(255,255,255,0.18); }
.creds div:last-child { border-right: none; }
.creds strong { font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 500; }
.creds span { font-size: 14px; color: #c9d9dd; line-height: 1.4; }
.v-A .section { padding-top: 34px; }
.v-A .section-arena { background: #f3f6f7; border-radius: 0; margin: 28px -4px 0; padding: 30px 20px 12px; }
.v-A .area-grid { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
.v-A .area-card { flex-direction: row; border: none; border-bottom: 1px solid var(--ds-hairline); border-radius: 0; align-items: center; gap: 18px; padding: 16px 0; }
.v-A .area-photo { width: 120px; aspect-ratio: 4 / 3; flex: none; border-radius: 2px; filter: saturate(0.85); }
.v-A .area-photo-icon { height: auto; padding-bottom: 0; aspect-ratio: 4 / 3; background: #f3f6f7; }
.v-A .area-body { padding: 0; }
.v-A .area-body h3 { font-size: 20px; margin-bottom: 4px; }
.v-A .area-grid-detailed .area-photo { width: 150px; }
.v-A .consejo-list a { color: #16303d; font-weight: 500; }
.v-A .cta-band { background: #16303d; border-radius: 0; margin-top: 40px; }
.v-A .cta-band h2 { color: #fff; border: none; }
.v-A .cta-band h2::after { display: none; }
.v-A .doctora-photo img { border-radius: 2px; box-shadow: none; background: linear-gradient(180deg, #eef3f4, #dfe9eb); }
.v-A .media-figure img { border-radius: 2px; }
.v-A .contact-card { border-radius: 2px; }
.v-A .contact-card-wa { background: #2F7E79; }
.v-A .site-footer { background: #f3f6f7; padding: 24px 16px; border-top: 2px solid #16303d; }
@media (max-width: 760px) {
  .creds { grid-template-columns: 1fr; }
  .creds div { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .v-A .hero { grid-template-columns: 1fr; padding: 24px 0; }
  .v-A .hero-text h1 { font-size: 30px; }
  .v-A .area-photo, .v-A .area-grid-detailed .area-photo { width: 92px; }
  .v-A .site-nav a { padding: 10px 10px; font-size: 14px; }
}

/* ===== Variante A: sobria y clínica ===== */
.v-A .v-A .v-A .ribbon { border-radius:0; margin-bottom:0; background:#F7F2EC; color:#23404E; border-bottom:1px solid var(--ds-hairline); }
.v-A .site-header { padding:18px 0 14px; border-bottom:2px solid #23404E; margin-bottom:0; }
.v-A .brand-name { font-size:26px; }
.v-A .brand-sub { color:#585254; letter-spacing:.14em; font-size:12px; }
.v-A .site-nav a { border-radius:0; padding:6px 12px; border-bottom:3px solid transparent; font-size:15px; }
.v-A .site-nav a[aria-current="page"], .v-A .site-nav a.active { background:transparent; color:#23404E; border-bottom-color:#2F7E79; font-weight:600; }
.v-A .btn { border-radius:4px; }
.v-A .hero { background:#fff; border-radius:0; border-bottom:1px solid var(--ds-hairline); padding:36px 0 32px; margin-top:0; }
.v-A .hero-text h1 { font-size:40px; font-weight:500; }
.v-A .hero-photo img { border-radius:0; box-shadow:none; background:linear-gradient(#EEF3F3,#E3ECEC); max-width:300px; border-bottom:4px solid #2F7E79; }
.v-A .creds { display:grid; grid-template-columns:repeat(3,1fr); background:#EEF3F3; border-bottom:1px solid var(--ds-hairline); }
.v-A .creds div { padding:20px 18px; display:flex; flex-direction:column; gap:4px; border-right:1px solid #D5E0E0; }
.v-A .creds div:last-child { border-right:none; }
.v-A .creds strong { font-family:'Fraunces',Georgia,serif; font-size:21px; color:#23404E; font-weight:600; }
.v-A .creds span { font-size:14px; color:#585254; line-height:1.45; }
.v-A .section h2 { border-bottom:1px solid var(--ds-hairline); padding-bottom:10px; font-weight:500; }
.v-A .area-grid { grid-template-columns:1fr; gap:0; }
.v-A .area-grid-detailed { grid-template-columns:1fr; }
.v-A .area-card { flex-direction:row; border:none; border-bottom:1px solid var(--ds-hairline); border-radius:0; align-items:center; gap:18px; padding:16px 0; }
.v-A .area-photo { width:120px; min-width:120px; aspect-ratio:1; border-radius:0; }
.v-A .area-photo-icon { height:120px; padding-bottom:0; }
.v-A .area-body { padding:0; }
.v-A .area-body h3 { font-size:21px; }
.v-A .section-arena { background:#fff; border-radius:0; border:1px solid var(--ds-hairline); border-top:3px solid #23404E; margin:24px 0 0; padding:24px 20px 10px; }
.v-A .cta-band { border-radius:0; background:#23404E; }
.v-A .btn-coral { background:#fff; color:#23404E; }
.v-A .doctora-photo img { border-radius:0; box-shadow:none; background:linear-gradient(#EEF3F3,#E3ECEC); border-bottom:4px solid #2F7E79; }
.v-A .media-figure img, .v-A .contact-card { border-radius:0; }
.v-A .contact-card { border-top:3px solid #23404E; }
.v-A .contact-card-wa { border-top-color:#1f6561; }
.v-A .site-footer { background:#23404E; color:#dbe6e6; padding:24px 20px; margin-top:32px; }
.v-A .site-footer strong, .v-A .site-footer a { color:#fff; }
@media (max-width:760px){
 .v-A .creds { grid-template-columns:1fr; }
 .v-A .creds div { border-right:none; border-bottom:1px solid #D5E0E0; }
 .v-A .hero-text h1 { font-size:30px; }
 .v-A .area-photo { width:88px; min-width:88px; }
 .v-A .area-photo-icon { height:88px; }
 .v-A .site-nav a { padding:6px 8px; font-size:14px; }
}
.v-A .area-photo { object-position: center 35%; }

/* ===== Revision: cabecera sin banda azul, menu limpio ===== */
.v-A .site-header { padding: 18px 0 0; border-bottom: 2px solid #23404E; margin-bottom: 0; }
.header-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.menu-toggle { display: none; }
.v-A .site-nav { gap: 2px; margin-top: 10px; }
.v-A .site-nav a { border-radius: 0; padding: 10px 14px; min-height: 44px; font-size: 15px; color: #23404E; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.v-A .site-nav a[aria-current="page"], .v-A .site-nav a.active { background: transparent; color: #2F7E79; border-bottom-color: #2F7E79; font-weight: 600; }
@media (max-width: 760px) {
    .header-top { align-items: center; }
    .menu-toggle {
        display: inline-flex; align-items: center; gap: 8px;
        min-height: 44px; padding: 8px 16px;
        background: #fff; color: #23404E;
        border: 1.5px solid #23404E; border-radius: 4px;
        font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    }
    .v-A .site-nav { display: none; flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--ds-hairline); }
    .v-A .site-nav.open { display: flex; }
    .v-A .site-nav a {
        padding: 13px 4px; min-height: 48px; font-size: 16px;
        border-bottom: 1px solid var(--ds-hairline); margin-bottom: 0; color: #23404E;
    }
    .v-A .site-nav a[aria-current="page"], .v-A .site-nav a.active {
        color: #2F7E79; border-bottom: 1px solid var(--ds-hairline);
        box-shadow: inset 3px 0 0 #2F7E79; padding-left: 12px;
    }
}

/* Fix legibilidad banda de cita sobre fondo azul */
.v-A .cta-band p { color: rgba(255,255,255,0.88); }
.v-A .cta-band .cta-note { color: rgba(255,255,255,0.7); }
.v-A .cta-band .btn-ghost-light { color: #fff; border-color: rgba(255,255,255,0.75); }

/* ===== theme base (sustituye al wrapper de la maqueta) ===== */
:root { --ds-page: #ffffff; --ds-hairline: #d9e2e3; }
html { margin: 0; }
body { background: var(--ds-page); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-main { padding-bottom: 10px; }
.ribbon { display: none; }

/* single posts y páginas genéricas */
.post-head { padding: 26px 0 4px; }
.post-meta { color: #585254; font-size: 14px; margin-bottom: 18px; }
.post-body { font-size: 17px; line-height: 1.7; color: #33444c; }
.post-body img { max-width: 100%; height: auto; }
.post-body a { color: #2F7E79; }
.post-list { list-style: none; margin: 12px 0 0; padding: 0; }
.post-list li { padding: 14px 2px; border-bottom: 1px solid var(--ds-hairline); }
.post-list a { color: #16303d; font-weight: 600; font-size: 17px; text-decoration: none; }
.post-list a:hover { color: #2F7E79; }
.cta-solo { padding: 22px 24px; background: #23404E; }
.cta-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; max-width: 1120px; margin: 0 auto; }
.cta-item { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.cta-tile { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; background: #2F5D74; color: #E6F1F6; display: flex; align-items: center; justify-content: center; }
.cta-tile svg { width: 22px; height: 22px; }
.cta-item-wa .cta-tile { background: #25D366; }
.cta-texto { display: block; min-width: 0; }
.cta-texto strong { display: block; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25; }
.cta-texto span { display: block; font-size: 14px; color: #E6F1F6; line-height: 1.35; overflow-wrap: anywhere; }
a.cta-item:hover .cta-tile, a.cta-item:focus .cta-tile { background: #3D738F; }
a.cta-item-wa:hover .cta-tile, a.cta-item-wa:focus .cta-tile { background: #3BDB78; }
@media (max-width: 760px) {
    .cta-solo { padding: 20px 18px; margin-top: 18px; }
    .cta-barra { display: grid; grid-template-columns: 1fr; gap: 16px 12px; }
    .cta-tile { width: 42px; height: 42px; }
}

/* area titles as links to the detailed page */
.area-title-link { color: #2F7E79; text-decoration: none; transition: color .15s ease; }
.area-title-link:hover, .area-title-link:focus { color: #23404E; }
.area-card[id] { scroll-margin-top: 80px; }

/* Áreas page: article style, photo floated inside the text */
.v-A .area-grid-detailed { display: block; }
.v-A .area-card-detailed { display: block; max-width: 760px; margin: 0 auto; padding: 26px 0; }
.v-A .area-card-detailed::after { content: ""; display: block; clear: both; }
.v-A .area-card-detailed .area-body { padding: 0; }
.v-A .area-card-detailed h3 { margin: 0 0 10px; font-size: 22px; }
.v-A .area-card-detailed .area-photo { float: left; width: 240px; min-width: 0; aspect-ratio: 4 / 3; margin: 4px 18px 8px 0; border-radius: 2px; filter: saturate(0.85); }
.v-A .area-card-detailed p { font-size: 16px; line-height: 1.65; }
@media (max-width: 640px) {
    .v-A .area-card-detailed { padding: 20px 0; }
    .v-A .area-card-detailed .area-photo { width: 130px; margin: 4px 14px 6px 0; }
}

/* Currículum (La doctora) */
.cv-group { margin-top: 22px; }
.cv-group h3 { font-size: 16px; color: #2F7E79; margin: 0 0 8px; letter-spacing: .01em; }
.cv-list { margin: 0; padding-left: 20px; }
.cv-list li { margin: 6px 0; line-height: 1.55; color: #3d3a3c; font-size: 15.5px; }
.cv-list li::marker { color: #2F7E79; }

/* Petición de cita online (maqueta, envío desactivado) */
.cita-form { max-width: 640px; margin-top: 18px; }
.cf-row { margin-bottom: 16px; }
.cf-req { color: #B4452F; font-weight: 700; }
.cf-legend { font-size: 13px; color: #585254; margin: 0 0 14px; }

.cf-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cita-form label { display: block; font-size: 14.5px; font-weight: 600; color: #23404E; margin-bottom: 6px; }
.cita-form input[type="text"], .cita-form input[type="tel"], .cita-form input[type="email"], .cita-form input[type="date"], .cita-form input[type="number"], .cita-form select, .cita-form textarea {
    width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--ds-hairline); border-radius: 8px;
    font: inherit; font-size: 15.5px; color: #23404E; background: #fff;
}
.cita-form input:focus, .cita-form select:focus, .cita-form textarea:focus { outline: 2px solid #2F7E79; outline-offset: 1px; border-color: #2F7E79; }
.cf-privacy { background: #F7F2EC; border: 1px solid var(--ds-hairline); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.cf-privacy p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: #585254; }
.cf-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14.5px !important; color: #23404E !important; cursor: pointer; }
.cf-check input { margin-top: 3px; }
.cf-demo { font-size: 13.5px; color: #8a5a00; background: #FFF7E8; border: 1px solid #f0dfbc; border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.cf-submit { border: none; cursor: pointer; }
.cf-ok { margin-top: 14px; font-size: 15px; color: #23534f; background: #eef6f5; border: 1px solid #cfe5e2; border-radius: 8px; padding: 12px 14px; }
.cf-nac-group { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 8px; }
.cf-nac-group input, .cf-nac-group select { min-width: 0; }
@media (max-width: 640px) { .cf-half { grid-template-columns: 1fr; } }

/* En los medios: tarjetas uniformes */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.media-card { border: 1px solid var(--ds-hairline); border-radius: 14px; overflow: hidden; background: #EEF3F3; display: flex; flex-direction: column; }
.media-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #F7F2EC; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); }
.media-type { position: absolute; top: 10px; left: 10px; background: rgba(35,64,78,.85); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.media-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-outlet { margin: 0; font-size: 12.5px; color: #585254; font-weight: 500; letter-spacing: .02em; }
.media-body h3 { margin: 0; font-size: 20px; line-height: 1.3; flex: 1; }
.media-btn { align-self: flex-start; margin-top: 4px; min-height: 32px; padding: 4px 12px; font-size: 12.5px; }
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Tarjeta de audio: icono neutro en vez de foto */
.media-thumb-icon { display: flex; align-items: center; justify-content: center; background: #F7F2EC; }
.media-thumb-icon svg { width: 84px; height: 84px; }
.media-card-tono { background: #EEF3F3; }
.opiniones-band { background: #F7F2EC; border-radius: 14px; text-align: center; padding: 40px 24px 36px; margin: 34px 0 0; }
.opiniones-band h2 { margin: 10px 0 8px; }
.opiniones-band p { color: var(--ds-muted, #5a6a70); margin: 0 auto 20px; max-width: 46ch; }
.opiniones-stars { display: flex; gap: 4px; justify-content: center; }
.opiniones-stars svg { width: 22px; height: 22px; fill: #E3A63C; }
.opiniones-band h2 { border-bottom: none; padding-bottom: 0; }
.opiniones-band h2::after { display: none; }

/* Botón volver arriba (solo /pruebas) */
.back-to-top {
    position: fixed; right: 16px; bottom: 46px; z-index: 99990;
    width: 40px; height: 40px; border-radius: 50%;
    background: #2F7E79; color: #fff; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:focus-visible { outline: 3px solid #16303d; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: none; }
}

/* ---------- páginas legales y pie ---------- */
.footer-legal { display: flex; flex-direction: column; gap: 4px; }
.footer-legal a { color: #2F7E79; text-decoration: none; font-size: 15px; }
.v-A .footer-legal a { color: #fff; }

/* Página Política de Privacidad (borrador) */
.aviso-borrador { background: #F7F2EC; border: 1px solid var(--ds-hairline); border-left: 4px solid #F2A48D; border-radius: 10px; padding: 16px 18px; font-size: 15.5px; line-height: 1.6; color: #33444c; }
.aviso-borrador p { margin: 0 0 10px; }
.aviso-borrador ul { margin: 4px 0 2px; padding-left: 20px; }
.aviso-borrador li { margin-bottom: 8px; }
.legal-body { font-size: 16.5px; line-height: 1.7; color: #33444c; max-width: 780px; }
.legal-body ul { padding-left: 22px; margin: 8px 0 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: #2F7E79; }
.v-A .legal-body h2 { font-size: 21px; margin: 30px 0 10px; }
.pendiente { background: #FDEEE7; color: #9A4A2A; font-weight: 600; padding: 0 5px; border-radius: 4px; }
.ficha { border: 1px solid var(--ds-hairline); border-radius: 10px; overflow: hidden; margin: 12px 0 8px; }
.ficha div { display: flex; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--ds-hairline); }
.ficha div:last-child { border-bottom: none; }
.ficha dt { font-weight: 600; color: #23404E; min-width: 92px; flex-shrink: 0; }
.ficha dd { margin: 0; }
.legal-cierre { color: #585254; font-size: 14.5px; border-top: 1px solid var(--ds-hairline); padding-top: 14px; margin-top: 26px; }

/* Títulos de apartado del CV en negrita (gana a .v-A .site-main h3 por ir al final) */
.v-A .cv-group h3 { font-weight: 700; }
.cv-list a { color: #2F7E79; }

/* Títulos de Consejos con aspecto de enlace */
.v-A .consejo-list a { color: #2F7E79; }
.v-A .site-main .media-outlet { font-size: 13px; color: #585254; font-weight: 500; letter-spacing: .02em; }

/* Contacto: un solo bloque continuo, incluido WhatsApp. */
.v-A .contact-grid { grid-template-columns: 1fr; gap: 0; }
.v-A .contact-details { background: #D8E4E6; border: 1px solid var(--ds-hairline); }
.v-A .contact-details .contact-card { border: 0; border-top: 3px solid #23404E; border-radius: 0; margin: 0; background: transparent; }
.v-A .contact-details .contact-card:first-child { border-top: 0; }
/* Pie: separar los enlaces legales de los datos de la consulta. */
.v-A .site-footer .footer-legal {
    grid-column: 1 / -1;
    padding-top: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.v-A .site-footer { padding-bottom: 56px; }
/* Enlaces legales en columna derecha, con separación entre columnas. */
.v-A .site-footer { grid-template-columns: 1fr 1.25fr 1.5fr .7fr; gap: 24px 32px; }
.v-A .site-footer .footer-legal { grid-column: auto; padding-top: 0; flex-direction: column; gap: 8px; }
@media (min-width: 641px) and (max-width: 999px) {
    .v-A .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .v-A .site-footer { grid-template-columns: 1fr; }
}
/* Medios: acción secundaria como enlace, sin aspecto de botón. */
.v-A .media-card .media-btn { background:transparent; color:#286F6A; border:0; border-radius:0; box-shadow:none; padding:0; min-height:44px; display:inline-flex; justify-content:flex-start; gap:7px; font-size:14px; line-height:1.4; text-decoration:none; }
.v-A .media-card .media-btn::after { content:"\2192"; font-size:16px; }
.v-A .media-card .media-btn:hover { color:#23404E; background:transparent; }
.v-A .media-card .media-btn:focus-visible { outline:2px solid #286F6A; outline-offset:3px; }

/* Consejos agrupados por contenido, sin fechas en los listados. */
.consejos-groups { display: grid; gap: 36px; }
.consejo-group { min-width: 0; }
.v-A .consejo-group h2 { font-size: 25px; margin: 0 0 14px; }
.consejo-group .consejo-list { margin-top: 0; }
@media (max-width:760px) {
    .consejos-groups { gap: 30px; }
    .v-A .consejo-group h2 { font-size: 23px; }
}

/* Artículos de pubertad: preguntas legibles, sin grandes huecos heredados. */
.pubertad-formatted .wp-block-spacer, .pubertad-formatted p:empty { display: none; }
.v-A .pubertad-formatted .consejo-question {
    font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.4;
    font-weight: 500; color: #23404E; background: #EEF3F3;
    border-left: 3px solid #2F7E79; padding: 18px 20px;
    margin: 36px 0 18px; text-wrap: pretty;
}
.pubertad-formatted .consejo-question::after { display: none; }
.pubertad-formatted .consejo-question strong { font-weight: inherit; }
.pubertad-formatted .consejo-question br { display: none; }
.pubertad-formatted .pf-content > .consejo-question:first-of-type { margin-top: 0; }
.pubertad-formatted p, .pubertad-formatted li { font-size: 17px; line-height: 1.75; }
.pubertad-formatted p { margin: 0 0 20px; }
.pubertad-formatted ul { padding-left: 24px; margin: 0 0 24px; }
.pubertad-formatted li + li { margin-top: 14px; }
.pubertad-formatted figure { margin: 30px 0; max-width: 100%; }
.pubertad-formatted iframe, .pubertad-formatted audio { max-width: 100%; }
.pubertad-formatted .wp-block-embed-youtube iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.pubertad-formatted .pf-content > p:first-of-type:not(:empty) { border-left: 3px solid #2F7E79; padding-left: 20px; }
@media (max-width:760px) {
    .v-A .pubertad-formatted .consejo-question { font-size: 20px; padding: 16px; margin-top: 28px; }
    .pubertad-formatted p, .pubertad-formatted li { font-size: 16px; line-height: 1.75; }
}

.pubertad-formatted .consejo-intro-block { margin-bottom: 28px; }
.pubertad-formatted .consejo-intro-lead { background: #EEF3F3; border-left: 3px solid #2F7E79; padding: 22px; }
.pubertad-formatted .consejo-intro-block p:last-child { margin-bottom: 0; }

.v-A .pubertad-formatted .consejo-question { text-transform: none; }

.pubertad-formatted .consejo-intro-block + .consejo-intro-block { padding-top: 22px; border-top: 1px solid #D8E4E6; }
.pubertad-formatted .consejo-intro-lead strong { font-weight: 600; }

/* Los cinco síntomas de diabetes forman un grupo compacto. */
.pubertad-formatted .consejo-symptoms { list-style: none; padding: 0; margin: 0 0 24px; }
.pubertad-formatted .consejo-symptoms li { margin: 0; padding: 0; }
.pubertad-formatted .consejo-symptoms li + li { margin-top: 6px; }

/* Nutrición: cinco viñetas con la misma separación compacta. */
.pubertad-formatted .consejo-compact-bullets li { margin: 0; padding: 0; }
.pubertad-formatted .consejo-compact-bullets li + li { margin-top: 6px; }

/* Consejos: separación normal entre bloques de párrafo. */
.consejo-spacing .wp-block-spacer, .consejo-spacing p:empty { display: none; }
.pubertad-formatted .consejo-intro-block { margin-bottom: 20px; }
.pubertad-formatted .consejo-intro-block + .consejo-intro-block { padding-top: 0; border-top: 0; }


/* Dirección junto a la acción de WhatsApp en portada */
.wa-location { margin: 10px 0 0; font-size: 14px; color: #585254; }

.cta-texto .cta-sub { font-size: 13px; color: #BBD3DF; font-weight: 400; margin-top: 2px; }

/* ---------- Pedir cita: información de contacto + cómo llegar ---------- */
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 16px; }
.info-contacto { background: #23404E; border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 22px; }
.v-A .section .info-contacto h2, .section .info-contacto h2 { color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 26px; margin: 0 0 4px; border-bottom: 0; padding-bottom: 0; }
.ic-row { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.ic-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; background: #2F5D74; color: #E6F1F6; display: flex; align-items: center; justify-content: center; }
.ic-icon svg { width: 22px; height: 22px; }
.ic-row-wa .ic-icon { background: #25D366; color: #fff; }
.ic-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ic-text span { color: #fff; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.ic-text .ic-sub { color: #fff; font-size: 15px; }
a.ic-row:hover .ic-text span:first-child { text-decoration: underline; }
.como-llegar-titulo { font-family: 'Fraunces', Georgia, serif; font-size: 26px; color: #23404E; margin: 0 0 16px; }
.mapa iframe { width: 100%; height: 300px; border: 0; display: block; border-radius: 8px; background: #EEF3F3; }
.clinica { margin: 24px 0 8px; font-size: 16px; line-height: 1.6; color: #37474f; }

/* Iconos junto a los datos de contacto del pie (sin recuadro, color del texto). */
.site-footer .footer-contact { display: flex; align-items: flex-start; gap: 8px; }
.site-footer .footer-contact svg { flex: none; width: 15px; height: 15px; margin-top: 3px; }
