/*
Theme Name: GM Moderno
Description: Tema a medida, ligero y sin dependencias, para la consulta de ginecología. Fuentes alojadas en local (sin llamadas a Google).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gm-moderno
*/

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
	--ink: #1f2a2e;
	--ink-soft: #4d5b60;
	--muted: #7a878b;
	--paper: #fbf8f4;
	--paper-2: #f3ece4;
	--white: #ffffff;
	--brand: #1d5c63;       /* verde petróleo */
	--brand-dark: #133f44;
	--brand-soft: #e3efee;
	--accent: #c97b63;      /* terracota suave */
	--accent-soft: #f6e4dc;
	--line: #e6ddd3;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(31,42,46,.04), 0 12px 32px -12px rgba(31,42,46,.14);
	--wrap: 1180px;
	--narrow: 760px;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .6em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; border-radius: 8px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, var(--narrow)); margin-inline: auto; }

/* ---------- Topbar ---------- */
.topbar { background: var(--brand-dark); color: #d8e6e5; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .tb-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

/* Language switcher (Bogo) */
.lang-switch ul, ul.bogo-language-switcher { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.lang-switch li { margin: 0; }
.lang-switch a, .lang-switch .current span, ul.bogo-language-switcher a, ul.bogo-language-switcher li.current { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none; }
.lang-switch li.current, ul.bogo-language-switcher li.current { background: rgba(255,255,255,.16); border-radius: 999px; }
.lang-switch .bogoflags, ul.bogo-language-switcher .bogoflags { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,244,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(31,42,46,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height .25s; }
.site-header.is-scrolled .wrap { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 21px; font-style: italic; flex: none; }
.brand-name { font-family: var(--serif); font-size: 21px; line-height: 1.1; font-weight: 500; }
.brand-name small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-weight: 500; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { border-radius: 8px; font-size: 15px; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.btn, .wp-block-button__link, .wpcf7-submit { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; background: var(--brand); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15.5px; border: 0; cursor: pointer; transition: background .2s, transform .2s; font-family: var(--sans); line-height: 1.3; }
.btn:hover, .wp-block-button__link:hover, .wpcf7-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--brand) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--brand-soft); }
.btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero (portada) ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -240px; top: -260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero h1 em { color: var(--brand); font-style: italic; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media .frame { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--brand-soft), var(--paper-2)); box-shadow: var(--shadow); }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .frame .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); opacity: .35; }
.hero-badge { position: absolute; left: -28px; bottom: 36px; background: var(--white); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 280px; }
.hero-badge .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-badge strong { display: block; font-size: 15px; line-height: 1.3; }
.hero-badge small { color: var(--muted); font-size: 13px; }

/* ---------- Secciones genéricas (bloques con clase) ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--brand-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-2); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5c63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

.cta-band { background: var(--brand); color: #e5f0ef; border-radius: calc(var(--radius) * 1.5); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .btn, .cta-band .wp-block-button__link { background: #fff; color: var(--brand-dark) !important; }
.cta-band .btn:hover, .cta-band .wp-block-button__link:hover { background: var(--accent-soft); }
.cta-band .wp-block-buttons { position: relative; z-index: 1; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .2em; font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero p { color: var(--ink-soft); margin: 0; max-width: 40em; font-size: 1.08rem; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- Contenido ---------- */
.entry { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ink-soft); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-image figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.entry-content details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 10px; }
.entry-content summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.entry-content summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.entry-content details[open] summary::after { transform: rotate(45deg); }
.entry-content details > :not(summary) { padding-bottom: 6px; }
.alignwide { width: min(100vw - 40px, var(--wrap)); margin-inline: calc(50% - min(50vw - 20px, var(--wrap) / 2)); max-width: none; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.has-text-align-center { text-align: center; }

.legal .entry-content { font-size: 15.5px; color: var(--ink-soft); }
.legal .entry-content h2 { font-size: 1.5rem; }
.legal .entry-content h3 { font-size: 1.2rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-item a { color: var(--ink); text-decoration: none; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 22px; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--paper-2); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 15px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.wpcf7 form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.wpcf7 label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.wpcf7 p { margin-bottom: 16px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; font-size: 16px; background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.wpcf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance input { margin-top: 5px; accent-color: var(--brand); }
.wpcf7 .legal-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 18px; }
.wpcf7-not-valid-tip { font-size: 13px; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 16px 0 0; padding: 12px 16px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: #142b2e; color: #b9cac9; font-size: 15px; padding-top: clamp(56px, 7vw, 84px); }
.site-footer a { color: #e7efee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-name small { color: #8fa7a6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }

/* Botón flotante de llamada en móvil */
.call-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(201,123,99,.7); place-items: center; }
.call-fab svg { width: 24px; height: 24px; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-cta .btn-text { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--paper); padding: 96px 24px 24px; transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 40px -20px rgba(0,0,0,.25); overflow-y: auto; z-index: 70; }
	.nav-open .main-nav { transform: none; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { font-size: 17px; padding: 12px 16px; border-radius: 12px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; }
	.nav-toggle { position: relative; z-index: 80; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(20,43,46,.4); opacity: 0; visibility: hidden; transition: .3s; z-index: 65; }
	.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
	.hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
	.hero-media { max-width: 440px; margin-inline: auto; width: 100%; }
	.hero-badge { left: 0; }
	.cta-band { grid-template-columns: 1fr; }
	.call-fab { display: grid; }
	.topbar .tb-hide-sm { display: none; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap, .narrow { width: min(100% - 32px, var(--wrap)); }
	.footer-grid { grid-template-columns: 1fr; }
	.wpcf7 .form-row { grid-template-columns: 1fr; gap: 0; }
	.header-cta .btn { padding: 11px 14px; }
	.brand-name { font-size: 18px; }
	.brand-name small { font-size: 10.5px; }
}

/* Temas clásicos: WordPress envuelve los grupos en un contenedor interno; lo hacemos transparente al layout */
.wp-block-group__inner-container { display: contents; }
.front > .wp-block-group { margin: 0; }
.front .section-head > *:last-child { margin-bottom: 0; }
.hero-actions.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
html, body { overflow-x: clip; }
@media (max-width: 900px) {
	.main-nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
	.nav-open .main-nav { visibility: visible; transition: transform .3s ease; }
	.topbar { font-size: 13px; }
	.topbar .tb-info { min-width: 0; gap: 12px; }
	.lang-switch a, .lang-switch .current span { padding: 2px 7px; }
}
@media (max-width: 900px) { .topbar .tb-info span.tb-hide-sm { display: none; } }
.card .wp-block-heading { margin-top: 0; }

/* =========================================================
   Versión con contenido real (Dr. Miguel Terrasa)
   ========================================================= */
.topbar .tb-info span a { font-weight: 600; }

/* Menú con desplegables */
.main-nav .sub-arrow { display: inline-flex; margin-left: 3px; vertical-align: -2px; }
.main-nav .sub-arrow svg { width: 14px; height: 14px; }
.main-nav a { padding: 10px 12px; font-size: 15px; white-space: nowrap; }
.main-nav .sub-menu { min-width: 280px; }
.main-nav .sub-menu a { white-space: normal; padding: 9px 12px; }
@media (max-width: 1360px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--paper); padding: 96px 20px 24px; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; box-shadow: -20px 0 40px -20px rgba(0,0,0,.25); overflow-y: auto; z-index: 70; }
	.nav-open .main-nav { transform: none; visibility: visible; transition: transform .3s ease; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { font-size: 16.5px; padding: 11px 14px; border-radius: 12px; white-space: normal; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; background: none; min-width: 0; }
	.main-nav .sub-menu a { font-size: 15px; color: var(--ink-soft); padding: 7px 14px; }
	.main-nav .sub-arrow { display: none; }
	.nav-toggle { position: relative; z-index: 80; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(20,43,46,.4); opacity: 0; visibility: hidden; transition: .3s; z-index: 65; }
	.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

/* Portada */
.hero-since { font-size: 14px; color: var(--muted); margin-top: 22px; letter-spacing: .02em; }
a.hero-badge { text-decoration: none; color: var(--ink); }
a.hero-badge:hover { color: var(--ink); transform: translateY(-2px); }
.hero-badge { transition: transform .2s; }
.hero-badge strong { color: var(--accent); }
.hero-badge small { font-size: 17px; color: var(--ink); font-weight: 600; }
.hero-media .frame img { object-position: 50% 30%; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin: -20px auto 10px; max-width: 900px; font-size: 15.5px; }
.notice .ic { color: var(--accent); flex: none; margin-top: 2px; }
.notice .ic svg { width: 22px; height: 22px; }
.notice p { margin: 0; }
.letter .split-copy p { color: var(--ink-soft); }
.letter .media { aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.split { align-items: start; }
.split-rev { grid-template-columns: 1.1fr .9fr; align-items: center; }
.split-rev .media { aspect-ratio: 1 / 1; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--brand) !important; margin-top: 8px; }
.signature.light { color: #fff !important; font-size: 1.1rem; margin-top: 14px; opacity: .9; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(h3 a):hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p.more { color: var(--brand); font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 16px; }
.all-services { margin-top: 56px; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.all-services h3 { margin-top: 0; }
.checklist.cols-2 { columns: 2; column-gap: 40px; }
.checklist.cols-2 li { break-inside: avoid; font-size: 15.5px; color: var(--ink-soft); }
.narrow-center { max-width: 820px; text-align: center; }
.narrow-center .eyebrow { justify-content: center; }
.narrow-center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.chips { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--brand-dark); font-size: 15.5px; }
p.small { font-size: 14.5px; color: var(--ink-soft); }
.cta-band .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
.cta-band .is-style-outline .wp-block-button__link { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); background: transparent; }
.cta-band .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* Páginas interiores */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { max-width: 760px; }
.with-aside .prose { max-width: none; }
.entry > .wrap:not(.with-aside) > .prose { margin-inline: auto; }
.section-nav { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-nav h4 { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.section-nav h4 svg { width: 16px; height: 16px; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.section-nav li:first-child a { font-weight: 600; }
.section-nav li a:hover { background: var(--paper); }
.section-nav li.current a { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.aside-cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.aside-cta strong { font-size: 14px; color: var(--muted); font-weight: 600; }
.aside-cta .btn { justify-content: center; }
.child-cards { margin-top: 48px; }
.child-cards .card h3 { font-size: 1.2rem; }
.entry-content .wp-block-image { margin: 28px auto; }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); max-height: 560px; width: auto; margin-inline: auto; box-shadow: 0 1px 2px rgba(31,42,46,.06); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table td { border: 1px solid var(--line); }
.gm-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; margin: 24px 0; }
.gm-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-grid + .section { padding-bottom: 0; }
.footer-since { color: #8fa7a6; font-size: 14px; }
@media (max-width: 1020px) {
	.with-aside { grid-template-columns: 1fr; }
	.section-nav { position: static; }
}
@media (max-width: 900px) {
	.letter .media { position: static; aspect-ratio: 4 / 3; }
	.split-rev { grid-template-columns: 1fr; }
	.split-rev .media { order: -1; }
	.checklist.cols-2 { columns: 1; }
}
.site-header .brand-name { white-space: nowrap; }
.header-cta .btn { white-space: nowrap; }
.site-footer .sub-arrow { display: none; }
.brand-mark { font-size: 17px; letter-spacing: -.02em; }
.site-header .wrap { gap: 16px; }
.main-nav a { padding: 9px 11px; font-size: 15px; }
.header-cta .btn { padding: 11px 18px; font-size: 15px; }
.site-header .wrap, .topbar .wrap { width: min(100% - 40px, 1320px); }
@media (max-width: 1360px) {
	.main-nav { display: none; transform: none; visibility: visible; }
	.nav-open .main-nav { display: block; animation: gmSlide .28s ease; }
}
@keyframes gmSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.with-aside .child-cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .with-aside .child-cards { grid-template-columns: 1fr; } }

/* =========================================================
   Colores de la web original (naranja #FC8744, gris #363839)
   ========================================================= */
:root {
	--ink: #1a1a1a;
	--ink-soft: #444444;
	--muted: #6e6e6e;
	--paper: #fffbf8;
	--paper-2: #fff1e7;
	--white: #ffffff;
	--brand: #e46f2e;        /* naranja de la web, un punto más intenso para que el texto blanco se lea */
	--brand-dark: #b9541c;
	--brand-soft: #ffeadc;
	--accent: #fc8744;       /* naranja original */
	--accent-soft: #fde3d2;
	--alert: #d9291c;        /* rojo de los teléfonos */
	--line: #f0e4da;
	--footer: #363839;       /* gris del pie original */
}
.topbar { background: var(--accent); color: #1a1a1a; }
.topbar a { color: #1a1a1a; }
.topbar svg { opacity: .75; }
.lang-switch a, .lang-switch .current span { color: #1a1a1a; }
.lang-switch li.current { background: rgba(0,0,0,.12); }
.site-header { background: rgba(255,255,255,.94); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(54,56,57,.4); }
.brand-mark { background: var(--accent); }
.eyebrow { color: var(--brand); }
.hero h1 em, .signature { color: var(--brand) !important; }
.hero::before { background: radial-gradient(circle at 30% 30%, #ffe0cb, transparent 65%); }
.hero-media .frame { background: linear-gradient(160deg, #ffe7d6, var(--paper-2)); }
.hero-badge .ic { background: #fde2df; color: var(--alert); }
.hero-badge strong { color: var(--alert); }
.contact-item:nth-child(2) .ic { background: #fde2df; color: var(--alert); }
.section-tint { background: #fff1e7; }
.checklist li::before { background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e46f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-3'/%3E%3C/svg%3E") center / 11px no-repeat; }
.checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e46f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.entry-content li::marker { color: var(--accent); }
.cta-band { background: linear-gradient(135deg, #f08a4b, #d9622a); color: #fff; }
.cta-band .btn, .cta-band .wp-block-button__link { color: var(--brand-dark) !important; }
.cta-band .btn:hover, .cta-band .wp-block-button__link:hover { background: #fff3ea; }
.site-footer { background: var(--footer); color: #c9c9c9; }
.site-footer a { color: #f2f2f2; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-name small, .footer-since { color: #a8a8a8; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }
.nav-backdrop { background: rgba(54,56,57,.45) !important; }
.call-fab { background: var(--alert); box-shadow: 0 10px 24px -8px rgba(217,41,28,.6); }
.chips li { color: var(--brand-dark); }
.notice { background: #fff1e7; border: 1px solid #fdd3b8; }
.page-hero { background: linear-gradient(180deg, #fff1e7, var(--paper)); }

/* =========================================================
   PROPUESTA B · portada editorial "Pasión por lo femenino"
   ========================================================= */
.pb { --pb-wrap: 1240px; overflow-x: clip; }
.pb-wrap { width: min(100% - 48px, var(--pb-wrap)); margin-inline: auto; }
.pb-label { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.pb-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.pb-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: 0; }
.pb-head h2 em { color: var(--brand); }
.pb-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--brand); color: #fff !important; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.pb-btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.pb-btn svg { width: 18px; height: 18px; }
.pb-btn-ghost { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.pb-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* 1 · Hero */
.pb-hero { position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(180deg, rgba(20,16,14,.15) 0%, rgba(20,16,14,.25) 45%, rgba(20,16,14,.78) 100%), var(--bg) center 60% / cover no-repeat; }
.pb-hero > .pb-wrap { padding: 120px 0 56px; }
.pb-kicker { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 22px; }
.pb-hero h1 { color: #fff; font-size: clamp(3.2rem, 9vw, 8.2rem); line-height: .95; letter-spacing: -.035em; font-weight: 400; margin: 0 0 28px; max-width: 11ch; }
.pb-hero h1 em { color: #ffb487; }
.pb-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34em; opacity: .92; margin-bottom: 34px; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pb-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; font-size: 14px; }
.pb-langs li { padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.14); }
.pb-langs li:first-child { background: none; padding-left: 0; opacity: .8; }
.pb-facts { border-top: 1px solid rgba(255,255,255,.22); background: rgba(20,16,14,.35); backdrop-filter: blur(8px); }
.pb-facts .pb-wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.pb-facts .pb-wrap > div { padding: 22px 24px 24px 0; }
.pb-facts .pb-wrap > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); }
.pb-facts strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.pb-facts span { font-size: 14px; opacity: .78; }

/* 2 · Carta */
.pb-letter { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(72px, 10vw, 140px) 0; align-items: start; }
.pb-portrait { margin: 0; position: sticky; top: 120px; }
.pb-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 200px 200px 16px 16px; }
.pb-portrait figcaption { margin-top: 16px; font-family: var(--serif); font-size: 1.2rem; }
.pb-portrait figcaption span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.pb-letter blockquote { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 40px; color: var(--ink); font-weight: 400; }
.pb-cols { columns: 2; column-gap: 40px; color: var(--ink-soft); }
.pb-cols p { break-inside: avoid; }
.pb-sign { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--brand); margin-top: 18px; transform: rotate(-3deg); display: inline-block; }

/* 3 · Etapas */
.pb-stages { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-2); }
.pb-stage-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(260px, auto)); gap: 18px; }
.pb-stage { position: relative; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%), var(--img) center / cover; transition: transform .35s ease; isolation: isolate; }
.pb-stage::before { content: ""; position: absolute; inset: 0; background: inherit; z-index: -1; transition: transform .6s ease; }
.pb-stage:hover { color: #fff; transform: translateY(-4px); }
.pb-stage-big { grid-row: span 2; }
.pb-stage h3 { color: #fff; font-size: clamp(1.35rem, 2vw, 1.8rem); margin: 0 0 6px; }
.pb-stage-big h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pb-stage p { margin: 0; font-size: 15px; opacity: .9; max-width: 30em; }
.pb-num { position: absolute; top: 20px; left: 24px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; opacity: .9; }

/* 4 · Dúo */
.pb-duo { padding: clamp(72px, 10vw, 130px) 0; }
.pb-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.pb-duo-grid article:nth-child(2) { margin-top: 80px; }
.pb-duo-grid img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 22px; margin-bottom: 22px; }
.pb-duo-grid h3 { font-size: 1.6rem; margin-bottom: 8px; }
.pb-duo-grid p { color: var(--ink-soft); }
.pb-duo-grid a { font-weight: 600; text-decoration: none; }

/* 5 · Primera visita */
.pb-visit { background: var(--footer); color: #e9e9e9; padding: clamp(72px, 9vw, 120px) 0; }
.pb-head-light h2 { color: #fff; }
.pb-head-light .pb-label { color: var(--accent); }
.pb-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pb-steps li { counter-increment: s; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.pb-steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.6rem; margin-bottom: 10px; }
.pb-steps strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.pb-steps span { font-size: 15px; color: #c9c9c9; }
.pb-steps a { color: #ffb487; }

/* 6 · Ubicación */
.pb-place { min-height: 560px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(20,16,14,.55), rgba(20,16,14,.05) 70%), var(--bg) center / cover; padding: 80px 0; }
.pb-place-card { background: rgba(255,251,248,.96); border-radius: 22px; padding: clamp(28px, 4vw, 48px); max-width: 520px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.pb-place-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.pb-place-card p { color: var(--ink-soft); }

/* Cabecera transparente sobre el hero en esta plantilla */
.page-template-page-propuesta .site-header { background: rgba(255,255,255,.96); }

@media (max-width: 1000px) {
	.pb-letter { grid-template-columns: 1fr; }
	.pb-portrait { position: static; max-width: 300px; }
	.pb-stage-grid { grid-template-columns: 1fr 1fr; }
	.pb-stage-big { grid-column: span 2; grid-row: auto; min-height: 380px; }
	.pb-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.pb-wrap { width: min(100% - 32px, var(--pb-wrap)); }
	.pb-facts .pb-wrap { grid-template-columns: 1fr; }
	.pb-facts .pb-wrap > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
	.pb-facts .pb-wrap > div { padding: 14px 0; }
	.pb-cols { columns: 1; }
	.pb-stage-grid { grid-template-columns: 1fr; }
	.pb-stage-big { grid-column: auto; }
	.pb-duo-grid { grid-template-columns: 1fr; }
	.pb-duo-grid article:nth-child(2) { margin-top: 0; }
	.pb-steps { grid-template-columns: 1fr; }
	.pb-hero > .pb-wrap { padding-top: 80px; }
}

/* =========================================================
   DISEÑO EDITORIAL (v2) · portada en bloques + páginas
   ========================================================= */
.front { overflow-x: clip; }
.front > * { margin: 0 !important; }
.pbx-wrap { width: min(100% - 48px, 1240px); margin-inline: auto !important; }
.pbx-label { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px !important; }
.pbx-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px) !important; }
.pbx-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: 0; }
.pbx-head h2 em { color: var(--brand); }
.pbx-btn .wp-block-button__link { padding: 15px 26px; font-size: 16px; }
.pbx-btn-ghost .wp-block-button__link { background: rgba(255,255,255,.12) !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7) !important; backdrop-filter: blur(6px); padding: 15px 26px; font-size: 16px; }
.pbx-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.22) !important; }

/* Cover genérico */
.wp-block-cover { position: relative; display: flex; overflow: hidden; }
.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; max-width: none; border-radius: 0 !important; }
.wp-block-cover__background { position: absolute; inset: 0; z-index: 1; }
.wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; }
.wp-block-cover.is-position-bottom-left { align-items: flex-end; }
.wp-block-cover.is-position-center-left { align-items: center; }

/* 1 · Hero */
.pbx-hero { color: #fff; width: 100%; }
.pbx-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(20,16,14,.12) 0%, rgba(20,16,14,.25) 45%, rgba(20,16,14,.8) 100%) !important; opacity: 1 !important; }
.pbx-hero .wp-block-cover__image-background { object-position: 50% 60%; }
.pbx-hero .pbx-wrap { padding: 120px 0 52px; }
.pbx-kicker { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .88; margin-bottom: 22px !important; }
.pbx-hero h1 { color: #fff; font-size: clamp(3.2rem, 9vw, 8.2rem); line-height: .95; letter-spacing: -.035em; font-weight: 400; margin: 0 0 28px; max-width: 12ch; }
.pbx-hero h1 em { color: #ffb487; }
.pbx-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34em; opacity: .93; margin-bottom: 34px !important; }
.pbx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pbx-langs { margin: 28px 0 0 !important; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pbx-langs span { padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.15); }
.pbx-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); background: rgba(20,16,14,.38); backdrop-filter: blur(8px); padding-inline: max(24px, calc((100% - 1240px) / 2)); }
.pbx-facts p { margin: 0; padding: 22px 24px 24px 0; font-size: 14px; color: rgba(255,255,255,.8); }
.pbx-facts p + p { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); }
.pbx-facts strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: #fff; }

/* 2 · Carta */
.pbx-letter { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(72px, 10vw, 140px) 0; align-items: start; }
.pbx-portrait { position: sticky; top: 120px; }
.pbx-portrait figure { margin: 0; }
.pbx-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 200px 200px 16px 16px !important; }
.pbx-caption { margin-top: 16px !important; font-family: var(--serif); font-size: 1.2rem; }
.pbx-caption span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.pbx-quote { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 40px !important; }
.pbx-cols { columns: 2; column-gap: 40px; color: var(--ink-soft); }
.pbx-cols p { break-inside: avoid; }
.pbx-sign { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--brand); margin-top: 18px !important; transform: rotate(-3deg); display: inline-block; }

/* 3 · Etapas */
.pbx-stages { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-2); }
.pbx-stage-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(260px, auto); gap: 18px; }
.pbx-stage { border-radius: 22px; color: #fff; padding: 26px !important; transition: transform .35s ease; }
.pbx-stage .wp-block-cover__background { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.74) 100%) !important; opacity: 1 !important; }
.pbx-stage .wp-block-cover__image-background { transition: transform .8s ease; }
.pbx-stage:hover { transform: translateY(-4px); }
.pbx-stage:hover .wp-block-cover__image-background { transform: scale(1.05); }
.pbx-stage-big { grid-row: span 2; }
.pbx-stage h3 { color: #fff; font-size: clamp(1.35rem, 2vw, 1.8rem); margin: 0 0 6px; }
.pbx-stage h3 a { color: #fff; text-decoration: none; }
.pbx-stage h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.pbx-stage-big h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pbx-stage p { margin: 0; font-size: 15px; opacity: .92; max-width: 30em; }
.pbx-stage .pbx-num { position: absolute; top: -200px; }
.pbx-stage { --num-top: 20px; }
.pbx-stage .wp-block-cover__inner-container { position: static; }
.pbx-stage .pbx-num { position: absolute; top: 20px; left: 24px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 1.2rem; opacity: .9; }

/* 4 · Dúo */
.pbx-duo { padding: clamp(72px, 10vw, 130px) 0; }
.pbx-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.pbx-person:nth-child(2) { margin-top: 80px; }
.pbx-person figure { margin: 0 0 22px; }
.pbx-person img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 22px !important; }
.pbx-person h3 { font-size: 1.6rem; margin-bottom: 8px; }
.pbx-person p { color: var(--ink-soft); }
.pbx-more a { font-weight: 600; text-decoration: none; }

/* 5 · Primera visita */
.pbx-visit { background: var(--footer); color: #e9e9e9; padding: clamp(72px, 9vw, 120px) 0; }
.pbx-visit .pbx-head h2 { color: #fff; }
.pbx-visit .pbx-label { color: var(--accent); }
.pbx-steps { list-style: none; counter-reset: s; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pbx-steps li { counter-increment: s; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; font-size: 15px; color: #c9c9c9; margin: 0; }
.pbx-steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.6rem; margin-bottom: 10px; }
.pbx-steps strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.pbx-steps a { color: #ffb487; }

/* 6 · Ubicación */
.pbx-place { padding: 80px 0; }
.pbx-place .wp-block-cover__background { background: linear-gradient(90deg, rgba(20,16,14,.55), rgba(20,16,14,.05) 70%) !important; opacity: 1 !important; }
.pbx-place-card { background: rgba(255,251,248,.96); border-radius: 22px; padding: clamp(28px, 4vw, 48px); max-width: 520px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); color: var(--ink); }
.pbx-place-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink); }
.pbx-place-card p { color: var(--ink-soft); }

/* ---------- Páginas interiores (editorial) ---------- */
.page-hero.has-photo { position: relative; color: #fff; border: 0; padding: clamp(110px, 14vw, 190px) 0 clamp(44px, 6vw, 72px); background: #2a2523; overflow: hidden; }
.page-hero.has-photo .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,14,.15) 0%, rgba(20,16,14,.72) 100%); }
.page-hero.has-photo .wrap { position: relative; z-index: 1; }
.page-hero.has-photo h1 { color: #fff; }
.page-hero.has-photo p, .page-hero.has-photo .breadcrumbs, .page-hero.has-photo .breadcrumbs a { color: rgba(255,255,255,.85); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 400; max-width: 18ch; }
.page-hero .ph-kicker { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.page-hero.has-photo .ph-kicker { color: #ffb487; }
.prose > p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; color: var(--ink); }
.entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.entry-content h2::before { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.child-cards { counter-reset: cc; gap: 0 !important; border-top: 1px solid var(--line); }
.child-cards .card { counter-increment: cc; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 26px 8px 26px 0; }
.child-cards .card::before { content: "0" counter(cc); font-family: var(--serif); font-style: italic; color: var(--brand); font-size: 1.2rem; margin-bottom: 8px; }
.child-cards .card:hover { transform: none; box-shadow: none; background: var(--paper-2); }
.with-aside .child-cards, .child-cards { grid-template-columns: repeat(2, 1fr); column-gap: 32px !important; }
.section-nav { border-radius: 22px; }

/* Pie: llamada final */
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta h3 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; font-weight: 400; margin: 0; letter-spacing: -.02em; }
.footer-cta h3 em { color: var(--accent); }
.footer-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta .btn-ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

@media (max-width: 1000px) {
	.pbx-letter { grid-template-columns: 1fr; }
	.pbx-portrait { position: static; max-width: 300px; }
	.pbx-stage-grid { grid-template-columns: 1fr 1fr; }
	.pbx-stage-big { grid-column: span 2; grid-row: auto; min-height: 380px !important; }
	.pbx-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.pbx-wrap { width: min(100% - 32px, 1240px); }
	.pbx-facts { grid-template-columns: 1fr; padding-inline: 16px; }
	.pbx-facts p { padding: 14px 0 !important; border-left: 0 !important; }
	.pbx-facts p + p { border-top: 1px solid rgba(255,255,255,.15); }
	.pbx-cols { columns: 1; }
	.pbx-stage-grid { grid-template-columns: 1fr; }
	.pbx-stage-big { grid-column: auto; }
	.pbx-duo-grid { grid-template-columns: 1fr; }
	.pbx-person:nth-child(2) { margin-top: 0; }
	.pbx-steps { grid-template-columns: 1fr; }
	.pbx-hero .pbx-wrap { padding-top: 80px; }
	.child-cards { grid-template-columns: 1fr !important; }
}
.wp-block-cover .wp-block-cover__inner-container { width: 100% !important; margin: 0 !important; max-width: none !important; }
.pbx-hero, .pbx-place { padding: 0 !important; }
.pbx-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; }
.entry-content .pbx-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: 0; }
.entry-content .pbx-place-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 0; }
.entry-content .pbx-place-card h2::before, .entry-content .pbx-head h2::before { display: none; }
.pbx-place .pbx-wrap { padding: 80px 0; }
.child-cards .card::before { margin-bottom: 4px; }
.child-cards .card h3 { margin-top: 0; }
.child-cards .card .more { padding-top: 12px; }

/* Aviso de cookies */
.gm-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; }
.gm-cookies[hidden] { display: none; }
.gm-cookies-in { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.35); border: 1px solid var(--line); padding: 20px 24px; max-width: 920px; width: 100%; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.gm-cookies strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.gm-cookies p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.gm-cookies-btns { display: flex; gap: 10px; flex: none; }
.gm-cookies .btn { padding: 11px 18px; font-size: 14.5px; }
.gm-cookies .btn-ghost { color: var(--brand-dark) !important; }
.gm-map-consent { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); display: grid; place-items: center; text-align: center; padding: 24px; margin: 24px 0; }
.gm-map-consent .ic { color: var(--brand); display: inline-flex; }
.gm-map-consent .ic svg { width: 32px; height: 32px; }
.gm-map-consent p { margin: 8px 0 16px; color: var(--ink-soft); }
.gm-embed .gm-map-consent { margin: 0; border: 0; height: 100%; }
@media (max-width: 700px) {
	.gm-cookies-in { flex-direction: column; align-items: stretch; }
	.gm-cookies-btns { flex-direction: column-reverse; }
	.gm-cookies .btn { justify-content: center; }
}

/* Caja "Pida cita" (patrón del editor) */
.prose .gm-cta-box, .gm-cta-box { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 26px 30px; margin: 2.2em 0 0; }
.gm-cta-box h3 { margin: 0 0 .3em; font-family: var(--serif); }
.gm-cta-box p { margin: 0 0 1em; color: var(--ink-soft); }
.gm-cta-box .wp-block-buttons { margin: 0; }
