/* =============================================================================
   Páginas informativas (Club, ayuda, envíos, devoluciones, quiénes somos…): contenido en <div class="pg">
   con secciones, tarjetas, preguntas frecuentes y notas. El texto vive en scripts/seed-content.php.
   ========================================================================== */

/* Cabecera con entradilla (extracto de la página) */
.page-head--lead { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 68px); background: radial-gradient(55% 140% at 100% 0%, rgba(218, 191, 137, .24), transparent 62%), var(--bg); }
.page-head--lead h1 { max-width: 15ch; font-size: clamp(40px, 5.6vw, 72px); font-weight: 200; letter-spacing: -.045em; }
.page-head .page-lead { max-width: 620px; margin: 22px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; font-weight: 300; color: var(--muted); text-wrap: pretty; }

.pg { font-size: 17px; line-height: 1.7; }

/* Secciones a dos columnas: título fijo a la izquierda, contenido a la derecha */
@media (min-width: 1000px) {
	.pg--split .pg-sec { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.3fr); column-gap: 72px; padding-top: 44px; border-top: 1px solid var(--line); }
	.pg--split .pg-sec > * { grid-column: 2; }
	.pg--split .pg-sec > h2 { grid-column: 1; grid-row: 1 / span 30; align-self: start; position: sticky; top: 132px; font-size: clamp(26px, 2.4vw, 32px); }
	.pg--split .pg-intro { max-width: 820px; margin-bottom: 72px; }
}

/* Sumario numerado (páginas índice: ayuda, descubrir…) */
.pg-index { counter-reset: idx; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.pg-index li { counter-increment: idx; border-bottom: 1px solid var(--line); }
.pg-index a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: baseline; gap: 6px 28px; padding: 28px 6px; text-decoration: none !important; }
.pg-index a::before { content: counter(idx, decimal-leading-zero); grid-row: span 2; font-size: 14px; font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.pg-index b { font-size: clamp(22px, 2.3vw, 32px); font-weight: 300; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); transition: color var(--t); }
.pg-index .txt { grid-column: 2; font-size: 15.5px; color: var(--muted); }
.pg-index .go { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); font-size: 18px; transition: transform var(--t), background var(--t), color var(--t), border-color var(--t); }
.pg-index a:hover b { color: var(--navy); }
.pg-index a:hover .go { transform: translateX(6px); background: var(--navy); border-color: var(--navy); color: #fff; }

.pg-after { margin-top: 48px; }

/* Franjas a todo el ancho (página del Club) */
.pg-band { padding-block: clamp(64px, 8vw, 116px); }
.pg-band--soft { background: var(--bg); }
.pg-band--navy { color: #fff; background: radial-gradient(60% 90% at 88% 8%, rgba(218, 191, 137, .2), transparent 62%), linear-gradient(160deg, var(--navy-2), var(--navy) 52%, var(--ink)); }
.pg-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.pg-head h2 { margin: 0 0 12px; font-size: clamp(32px, 3.8vw, 52px); font-weight: 200; letter-spacing: -.04em; line-height: 1.04; }
.pg-head h2 b { font-weight: 600; }
.pg-head p { margin: 0; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.pg-band--navy .pg-head p { color: #C9D0DC; }

.club-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.club-hero .ey { color: var(--gold); }
.club-hero .ey::before { background: var(--gold); }
.club-hero h2 { margin: 18px 0 22px; font-size: clamp(42px, 5.8vw, 82px); font-weight: 200; letter-spacing: -.05em; line-height: .98; }
.club-hero h2 b { font-weight: 600; color: #F1DDB4; }
.club-hero p { max-width: 520px; margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #C9D0DC; }
.club-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 34px; }
/* Enlaces de texto sobre las franjas navy: blancos con subrayado dorado (más específico que «.pg a», que va después).
   Ni este ni «.pg a» tocan las tarjetas de producto ([gusto_productos]). */
.pg .pg-band--navy a:not(.btn):not(.chip):not(.pg-card):not(.gbtn):not(.prod-grid a) { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.pg .club-hero-actions a.lnk { font-weight: 600; }

/* Tarjeta de socio ilustrada */
.mcard-stage { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1.586; margin-left: auto; }
.mcard { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 30px); border-radius: 22px; color: #F4EBDD; background: linear-gradient(135deg, #22355A 0%, #111D33 55%, #0A0A0C 100%); border: 1px solid rgba(218, 191, 137, .38); box-shadow: 0 46px 90px -34px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); transform: rotate(-6deg); overflow: hidden; }
.mcard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(218, 191, 137, .07) 0 1px, transparent 1px 10px); }
.mcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% -15%, rgba(241, 221, 180, .38), transparent 48%); }
.mcard > * { position: relative; z-index: 1; }
.mcard--back { transform: rotate(5deg) translate(22px, 16px); background: linear-gradient(135deg, #E9D5A9, #B8995C 70%, #8A6A2E); border: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.mcard--back::before, .mcard--back::after { content: none; }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mcard-logo { display: block; width: 92px; color: #F4EBDD; }
.mcard-logo svg { display: block; width: 100%; height: auto; }
.mcard-club { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.mcard-chip { align-self: center; width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #F1DDB4, #B8995C); box-shadow: inset 0 0 0 1px rgba(10, 10, 12, .2); }
.mcard-name { font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; letter-spacing: .02em; }
.mcard-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12.5px; color: #C9D0DC; }
.mcard-pts { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.mcard-pts small { font-size: 11px; font-weight: 500; color: #C9D0DC; }
@media (prefers-reduced-motion: no-preference) {
	.mcard:not(.mcard--back) { animation: mcard-in 1s cubic-bezier(.16, 1, .3, 1) both .1s; }
	.mcard--back { animation: mcard-back-in 1s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes mcard-in { from { opacity: 0; transform: rotate(-1deg) translateY(28px); } }
@keyframes mcard-back-in { from { opacity: 0; transform: rotate(0deg) translate(0, 20px); } }
.pg > * + * { margin-top: 0; }
.pg p { text-wrap: pretty; }
.pg a:not(.btn):not(.chip):not(.pg-card):not(.gbtn):not(.prod-grid a) { color: var(--royal-deep); text-decoration: underline; text-underline-offset: 3px; }

.pg-intro { max-width: 760px; margin: 0 0 56px; font-size: 21px; line-height: 1.55; font-weight: 300; color: var(--ink); text-wrap: pretty; }
.pg-intro b { font-weight: 600; }

.pg-sec { margin: 0 0 72px; scroll-margin-top: 120px; }
.pg-sec > h2 { max-width: 760px; margin: 0 0 10px; font-size: clamp(28px, 3vw, 38px); font-weight: 300; letter-spacing: -.03em; line-height: 1.12; }
.pg-sec > h2 b { font-weight: 600; }
.pg-sec > .ey { margin-bottom: 12px; }
.pg-sec > p, .pg-sec > ul:not([class]), .pg-sec > ol:not([class]) { max-width: 760px; }
.pg-sec > p.pg-sub { margin: 0 0 28px; color: var(--muted); }
.pg-sec h3 { margin: 32px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.pg-sec ul:not([class]) { padding-left: 1.2em; }
.pg-sec ul:not([class]) li + li { margin-top: 6px; }

/* Columnas de texto y tarjetas */
.pg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pg-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 20px; background: var(--bg); transition: background var(--t), transform var(--t), box-shadow var(--t); }
a.pg-card:hover { background: var(--paper); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pg-card b { font-size: 18px; font-weight: 600; color: var(--ink); }
.pg-card span { font-size: 15px; color: var(--muted); line-height: 1.55; }
.pg-card .go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--royal-deep); }
.pg-card--dark { background: var(--navy); color: #fff; }
.pg-card--dark b { color: #fff; }
.pg-card--dark span { color: #C9D0DC; }

/* Datos clave en fila */
.pg-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 56px; }
.pg-facts div { padding: 22px 20px; border-top: 2px solid var(--gold); }
.pg-facts b { display: block; font-size: 32px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.pg-facts span { font-size: 14.5px; color: var(--muted); }

/* Preguntas frecuentes */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 18px; transition: transform var(--t), background var(--t); }
.faq details[open] summary::after { content: "–"; background: var(--navy); color: #fff; }
.faq details > div { padding: 0 4px 22px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-group { margin: 40px 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink); }
.faq-group:first-child { margin-top: 0; }

/* Cita */
.pg blockquote { max-width: 760px; margin: 32px 0 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); }
.pg blockquote p { margin: 0 0 8px; font-size: 22px; font-weight: 300; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.pg blockquote cite { font-size: 14px; font-style: normal; font-weight: 600; color: var(--gold-ink); }

/* Boletín dentro de una página ([gusto_boletin]) */
.pg-news { margin: 0 0 72px; }

/* «Ver todos» bajo una rejilla de productos ([gusto_productos enlace="…"]) */
.pg-more { margin: 24px 0 0; }

/* Notas y avisos */
.pg-note { max-width: 760px; padding: 18px 22px; border-radius: 16px; background: var(--gold-soft); font-size: 15.5px; color: var(--ink); }
.pg-note--legal { background: var(--bg); color: var(--muted); font-size: 14.5px; }

/* Contacto y datos de la empresa */
.pg-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pg-contact div { padding: 22px; border-radius: 18px; background: var(--bg); }
.pg-contact b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }

/* Envíos y pagos (shortcodes) */
.ship { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ship-zone { padding: 22px 24px; border-radius: 18px; background: var(--bg); }
.ship-zone h3 { margin: 0 0 12px !important; font-size: 18px !important; }
.ship-zone dl { display: grid; gap: 8px; margin: 0; }
.ship-zone dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-strong); }
.ship-zone dt { color: var(--muted); }
.ship-zone dd { margin: 0; font-weight: 600; }
.pay { display: grid; gap: 8px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.pay li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 14px; background: var(--bg); }
.pay span { font-size: 15px; color: var(--muted); }

/* Legales: texto largo y sobrio */
.pg-legal { max-width: 820px; font-size: 16px; }
.pg-legal h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 400; letter-spacing: -.015em; }
.pg-legal h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }

/* Quiénes somos (page-quienes-somos.php): portada, historia, familia, reconocimientos y selección */
.ab-hero { background: radial-gradient(55% 120% at 100% 0%, rgba(218, 191, 137, .22), transparent 62%), var(--bg); }
.ab-hero > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.ab-hero h2 { margin: 0 0 22px; font-size: clamp(40px, 5.2vw, 72px); font-weight: 200; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.ab-hero h2 b { font-weight: 600; }
.ab-hero-txt > p { max-width: 540px; margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ab-hero-txt > p b { color: var(--ink); font-weight: 600; }
.ab-hero-txt > .ab-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.pg .ab-hero-links a.lnk { font-weight: 600; }
.ab-hero-img { position: relative; margin: 0; }
.ab-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.ab-hero-img figcaption { position: absolute; left: 18px; bottom: 18px; padding: 7px 14px; border-radius: var(--r-pill); background: rgba(10, 10, 12, .58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 500; }
.ab-facts { margin: clamp(48px, 6vw, 80px) 0 0; }
.ab-facts b { font-size: clamp(34px, 3.6vw, 48px); font-weight: 200; }

.ab-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 72px; align-items: start; }
.ab-story .pg-head { position: sticky; top: 132px; }
.ab-time { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-strong); }
.ab-time li { position: relative; padding: 0 0 52px 36px; }
.ab-time li:last-child { padding-bottom: 4px; }
.ab-time li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.ab-time .yr { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 200; letter-spacing: -.035em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab-time b { display: block; margin: 6px 0; font-size: 19px; font-weight: 600; }
.ab-time p { max-width: 560px; margin: 0; color: var(--muted); }
.ab-time-img { max-width: 280px; margin: 24px 0 0; }
.ab-time-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.ab-time-img figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.ab-family .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.ab-family-img { margin: 0; }
.ab-family-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.ab-family .ey { color: var(--gold); }
.ab-family h2 { margin: 0 0 20px; font-size: clamp(32px, 3.8vw, 52px); font-weight: 200; letter-spacing: -.04em; line-height: 1.04; }
.ab-family h2 b { font-weight: 600; color: #F1DDB4; }
.ab-family-txt > p { margin: 0 0 14px; color: #C9D0DC; text-wrap: pretty; }
.ab-family-txt > p b { color: #fff; }
.pg .ab-quote { margin: 30px 0 0; }
.pg .ab-quote p { color: #fff; font-size: clamp(20px, 1.9vw, 24px); }
.ab-quote footer { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.ab-quote-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(218, 191, 137, .55); }
.pg .ab-quote cite { display: grid; color: #fff; font-size: 15px; }
.ab-quote cite span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.ab-awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-award { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 26px 28px; border-radius: 22px; background: var(--bg); }
.ab-award h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.ab-award p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ab-award .yr { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ab-seal { display: block; width: 128px; height: 128px; margin: 4px 0 26px; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.45); transform-origin: 30% 50%; } /* JPG con fondo blanco y mucho margen: se amplían y el blanco se funde */
.ab-award--main { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(26px, 3.5vw, 44px); background: var(--gold-soft); }
.ab-award--main > .ab-seal { flex: none; width: clamp(150px, 17vw, 210px); height: auto; aspect-ratio: 1; margin: 0; transform: scale(1.3); transform-origin: center; }
.ab-award--main h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.ab-award--main p { max-width: 560px; font-size: 17px; }
.ab-seals { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.ab-seals li { display: grid; justify-items: center; gap: 20px; font-size: 12.5px; font-weight: 600; color: var(--gold-ink); }
.ab-seals .ab-seal { width: 84px; height: 84px; margin: 0; transform: scale(1.5); transform-origin: center; }

.ab-world-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.ab-world-head .pg-head { margin-bottom: 28px; }
.ab-islands { width: 100%; height: auto; filter: brightness(0); opacity: .13; } /* Silueta blanca de las islas, en gris sobre el fondo claro */
.ab-countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; list-style: none; }
.ab-countries li { padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: 14.5px; font-weight: 500; }
.ab-countries .more { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--muted); }

@media (max-width: 900px) {
	.ab-hero > .wrap:first-child, .ab-family .wrap, .ab-world-head { grid-template-columns: minmax(0, 1fr); }
	.ab-story { grid-template-columns: minmax(0, 1fr); }
	.ab-story .pg-head { position: static; }
	.ab-awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ab-islands { max-width: 460px; }
}
@media (max-width: 560px) {
	.ab-time li { padding-left: 26px; padding-bottom: 40px; }
	.ab-awards { grid-template-columns: minmax(0, 1fr); }
	.ab-award--main { flex-direction: column; align-items: flex-start; }
	.ab-seal { width: 104px; height: 104px; }
	.ab-seals { gap: 6px 20px; }
	.ab-seals .ab-seal { width: 68px; height: 68px; }
}

@media (max-width: 900px) {
	.club-hero .wrap { grid-template-columns: minmax(0, 1fr); }
	.mcard-stage { max-width: 360px; margin: 8px auto 24px; }
	.pg-cards, .pg-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pg-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.pg-cards, .pg-contact { grid-template-columns: minmax(0, 1fr); }
	.pg-intro { font-size: 19px; }
	.pg-sec { margin-bottom: 56px; }
	.pg-index a { grid-template-columns: 40px minmax(0, 1fr); padding: 22px 2px; }
	.pg-index .go { display: none; }
}
