/*
Theme Name: MB Tema — Milagros Barrios
Theme URI: https://psicologamilagrosbarrios.com/
Author: García Diseño Web
Author URI: https://garciawebstudio.com
Description: Tema del sitio de Milagros Barrios, Psicóloga Clínica. Reproduce exactamente el estilo «Cálido» del sitio en Astro (landing + blog), para que la migración a WordPress sea invisible para quien visita la web. Sin page builders ni dependencias. El contenido de la landing lo aporta el plugin MB Landing.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mb-tema
*/

/* ══════════════════════════════════════════════════════════════════════════
   ⚠️ LO QUE VIENE A CONTINUACIÓN ES UNA COPIA LITERAL, BYTE A BYTE, de
   `src/styles/global.css` del sitio Astro. NO se edita a mano.

   Requisito del cliente (2026-07-27): «la página debe ser exactamente igual
   que la que tenemos hoy». Por eso el CSS no se reinterpreta: se copia.

   Si algún día hubiera que regenerarlo:
     cabecera + C:\dev\milagros-site\src\styles\global.css + añadidos de WP
   Referencia para comparar el resultado: referencia/index-actual.html y
   referencia/estilos-actual.css (la web tal como está publicada hoy).

   Los añadidos que WordPress necesita y Astro no tenía van AL FINAL, marcados.
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   Milagros Barrios — Estilos Globales
   Estilo «Cálido / Suave» (el aprobado por el cliente · antes estilo-3)
   Poppins · pasteles, degradados, formas orgánicas muy redondeadas
   Color: AZUL del logo = principal · VERDE salvia = secundario
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg:        #FCFAF6;
    --mint:      #E9F1E7;
    --mint-2:    #D6E6D2;
    /* Verde salvia — color SECUNDARIO (bandas suaves, botones «soft») */
    --sage:      #86A47F;
    --sage-dark: #6E8D67;
    --peach:     #F3D2B4;
    --peach-2:   #E8A87C;
    --lav:       #E6E0F1;
    --sky:       #DCE9EC;
    /* Azul del logo — color PRINCIPAL (botones, CTAs, acentos) */
    --blue:      #768F97;
    --blue-mid:  #5E7B84;
    --blue-dark: #4F676F;
    --ink:       #41414B;
    --ink-soft:  #7C7A86;
    --white:     #ffffff;
    --radius:    26px;
    --radius-lg: 40px;
    --ease:      cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-2:    cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1160px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--blue-dark); }

/* Las anclas del menú no quedan tapadas por el header fijo */
[id] { scroll-margin-top: 90px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.narrow { max-width: 800px; }

.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 12px; }
.chip { display: inline-block; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(65,65,75,0.08); margin-bottom: 24px; }

/* Botones — primario AZUL */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue-mid); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer; box-shadow: 0 8px 22px rgba(94,123,132,0.35); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease-2), background 0.25s ease; }
.btn:hover { background: var(--blue-dark); transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 28px rgba(79,103,111,0.4); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
/* Botón «soft» — secundario VERDE */
.btn-soft { background: var(--mint-2); color: var(--sage-dark); box-shadow: none; }
.btn-soft:hover { background: #C6DBC1; color: var(--sage-dark); }
.btn-white { background: #fff; color: var(--blue-dark); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.btn-white:hover { background: #fff; color: var(--blue-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(252,250,246,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-dot { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--peach-2), var(--blue)); flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.nav a:hover { color: var(--blue-dark); }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 11px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 3px; transition: transform 0.3s var(--ease-2), opacity 0.3s ease; }

/* Hero */
.soft-hero { position: relative; overflow: hidden; padding: 50px 0 40px; background: linear-gradient(170deg, var(--mint) 0%, var(--bg) 60%); }
.soft-hero .blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: 0; }
.soft-hero .b1 { width: 340px; height: 340px; background: var(--peach); opacity: 0.35; top: -80px; right: -60px; }
.soft-hero .b2 { width: 300px; height: 300px; background: var(--lav); opacity: 0.4; bottom: -120px; left: -90px; }
.soft-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; z-index: 1; }
.soft-hero-copy h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); margin-bottom: 18px; }
.soft-hero-copy .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36ch; margin-bottom: 28px; }
.soft-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.soft-mini { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--blue-dark); font-weight: 500; }

.soft-hero-media { display: flex; justify-content: center; position: relative; }
.photo-ring { position: relative; width: min(100%, 380px); }
.photo-ring::before { content: ""; position: absolute; inset: -18px; background: linear-gradient(135deg, var(--peach), var(--sky)); border-radius: 50% 50% 48% 52% / 55% 45% 55% 45%; z-index: 0; }
.photo-ring img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: 48% 52% 46% 54% / 46% 46% 54% 54%; }
.ring-2::before { background: linear-gradient(135deg, var(--lav), var(--sky)); }
.pill-badge { position: absolute; z-index: 2; bottom: 20px; left: 6px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 26px rgba(65,65,75,0.14); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #5faf63; box-shadow: 0 0 0 0 rgba(95,175,99,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,175,99,0.5); } 70% { box-shadow: 0 0 0 10px rgba(95,175,99,0); } 100% { box-shadow: 0 0 0 0 rgba(95,175,99,0); } }

.tags-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; z-index: 1; }
.tags-row span { background: rgba(255,255,255,0.7); border: 1px solid var(--sky); color: var(--blue-dark); font-size: 13.5px; font-weight: 500; padding: 7px 16px; border-radius: 999px; }

/* Secciones */
.soft-section { padding: 74px 0; }
.soft-tint { background: var(--mint); }
.center-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.center-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* Dolor */
.soft-pain { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.soft-pain li { background: var(--white); border-radius: var(--radius); padding: 16px 22px 16px 52px; position: relative; box-shadow: 0 4px 16px rgba(65,65,75,0.05); }
.soft-pain li::before { content: "✿"; position: absolute; left: 20px; top: 15px; color: var(--peach-2); }
.soft-note { text-align: center; font-size: 1.4rem; font-weight: 500; line-height: 1.5; max-width: 640px; margin: 0 auto; }
.soft-note strong { color: var(--blue-dark); font-weight: 600; }

/* Cards */
.soft-cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
.soft-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 8px 26px rgba(65,65,75,0.06); transition: transform 0.35s var(--ease); text-align: center; }
.soft-card:hover { transform: translateY(-6px); }
.chip-ico { width: 58px; height: 58px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--blue-dark); }
.chip-ico svg { width: 28px; height: 28px; }
.ico-1 { background: var(--peach); } .ico-2 { background: var(--sky); } .ico-3 { background: var(--lav); }
.soft-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.soft-card p { color: var(--ink-soft); font-size: 15px; }

/* Pasos */
.soft-steps { display: grid; grid-template-columns: 1fr; gap: 22px; }
.soft-step { background: var(--white); border-radius: var(--radius); padding: 30px 26px; text-align: center; box-shadow: 0 8px 26px rgba(65,65,75,0.06); }
.step-bubble { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sage)); box-shadow: 0 8px 20px rgba(94,123,132,0.35); }
.soft-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.soft-step p { color: var(--ink-soft); font-size: 15px; }

/* Sobre mí */
.soft-about { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.soft-about-media { display: flex; flex-direction: column; align-items: center; }
.soft-about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.soft-about-copy > p { color: var(--ink-soft); margin-bottom: 22px; }
.soft-certs { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.soft-certs li { background: var(--white); border-radius: 16px; padding: 12px 18px 12px 42px; position: relative; font-size: 15px; box-shadow: 0 4px 14px rgba(65,65,75,0.05); }
.soft-certs li::before { content: "✓"; position: absolute; left: 18px; top: 12px; color: var(--blue-dark); font-weight: 700; }
.cert-flag { display: inline-block; width: 18px; height: 13px; margin-left: 4px; vertical-align: -1px; border-radius: 2.5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(65,65,75,0.15); }
.cert-flag svg { display: block; width: 100%; height: 100%; }
.soft-cedula { display: block; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
/* Cédula bajo la foto, en negrita (petición del cliente: que no pase desapercibida) */
.about-cedula { margin-top: 30px; text-align: center; font-size: 15.5px; color: var(--ink); }
.about-cedula strong { font-weight: 700; }

/* Tarifas */
.soft-price { background: var(--white); border-radius: var(--radius); padding: 34px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 8px 26px rgba(65,65,75,0.06); position: relative; transition: transform 0.35s var(--ease); }
.soft-price:hover { transform: translateY(-6px); }
.soft-price.featured { background: linear-gradient(160deg, var(--sky), var(--white)); outline: 2px solid var(--blue-mid); }
.soft-tag { position: absolute; top: -13px; background: var(--blue-mid); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 15px; border-radius: 999px; }
.soft-amount { font-size: 2.6rem; font-weight: 700; color: var(--blue-dark); line-height: 1; }
.soft-per { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.soft-price h3 { font-size: 1.2rem; margin-bottom: 6px; }
.soft-price p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; flex-grow: 1; }

/* Testimonios */
.soft-quote { background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 8px 26px rgba(65,65,75,0.06); }
.stars { color: var(--peach-2); letter-spacing: 2px; margin-bottom: 12px; }
.soft-quote blockquote { font-size: 15.5px; color: var(--ink); margin-bottom: 18px; line-height: 1.6; }
.soft-quote figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--peach-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.soft-quote figcaption small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; }

/* FAQ */
.soft-faq { display: grid; gap: 14px; }
.soft-faq details { background: var(--white); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(65,65,75,0.05); overflow: hidden; }
.soft-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.soft-faq summary::-webkit-details-marker { display: none; }
.soft-faq summary::after { content: "+"; font-size: 22px; color: var(--blue-dark); transition: transform 0.3s var(--ease-2); flex-shrink: 0; }
.soft-faq details[open] summary::after { transform: rotate(135deg); }
.soft-faq p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }

/* CTA */
.soft-cta { margin: 40px 24px; }
.soft-cta .container { background: linear-gradient(135deg, var(--blue), var(--peach-2)); border-radius: var(--radius-lg); padding: 72px 32px; text-align: center; color: #fff; max-width: 1000px; }
.soft-cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; color: #fff; }
.soft-cta p { color: rgba(255,255,255,0.92); margin-bottom: 28px; }

/* Footer */
.site-footer { background: #fff; padding: 56px 0 26px; border-top: 1px solid var(--mint-2); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--mint-2); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-weight: 700; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); }
.footer-col h4 { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer-col p { font-size: 14.5px; margin-bottom: 7px; }
.footer-col a { color: var(--blue-dark); }
.footer-col a:hover { color: var(--ink); }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-ico { width: 17px; height: 17px; flex: none; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--ink-soft); }
.footer-credito strong { font-weight: 600; color: var(--blue-dark); }
.footer-credito a { color: var(--blue-dark); font-weight: 600; }
.footer-credito a:hover { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { font-size: 13px; color: var(--ink-soft); }
.footer-legal a:hover { color: var(--blue-dark); }

/* Float CTA — verde de WhatsApp (marca, no se toca) */
.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 9998; display: inline-flex; align-items: center; gap: 9px; background: #25D366; color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgba(37,211,102,0.42); transition: transform 0.3s var(--ease); }
.float-cta:hover { transform: translateY(-3px) scale(1.03); }
.float-cta svg { width: 22px; height: 22px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-2), transform 0.7s var(--ease-2); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .pulse { animation: none; } * { scroll-behavior: auto !important; } }

/* Responsive */
@media (min-width: 720px) {
    .soft-cards { grid-template-columns: repeat(3, 1fr); }
    .soft-steps { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 940px) {
    .soft-hero { padding: 80px 0 60px; }
    .soft-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 54px; }
    .soft-about { grid-template-columns: 0.9fr 1.1fr; }
    .soft-section { padding: 100px 0; }
}
@media (max-width: 939px) {
    .nav-toggle { display: flex; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 14px 30px rgba(65,65,75,0.1); border-radius: 0 0 24px 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-2); }
    .site-header.nav-open .nav { max-height: 460px; }
    .nav a { padding: 15px 24px; }
    .nav a.btn { margin: 12px 24px; }
    .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 520px) { .float-cta span { display: none; } .float-cta { padding: 14px; } }

/* ══════════════════════════════════════════════════════════════════════════
   BLOG — listado (/blog/) y artículo (/blog/slug/)
   ══════════════════════════════════════════════════════════════════════════ */
/* Cabecera del listado */
.blog-head { padding: 64px 0 6px; text-align: center; background: linear-gradient(170deg, var(--mint) 0%, var(--bg) 75%); }
.blog-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.blog-head p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 34px; }
.blog-list { padding-top: 34px; }
.blog-vacio { text-align: center; color: var(--ink-soft); }

/* Tarjetas */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 26px rgba(65,65,75,0.06); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease-2); }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(65,65,75,0.11); }
.blog-card-strip { height: 86px; position: relative; }
.strip-1 { background: linear-gradient(135deg, var(--peach), var(--sky)); }
.strip-2 { background: linear-gradient(135deg, var(--sky), var(--lav)); }
.strip-3 { background: linear-gradient(135deg, var(--lav), var(--peach)); }
.blog-card-strip .chip { position: absolute; left: 20px; bottom: -16px; margin: 0; font-size: 12.5px; padding: 7px 14px; }
.blog-card-body { padding: 32px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-fecha { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.blog-card h2 { font-size: 1.22rem; margin-bottom: 8px; }
.blog-card-body > p { color: var(--ink-soft); font-size: 15px; flex: 1; margin-bottom: 18px; }
.blog-card-leer { color: var(--blue-dark); font-weight: 600; font-size: 14.5px; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Vista previa (/preview/ — revisión del cliente, sin enlaces ni indexado) */
.preview-banner { background: var(--peach); color: var(--ink); text-align: center; font-size: 14px; font-weight: 600; padding: 10px 20px; }

/* Artículo */
.post-head { padding: 62px 0 46px; text-align: center; }
.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); max-width: 820px; margin: 0 auto 16px; }
.post-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; }
.post-portada { max-width: 820px; margin: 44px auto -6px; padding: 0 24px; }
.post-portada img { width: 100%; border-radius: var(--radius); }
.post-body { max-width: 720px; margin: 0 auto; padding: 46px 24px 20px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 42px; }
.prose h3 { font-size: 1.2rem; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 26px; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--blue-mid); font-weight: 600; }
.prose a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { background: var(--mint); border-left: 4px solid var(--sage); border-radius: 0 18px 18px 0; padding: 18px 22px; }
.prose img { border-radius: var(--radius); }
.post-volver { display: inline-block; margin-top: 36px; color: var(--blue-dark); font-weight: 600; font-size: 14.5px; }
.post-volver:hover { color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════════════
   INTRO · MAREA — splash de bienvenida (se muestra 1 vez por sesión)
   z-index muy alto para cubrir header (1000) y botón flotante (9998).
   ══════════════════════════════════════════════════════════════════════════ */
/* Reposo: cubre toda la pantalla. Salida: desvanecimiento (fade). */
.intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; background: #F7F6F3; opacity: 1; transition: opacity 0.9s ease; }
.intro[hidden] { display: none; }
.intro.done { opacity: 0; }
.intro .mark { display: flex; flex-direction: column; align-items: center; gap: 26px; position: relative; z-index: 2; }
.intro .ico { width: clamp(96px, 12vw, 146px); }
.intro .ghost { fill: #D3DDDF; }
.intro .water { animation: tide 2.15s .35s cubic-bezier(.5,0,.25,1) forwards; transform: translateY(250px); }
.intro .water .w1 { animation: drift 3.2s linear infinite; }
.intro .water .w2 { animation: drift 4.6s linear infinite reverse; }
.intro .word { height: clamp(26px, 3.4vw, 42px); width: auto; margin-top: 4px; opacity: 0; transform: translateY(10px); animation: rise .9s 1.8s cubic-bezier(.2,.8,.2,1) forwards; }
.intro .flood { position: absolute; inset: 0; transform: translateY(100%); animation: flood .95s 2.35s cubic-bezier(.6,0,.3,1) forwards; }
.intro .flood svg { width: 100%; height: 100%; }
@keyframes tide { to { transform: translateY(0); } }
@keyframes drift { to { transform: translateX(-160px); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes flood { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* ══════════════════════════════════════════════════════════════════════════
   AÑADIDOS DE WORDPRESS — lo que Astro no necesitaba.
   Nada de aquí abajo cambia el aspecto de la web tal como está hoy: son
   elementos que en Astro no existían (paginación, editor de bloques, barra de
   administración) o mejoras de accesibilidad.
   ══════════════════════════════════════════════════════════════════════════ */

/* Enlace de salto al contenido, para lectores de pantalla */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; top: 12px; left: 12px; z-index: 10000; width: auto; height: auto; clip: auto; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 26px rgba(65,65,75,0.18); font-weight: 600; }

/* Menú: marca en qué página estás */
.nav a.activo { color: var(--blue-dark); font-weight: 600; }

/* Tarjeta del blog con imagen destacada (en Astro no existía la opción) */
.blog-card-strip.con-foto { height: 168px; }
.blog-card-strip.con-foto img { width: 100%; height: 100%; object-fit: cover; }

/* Paginación del listado del blog */
.blog-paginacion { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.blog-paginacion .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--white); color: var(--ink-soft); font-size: 14.5px; font-weight: 600; box-shadow: 0 4px 16px rgba(65,65,75,0.05); transition: transform 0.25s var(--ease), color 0.2s ease; }
.blog-paginacion .page-numbers:hover { color: var(--blue-dark); transform: translateY(-2px); }
.blog-paginacion .page-numbers.current { background: var(--blue-mid); color: #fff; box-shadow: 0 8px 22px rgba(94,123,132,0.35); }

/* Navegación entre artículos */
.post-nav { max-width: 720px; margin: 10px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.post-nav a { color: var(--blue-dark); font-weight: 600; font-size: 14.5px; max-width: 46ch; }
.post-nav a:hover { color: var(--ink); }

/* Editor de bloques: que lo que escriba Milagros no se salga del diseño */
.prose blockquote > * + * { margin-top: 12px; }
.prose figure { margin: 0; }
.prose figure img { width: 100%; }
.prose figcaption, .prose .wp-element-caption { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignleft { float: left; margin: 6px 22px 16px 0; max-width: 50%; }
.prose .alignright { float: right; margin: 6px 0 16px 22px; max-width: 50%; }
.prose .alignwide, .prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; padding: 0 24px; }
.prose .wp-block-separator { border: none; border-top: 1px solid var(--mint-2); margin: 38px auto; max-width: 160px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; background: var(--blue-mid); color: #fff; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 22px rgba(94,123,132,0.35); }
.prose .wp-block-button__link:hover { background: var(--blue-dark); }
.prose pre { background: var(--white); border-radius: 18px; padding: 18px 22px; overflow-x: auto; font-size: 14.5px; box-shadow: 0 4px 16px rgba(65,65,75,0.05); }
.prose code { background: var(--mint); border-radius: 6px; padding: 2px 6px; font-size: 0.92em; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--mint-2); padding: 10px 14px; text-align: left; }
.prose th { background: var(--mint); font-weight: 600; }
.prose .wp-block-embed__wrapper, .prose .wp-block-embed iframe { max-width: 100%; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.prose .wp-block-gallery figure { margin: 0; }
@media (max-width: 620px) {
    .prose .alignleft, .prose .alignright { float: none; margin: 0; max-width: 100%; }
}

/* Página 404 */
.error-404 { padding: 90px 0 70px; text-align: center; }
.error-404 h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.error-404 p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 30px; }

/* La barra de administración de WordPress no debe tapar el header pegajoso */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
