/* Háblalo Psicología — estilos sobre Hello Elementor + Elementor (contenedores y widgets clásicos). */
:root {
  /* Paleta del logo: verde bosque + dorado arena */
  --hb-bg: #fdf8f2;
  --hb-surface: #fff;
  --hb-sand: #f7eadd;        /* melocotón muy suave (fondo de secciones) */
  --hb-sage: #e4eada;        /* salvia cálida (fondo de secciones) */
  --hb-peach: #f3d9c4;       /* melocotón: formas decorativas y paneles */
  --hb-blush: #f6e1d9;       /* rosa empolvado: etiquetas */
  --hb-ink: #2b2622;
  --hb-muted: #6b5e52;
  --hb-brand: #1e3e35;       /* verde del logo: botones, enlaces, títulos */
  --hb-brand-dark: #142b25;
  --hb-gold: #c2a16d;        /* dorado del logo: solo decorativo */
  --hb-accent: #82622e;      /* dorado oscuro: texto (contraste AA) */
  --hb-line: #e6ddd2;
  --hb-radius: 28px;
  --hb-shadow: 0 12px 32px rgb(130 98 46 / 9%);
  --hb-gutter: clamp(20px, 5vw, 96px);  /* margen lateral de cabecera, secciones y pie */
  /* Motivo propio, sacado del logo: la hoja dorada y formas suaves de canto rodado */
  --hb-leaf-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M28 178C14 108 62 40 178 20c-30 52-30 126-150 158Z' fill='none' stroke='%23c2a16d' stroke-width='5'/%3E%3Cpath d='M32 174C70 120 116 66 172 24' fill='none' stroke='%23c2a16d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  --hb-leaf-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M28 178C14 108 62 40 178 20c-30 52-30 126-150 158Z' fill='%23c2a16d'/%3E%3C/svg%3E");
  --hb-pebble-peach: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M60 34C98 4 166 12 188 58c20 42-6 92-48 112-46 22-108 14-128-26C-4 110 26 60 60 34Z' fill='%23f3d9c4'/%3E%3C/svg%3E");
  --hb-pebble-sage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M60 34C98 4 166 12 188 58c20 42-6 92-48 112-46 22-108 14-128-26C-4 110 26 60 60 34Z' fill='%23d5e0c8'/%3E%3C/svg%3E");
  --hb-pebble-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M60 34C98 4 166 12 188 58c20 42-6 92-48 112-46 22-108 14-128-26C-4 110 26 60 60 34Z' fill='%23fff' fill-opacity='.5'/%3E%3C/svg%3E");
  --hb-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hb-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
}

body { background: var(--hb-bg); color: var(--hb-ink); font: 400 1.0625rem/1.65 var(--hb-body); }
a { color: var(--hb-brand); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--hb-accent); }
:focus-visible { outline: 3px solid var(--hb-gold); outline-offset: 3px; }
/* Titulares: Fraunces con el eje SOFT al máximo y peso ligero, como la serifa suave de somosestupendas.com */
h1, h2, h3, h4 { font-family: var(--hb-display); font-weight: 430; font-variation-settings: 'SOFT' 100; letter-spacing: -.015em; line-height: 1.15; color: var(--hb-brand); text-wrap: balance; }
p { text-wrap: pretty; }

/* Mismo ancho que las secciones: Elementor › Ajustes del sitio › Diseño › Ancho del contenido */
.hb-wrap { width: min(100% - 2 * var(--hb-gutter), var(--hb-content-width, 1600px)); margin-inline: auto; }
/* Las secciones de Elementor guardan 16 px de margen lateral; se sustituye por el margen común */
.e-con.hb-section { --padding-left: var(--hb-gutter) !important; --padding-right: var(--hb-gutter) !important; }
.hb-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hb-skip { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--hb-ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.hb-skip:focus { top: 1rem; color: #fff; }

/* ---------- Cabecera ---------- */
.hb-header { position: sticky; top: 0; z-index: 100; background: rgb(251 248 244 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hb-line); }
.admin-bar .hb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hb-header { top: 0; } }
.hb-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.hb-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--hb-brand); font-family: var(--hb-display); font-size: 1.3rem; font-weight: 600; }
.hb-logo em { font-style: normal; color: var(--hb-accent); }
.hb-logo img { width: 44px; height: 44px; }
.hb-logo:hover { color: var(--hb-ink); }
.hb-burger { cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; margin: 0; }
.hb-burger span { display: block; width: 22px; height: 2px; background: var(--hb-ink); border-radius: 2px; }
#hb-menu-toggle:focus-visible + .hb-burger { outline: 3px solid var(--hb-accent); border-radius: 8px; }
.hb-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--hb-bg); border-bottom: 1px solid var(--hb-line); padding: 1rem var(--hb-gutter) 1.5rem; }
#hb-menu-toggle:checked ~ .hb-nav { display: block; }
.hb-nav__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .25rem; }
.hb-nav__list a { display: block; padding: .6rem 0; color: var(--hb-ink); text-decoration: none; font-weight: 500; }
.hb-nav__list .current-menu-item > a, .hb-nav__list .current-page-ancestor > a { color: var(--hb-brand); }
@media (min-width: 1120px) {
  .hb-burger { display: none; }
  .hb-nav, #hb-menu-toggle:checked ~ .hb-nav { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; border: 0; background: none; }
  .hb-nav__list { display: flex; gap: 1.4rem; margin: 0; }
  .hb-nav__list a { padding: .25rem 0; font-size: .97rem; white-space: nowrap; }
  .hb-nav .hb-button { min-height: 44px; padding: .5rem 1.2rem; font-size: .95rem; white-space: nowrap; }
}

/* ---------- Botones ---------- */
.hb-button, .elementor-widget-button.hb-btn .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid var(--hb-brand);
  background: var(--hb-brand); color: #fff; font: 600 1rem/1.2 var(--hb-body); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.hb-button:hover, .hb-button:focus, .elementor-widget-button.hb-btn .elementor-button:hover, .elementor-widget-button.hb-btn .elementor-button:focus { background: var(--hb-brand-dark); border-color: var(--hb-brand-dark); color: #fff; }
.hb-button--ghost, .elementor-widget-button.hb-btn--ghost .elementor-button { background: transparent; color: var(--hb-brand); }
.hb-button--ghost:hover, .elementor-widget-button.hb-btn--ghost .elementor-button:hover { background: var(--hb-brand); color: #fff; }
.e-con.hb-btn-row { --gap: 12px; --row-gap: 12px; --column-gap: 12px; --width: auto; }
.hb-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* ---------- Tipografía de widgets ---------- */
.elementor-widget-heading .elementor-heading-title { font-family: var(--hb-display); font-weight: 430; font-variation-settings: 'SOFT' 100; letter-spacing: -.015em; line-height: 1.15; color: var(--hb-brand); }
.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2.2rem, 4.5vw + .6rem, 3.7rem); line-height: 1.08; letter-spacing: -.025em; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(1.6rem, 2.2vw + .6rem, 2.4rem); }
.elementor-widget-heading h3.elementor-heading-title, .elementor-widget-heading.hb-h3 .elementor-heading-title, .hb-h3 { font-size: 1.25rem; }
.elementor-widget-text-editor { color: var(--hb-ink); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* Con secciones anchas, los párrafos se limitan a ~75 caracteres por línea para que se lean bien. */
.hb-section .elementor-widget-text-editor p, .hb-section .elementor-widget-text-editor li { max-width: 75ch; }
.hb-center .elementor-widget-text-editor p { margin-inline: auto; }
/* Antetítulo: igual en todos los dispositivos, con la hoja dorada del logo delante */
.hb-eyebrow .elementor-heading-title { font-family: var(--hb-body); font-variation-settings: normal; font-size: .8rem; font-weight: 600; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; color: var(--hb-accent); }
.hb-eyebrow .elementor-heading-title::before { content: ''; display: inline-block; width: 1.25em; height: 1.25em; margin-right: .5em; vertical-align: -.35em; background: var(--hb-leaf-gold) center / contain no-repeat; }
.hb-lead, .hb-lead p { font-size: 1.2rem; color: var(--hb-muted); max-width: 62ch; }
.hb-muted, .hb-muted p { color: var(--hb-muted); }
.hb-price, .hb-price p { font: 480 2.2rem/1.1 var(--hb-display); font-variation-settings: 'SOFT' 100; margin: 0; color: var(--hb-ink); }

/* ---------- Secciones ---------- */
.e-con.hb-center { --text-align: center; text-align: center; }
.hb-center > .e-con-inner { align-items: center; }
.hb-center .hb-lead p, .hb-center .hb-lead { margin-inline: auto; }
.hb-center .e-con.hb-btn-row { justify-content: center; }
.e-con.hb-split--center { align-items: center; }
.e-con.hb-split--center > .e-con { align-self: center; }
.e-con.hb-grid { --gap: 20px; --row-gap: 20px; --column-gap: 20px; }

/* ---------- Tarjetas ---------- */
.e-con.hb-card {
  --gap: 10px; --row-gap: 10px;
  background: var(--hb-surface); border: 0; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow);
}
.e-con.hb-card--featured { border: 2px solid var(--hb-brand); }
.hb-card .elementor-widget-text-editor { color: var(--hb-muted); }
.hb-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; margin: 0; padding: 0; }
.hb-cards .hb-card { display: block; padding: 26px; background: var(--hb-surface); border: 0; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); color: var(--hb-ink); text-align: left; }
.hb-cards .hb-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.hb-cards .hb-card p { color: var(--hb-muted); margin: 0 0 .6rem; font-size: .98rem; }
.hb-card--link { text-decoration: none; transition: transform .15s, border-color .15s; }
.hb-card--link:hover { transform: translateY(-3px); color: var(--hb-ink); }
.hb-card__more { color: var(--hb-brand); font-weight: 600; font-size: .95rem; }

/* Terapias: tarjetas con foto y el título encima (como «¿Cómo podemos ayudarte?» de somosestupendas.com) */
.hb-cards:has(.hb-card--photo) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
/* Las 6 terapias sin una tarjeta suelta debajo: 2 filas de 3, o 1 fila de 6 en pantallas anchas */
@media (min-width: 768px) { .hb-cards:has(.hb-card--photo):has(> :nth-child(6)) { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .hb-cards:has(.hb-card--photo):has(> :nth-child(6)) { grid-template-columns: repeat(6, 1fr); } }
.hb-cards .hb-card--photo {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4;
  padding: 0; overflow: hidden; border: 0; color: #fff; box-shadow: none;
}
.hb-card--photo .hb-card__img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hb-card--photo:hover .hb-card__img { transform: scale(1.04); }
.hb-card--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(30 40 35 / 0%) 35%, rgb(30 40 35 / 72%) 100%); }
.hb-card--photo .hb-card__body { position: relative; z-index: 1; padding: 22px; }
.hb-cards .hb-card--photo h3 { color: #fff; font-size: 1.4rem; line-height: 1.15; margin: 0 0 .35rem; }
.hb-cards .hb-card--photo p { display: none; }
.hb-card--photo .hb-card__more { color: #fff; opacity: .9; }
.hb-card--photo:hover { color: #fff; }

/* ---------- Listas ---------- */
.hb-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hb-checklist li { padding-left: 1.9rem; position: relative; }
.hb-checklist li::before {
  content: ''; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--hb-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231e3e35'%3E%3Cpath d='M8 13.6 4.4 10l-1.4 1.4L8 16.4l9-9L15.6 6z'/%3E%3C/svg%3E") center/70% no-repeat;
}
.hb-tags ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.hb-tags li { background: var(--hb-sage); border-radius: 999px; padding: .35rem .95rem; font-size: .92rem; }
.hb-tags li:nth-child(3n+2) { background: var(--hb-blush); }
.hb-tags li:nth-child(3n) { background: var(--hb-peach); }

/* ---------- Imágenes ---------- */
.hb-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; border-radius: var(--hb-radius); background: var(--hb-sand); }
/* Retratos de Tania: forma de arco con un canto rodado y una hoja, cálido y cercano */
.hb-media:has(img.is-portrait) { --hb-ph: min(100%, 500px); position: relative; z-index: 0; text-align: center; }
.hb-media img.is-portrait { display: block; width: var(--hb-ph); aspect-ratio: 4 / 5; margin-inline: auto; object-position: 50% 30%; border-radius: 999px 999px var(--hb-radius) var(--hb-radius); }
.hb-media:has(img.is-portrait)::before,
.hb-media:has(img.is-portrait)::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; pointer-events: none; background: center / contain no-repeat; }
.hb-media:has(img.is-portrait)::before { width: calc(var(--hb-ph) * .62); left: calc(50% - var(--hb-ph) / 2 - var(--hb-ph) * .18); bottom: calc(var(--hb-ph) * -.1); background-image: var(--hb-pebble-peach); }
.hb-media:has(img.is-portrait)::after { z-index: 1; width: calc(var(--hb-ph) * .2); right: calc(50% - var(--hb-ph) / 2 - var(--hb-ph) * .1); top: calc(var(--hb-ph) * .04); background-image: var(--hb-leaf-line); }
.hb-split > .e-con:first-child .hb-media:has(img.is-portrait)::before { background-image: var(--hb-pebble-sage); }
/* Cabecera en escritorio: el retrato va pegado al borde derecho, con el mismo margen que el texto a la izquierda */
@media (min-width: 1025px) {
  .hb-hero .hb-media:has(img.is-portrait) { width: var(--hb-ph); margin-left: auto; }
  .hb-hero .hb-media:has(img.is-portrait)::after { right: 0; }
}

/* ---------- FAQ ---------- */
.hablalo-faq h3 { color: var(--hb-ink); font: 600 1.05rem/1.4 var(--hb-body); margin: 1.5rem 0 .4rem; padding-top: 1.25rem; border-top: 1px solid var(--hb-line); }
.hablalo-faq h3:first-child { margin-top: .5rem; }
.hablalo-faq p { color: var(--hb-muted); }

/* ---------- Pasos y CTA (shortcodes) ---------- */
/* Panel melocotón con formas suaves, credenciales arriba (como el bloque de cifras de somosestupendas.com) */
.hb-steps { position: relative; overflow: hidden; isolation: isolate; background: var(--hb-peach); border-radius: 36px; padding: clamp(32px, 4vw, 64px); }
.hb-steps::before, .hb-steps::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; background: var(--hb-pebble-white) center / contain no-repeat; }
.hb-steps::before { width: clamp(180px, 22vw, 340px); right: -60px; top: -70px; }
.hb-steps::after { width: clamp(120px, 14vw, 220px); left: -50px; bottom: -60px; }
.hb-steps h2 { font-size: clamp(1.6rem, 2.2vw + .6rem, 2.4rem); margin: 0 0 1.25rem; }
.hb-facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; margin: 0 0 clamp(28px, 3vw, 44px); padding: 0 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid rgb(130 98 46 / 22%); }
.hb-facts strong { display: block; font: 450 clamp(1.4rem, 1.4vw + .8rem, 1.9rem)/1.15 var(--hb-display); font-variation-settings: 'SOFT' 100; color: var(--hb-brand); }
.hb-facts span { font-size: .95rem; color: var(--hb-muted); }
.hb-steps .hb-cards .hb-card { background: rgb(255 255 255 / 78%); box-shadow: none; }
.hb-steps__n { display: inline-grid; place-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--hb-brand); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.hb-cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hb-cta { position: relative; isolation: isolate; text-align: center; padding-block: clamp(8px, 2vw, 24px); }
.hb-cta::before, .hb-cta::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; background: center / contain no-repeat; }
/* Logo del sitio centrado encima del título: no se cruza con títulos largos */
.hb-cta::before { position: static; display: block; width: clamp(56px, 5vw, 76px); margin: 0 auto 1rem; background-image: url('hablalo-logo-320.webp'); }
.hb-cta::after { width: clamp(90px, 10vw, 160px); right: 3%; bottom: -20px; background-image: var(--hb-pebble-white); }
.hb-cta h2 { font-size: clamp(1.6rem, 2.2vw + .6rem, 2.4rem); margin: 0 0 .6rem; }
.hb-cta .hb-lead { margin: 0 auto 1.25rem; }
.hb-cta .hb-btn-row { justify-content: center; }

/* ---------- Formulario ---------- */
.hb-form { display: grid; gap: .9rem; padding: 28px; background: var(--hb-surface); border: 0; border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); }
.hb-form h2 { font-size: 1.5rem; margin: 0; }
.hb-form label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
.hb-form input:not([type=checkbox]), .hb-form textarea { font: inherit; padding: .7rem .8rem; border: 1px solid var(--hb-line); border-radius: 10px; background: #fff; width: 100%; }
.hb-form .hb-form__check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.hb-form .hb-form__check input { margin-top: .35rem; }
.hb-form__note { color: var(--hb-muted); font-size: .85rem; margin: 0; }
.hb-form__error { background: #f6efe3; border-left: 3px solid var(--hb-gold); padding: .6rem .8rem; margin: 0; border-radius: 6px; }

/* ---------- Blog (plantillas de Hello) ---------- */
body:not(.elementor-page) .site-main { width: min(100% - 32px, 760px); margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem); }
body.blog .site-main, body.archive .site-main { width: min(100% - 32px, var(--hb-content-width, 1600px)); }
.site-main .entry-title, .site-main .page-header h1 { font-size: clamp(2rem, 4vw + .5rem, 3rem); }
.blog .page-content, .archive .page-content { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.blog article.post, .archive article.post { background: var(--hb-surface); border: 0; border-radius: var(--hb-radius); padding: 24px; box-shadow: var(--hb-shadow); }
.blog article.post .entry-title, .archive article.post .entry-title { font-size: 1.3rem; margin: 0 0 .5rem; }
.blog article.post .entry-title a, .archive article.post .entry-title a { color: var(--hb-ink); text-decoration: none; }
.single-post .page-content h2 { font-size: clamp(1.35rem, 1.2vw + .9rem, 1.7rem); margin: 2rem 0 .6rem; }
.single-post .page-content blockquote { border-left: 3px solid var(--hb-gold); margin: 1.5rem 0; padding: .5rem 1rem; background: var(--hb-sand); border-radius: 6px; }

/* ---------- Pie ---------- */
.hb-footer { background: var(--hb-brand); color: #e9e1d7; padding: 3rem 0 2rem; font-size: .95rem; }
.hb-footer a { color: #e9e1d7; text-decoration: none; }
.hb-footer a:hover { color: #fff; text-decoration: underline; }
.hb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.hb-footer p { margin: 0 0 .6rem; }
.hb-footer__muted { color: #bfb3a6; }
.hb-sos { background: rgb(255 255 255 / 6%); border-left: 3px solid var(--hb-gold); padding: .9rem 1rem; border-radius: 6px; margin-bottom: 2.5rem !important; }
.hb-footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hb-footer__brand { font-family: var(--hb-display); font-size: 1.35rem; color: #fff; }
.hb-footer__h { font-weight: 600; color: var(--hb-gold); }
.hb-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(194 161 109 / 35%); margin-top: 2.5rem; padding-top: 1.25rem; color: #bfb3a6; }
.hb-footer__legal ul { display: flex; gap: 1.25rem; }
.hb-footer__legal p { margin: 0; }

/* =====================================================================
   Móvil (≤ 767 px): estilo editorial — foto protagonista, botones a todo
   el ancho y botón de reserva fijo. Tipografía, colores, tarjetas con foto
   y panel de pasos son los mismos que en escritorio.
   ===================================================================== */
.hb-sticky-cta { display: none; }

@media (max-width: 767px) {
  /* 1. Cabecera de página: titular centrado, foto justo debajo, botones a todo el ancho */
  .hb-hero:has(.hb-media) .hb-split > .e-con:first-child { display: contents; }
  .hb-hero:has(.hb-media) .hb-split > .e-con:last-child { order: 1; }
  .hb-hero:has(.hb-media) .hb-lead { order: 2; }
  .hb-hero:has(.hb-media) .hb-btn-row { order: 3; }
  .hb-hero:has(.hb-media) .hb-tags { order: 4; }
  .hb-hero .elementor-widget-heading .elementor-heading-title,
  .hb-hero .hb-lead, .hb-hero .hb-lead p { text-align: center; margin-inline: auto; }
  .hb-hero h1.elementor-heading-title { font-size: clamp(2.1rem, 9.2vw, 2.7rem); line-height: 1.1; }
  .hb-hero .hb-tags ul { justify-content: center; }
  .hb-media:has(img.is-portrait) { --hb-ph: min(84%, 420px); }
  .hb-hero .hb-media:has(img.is-portrait) { margin-block: 8px 12px; }
  .e-con.hb-btn-row { flex-direction: column; --flex-direction: column; --width: 100%; }
  .elementor-widget-button.hb-btn,
  .elementor-widget-button.hb-btn .elementor-button-wrapper { width: 100%; }
  .elementor-widget-button.hb-btn .elementor-button { display: flex; width: 100%; min-height: 56px; font-size: 1.05rem; }
  .hb-cta .hb-btn-row { flex-direction: column; }
  .hb-cta .hb-button { width: 100%; min-height: 56px; }

  /* Títulos de sección centrados, como en una revista */
  .hb-section .elementor-widget-heading h2.elementor-heading-title,
  .hb-section .hb-eyebrow .elementor-heading-title,
  .hb-steps h2, .hb-cta h2 { text-align: center; }

  /* 2. Terapias: una tarjeta con foto por fila */
  .hb-cards, .hb-cards:has(.hb-card--photo) { grid-template-columns: 1fr; gap: 16px; }
  .hb-cards .hb-card--photo { aspect-ratio: 16 / 10; }
  .hb-card--link:hover { transform: none; }

  /* 3. Pasos: credenciales centradas */
  .hb-facts { text-align: center; }
  .hb-cta::after { display: none; }

  /* 4. Más redondeado y con más aire */
  .e-con.e-parent.e-con-boxed.hb-section { --padding-top: 64px; --padding-bottom: 64px; }
  .e-con.e-parent.e-con-boxed.hb-section.hb-hero { --padding-top: 28px; }

  /* 5. Botón de reserva fijo abajo (aparece al pasar el botón principal) */
  .hb-sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    align-items: center; justify-content: center; min-height: 56px; border-radius: 999px;
    background: var(--hb-brand); color: #fff; font: 600 1.05rem/1.2 var(--hb-body); text-decoration: none;
    box-shadow: 0 10px 28px rgb(30 62 53 / 35%); transform: translateY(160%); transition: transform .25s ease;
  }
  .hb-sticky-cta.is-visible { transform: none; }
  .hb-sticky-cta:hover, .hb-sticky-cta:focus { color: #fff; background: var(--hb-brand-dark); }
  body:has(.hb-sticky-cta) { padding-bottom: 84px; }
  /* El botón flotante del plugin de cookies (CookieAdmin) sube para no tapar el de reserva. */
  .cookieadmin_re_consent { transition: bottom .25s ease; }
  body:has(.hb-sticky-cta.is-visible) .cookieadmin_re_consent { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .hb-sticky-cta { transition: none; } }
