/* ==========================================================================
   Miguel Loza y Asociados — estilos del sitio público
   Fuente: Manual de identidad v1.0 + Brief de desarrollo web.
   Paleta: grafito / dorado champán / gris plata / marfil / blanco.
   Tipografía: Cormorant Garamond (titulares) + Inter (lectura e interfaz).
   El dorado es acento: nunca en texto pequeño sobre fondo claro.
   ========================================================================== */

:root {
    --c-grafito:  #2F3035;
    --c-champan:  #D4AF6B;
    --c-oro:      #B8924F;   /* dorado oscurecido: solo titulares grandes sobre claro */
    --c-plata:    #B8B8B8;
    --c-marfil:   #F7F7F7;
    --c-blanco:   #FFFFFF;

    --c-grafito-2: #3A3B41;
    --c-grafito-3: #26272B;
    --c-text:      var(--c-grafito);
    --c-muted:     #5F6066;
    --c-line:      #DEDEDE;
    --c-on-dark:      #F7F7F7;
    --c-on-dark-mute: rgba(247, 247, 247, .7);
    --c-error:     #A93232;

    --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --f-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-logo:  'Lato', var(--f-sans);

    --max:   1200px;
    --nav-h: 96px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
html, body { overflow-x: clip; }   /* evita scroll lateral durante animaciones que entran desde los costados */
body { font-family: var(--f-sans); color: var(--c-text); background: var(--c-blanco); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-champan); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--c-grafito); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-serif); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; color: var(--c-grafito); }
.accent { font-style: italic; color: var(--c-oro); font-weight: 500; }
.on-dark .accent { color: var(--c-champan); }

.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--c-grafito); display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--c-champan); }
.on-dark .eyebrow { color: var(--c-champan); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.9rem; min-height: 48px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: inherit; }
.btn-accent { background: var(--c-champan); color: var(--c-grafito); }
.btn-accent:hover { background: var(--c-grafito); color: var(--c-on-dark); }
.on-dark .btn-accent:hover { background: var(--c-blanco); color: var(--c-grafito); }
.btn-line { border-color: var(--c-grafito); color: var(--c-grafito); background: transparent; }
.btn-line:hover { background: var(--c-grafito); color: var(--c-on-dark); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: var(--c-on-dark); background: transparent; }
.btn-ghost-light:hover { border-color: var(--c-champan); color: var(--c-champan); }

.link-arrow { color: var(--c-grafito); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: .4rem; }
.link-arrow::after { content: '→'; color: var(--c-oro); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--c-on-dark); }
.on-dark .link-arrow::after { color: var(--c-champan); }

/* ── LOGOTIPO PROVISIONAL (reemplazar por archivos maestros) ──────────── */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--c-grafito); font-family: var(--f-logo); font-weight: 700; line-height: 1; text-decoration: none; font-size: 60px; }
.logo-top { font-size: .2em; letter-spacing: .42em; margin: 0 0 .1em .06em; }
.logo-main { font-size: 1em; letter-spacing: .01em; }
.logo-z { position: relative; display: inline-block; }
.logo-z::after { content: ''; position: absolute; left: .34em; top: .3em; width: .54em; height: .06em; background: var(--c-champan); transform: rotate(-44deg); transform-origin: left center; }
.logo-sub { font-size: .2em; letter-spacing: .44em; margin: .45em 0 0 .06em; }
.logo--inv { color: var(--c-blanco); }
.logo-img { display: inline-block; }
.logo-img img { height: 90px; width: auto; display: block; }

/* ── NAVBAR ─────────────────────────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 1000; background: var(--c-grafito); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); }
.brand { text-decoration: none; color: var(--c-blanco); font-family: var(--f-logo); font-weight: 700; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; flex-shrink: 0; }
.brand img { height: 76px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { color: var(--c-on-dark-mute); text-decoration: none; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: color .2s; padding: .4rem 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--c-blanco); }
.nav-links a[aria-current] { box-shadow: inset 0 -1px 0 var(--c-champan); }
.nav-cta { background: var(--c-champan); color: var(--c-grafito) !important; padding: .8rem 1.3rem !important; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--c-blanco); }
.nav-cta-mobile { display: none; }
.has-sub { position: relative; display: flex; align-items: center; gap: .2rem; }
.sub-toggle { background: none; border: 0; color: var(--c-on-dark-mute); cursor: pointer; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu { list-style: none; position: absolute; top: 100%; left: -1.2rem; min-width: 260px; background: var(--c-blanco); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); padding: .6rem 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; border-top: 2px solid var(--c-champan); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; color: var(--c-grafito); padding: .7rem 1.2rem; letter-spacing: .08em; }
.submenu a:hover { background: var(--c-marfil); color: var(--c-grafito); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--c-blanco); }

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero { background: var(--c-marfil); min-height: 680px; display: flex; align-items: center; padding: 4.5rem 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 4.5rem; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); margin: 1.4rem 0 1.5rem; }
.hero-lead { font-size: 1.12rem; color: var(--c-muted); max-width: 560px; font-weight: 300; border-left: 1px solid var(--c-plata); padding-left: 1.2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid var(--c-champan); }
.hero-media img, .hero-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-placeholder { background: var(--c-grafito); display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; color: var(--c-blanco); font-weight: 500; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.7; }
.hero-placeholder em { font-style: normal; color: var(--c-champan); }

/* ── BARRA DE VALORES ───────────────────────────────────────────────── */
.values-bar { background: var(--c-grafito); color: var(--c-on-dark); }
.values-bar ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.values-bar li { padding: 1.8rem 1rem; text-align: center; font-family: var(--f-serif); font-size: 1.35rem; font-style: italic; position: relative; }
.values-bar li + li::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 28px; transform: translateY(-50%); background: rgba(212, 175, 107, .5); }

/* ── SECCIONES ──────────────────────────────────────────────────────── */
.section { padding: 6.5rem 0; }
.section-marfil { background: var(--c-marfil); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 1rem; max-width: 680px; }
.section-head p:not(.eyebrow) { color: var(--c-muted); max-width: 420px; }
.section-cta { margin-top: 3rem; }

/* Quiénes somos */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.intro-grid h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-top: 1rem; }
.intro-text p strong { color: var(--c-grafito); font-weight: 500; }
.intro-text p:not(.eyebrow) { color: var(--c-muted); font-size: 1.12rem; font-weight: 300; margin-bottom: 1.8rem; }
.intro-media img, .media-ph { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.intro-media img { object-position: center 30%; }   /* conserva rostros en fotos verticales */
.intro-media { position: relative; order: -1; }   /* imagen a la izquierda en escritorio */
.intro-media::before { content: ''; position: absolute; inset: 1.2rem 1.2rem -1.2rem -1.2rem; border: 1px solid var(--c-champan); }   /* recuadro dorado, reflejo del hero */
.intro-media img, .intro-media .media-ph { position: relative; }
.media-ph { background: var(--c-marfil); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; color: var(--c-muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 1rem; }

/* ── TARJETAS DE ESPECIALIDADES ─────────────────────────────────────── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.area-card { background: var(--c-blanco); border: 1px solid var(--c-line); padding: 2.2rem 2rem 2rem; display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; position: relative; transition: border-color .25s, box-shadow .25s, transform .25s; }
.area-card::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--c-champan); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.area-card:hover { box-shadow: 0 16px 36px rgba(47, 48, 53, .08); transform: translateY(-3px); }
.area-card:hover::before { transform: scaleX(1); }
.area-icon { width: 44px; height: 44px; color: var(--c-champan); }
.area-icon svg { width: 100%; height: 100%; }
.area-card h3 { font-size: 1.65rem; }
.area-card p { color: var(--c-muted); font-size: .95rem; flex: 1; }

/* ── FILOSOFÍA ──────────────────────────────────────────────────────── */
.philosophy { background: var(--c-grafito); color: var(--c-on-dark); padding: 8rem 0; }
.philosophy .eyebrow { flex-direction: column; align-items: center; gap: 1.4rem; }
.philosophy .eyebrow::before { width: 48px; }   /* única línea decorativa: horizontal, sobre el título */
.philosophy blockquote { font-family: var(--f-serif); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.2; text-align: center; max-width: 900px; margin: 2.5rem auto 6rem; font-weight: 500; color: var(--c-blanco); }
.commitments { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; counter-reset: compromiso; max-width: 1040px; margin: 0 auto; }
.commitments li { counter-increment: compromiso; }
.commitments li::before { content: counter(compromiso, decimal-leading-zero); display: block; font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--c-champan); margin-bottom: 1rem; }
.commitments strong { display: block; font-family: var(--f-serif); font-size: 1.5rem; font-weight: 600; color: var(--c-blanco); margin-bottom: .6rem; }
.commitments span { color: var(--c-on-dark-mute); font-size: .95rem; line-height: 1.7; }

/* ── EQUIPO ─────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.team-card { text-decoration: none; color: inherit; display: block; }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-marfil); border: 1px solid var(--c-line); margin-bottom: 1.2rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; filter: grayscale(.15); }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo .media-ph { height: 100%; aspect-ratio: auto; border: 0; }
.team-card h3 { font-size: 1.6rem; }
.team-role { color: var(--c-muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; font-weight: 500; }

/* ── ARTÍCULOS ──────────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card { background: var(--c-blanco); text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--c-line); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(47, 48, 53, .08); }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-grafito); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.post-img-ph .logo { font-size: 42px; }
.post-img-ph .logo-img img { height: 74px; }
.post-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.post-meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); display: flex; gap: .5rem; flex-wrap: wrap; font-weight: 500; }
.post-meta .cat { color: var(--c-grafito); font-weight: 600; }
.post-card h3 { font-size: 1.5rem; }
.post-card p { color: var(--c-muted); font-size: .93rem; flex: 1; }
.empty-note { color: var(--c-muted); text-align: center; padding: 3rem 1rem; border: 1px dashed var(--c-plata); }

/* ── CTA FINAL ──────────────────────────────────────────────────────── */
.cta-final { background: var(--c-marfil); border-top: 1px solid var(--c-line); text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 820px; margin: 1.2rem auto 1.2rem; }
.cta-final p:not(.eyebrow) { color: var(--c-muted); max-width: 600px; margin: 0 auto 2.4rem; font-size: 1.1rem; font-weight: 300; }
.cta-final .eyebrow { justify-content: center; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--c-grafito-3); color: var(--c-on-dark-mute); padding: 4.5rem 0 2rem; font-size: .9rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand .logo { font-size: 48px; }
.footer-brand .logo-img img { height: 96px; }
.footer-brand p { margin: 1.5rem 0; max-width: 340px; }
.footer-title { font-family: var(--f-sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-champan); margin-bottom: 1.2rem; }
.footer-contact, .footer-links { list-style: none; display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: .2rem; color: var(--c-champan); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--c-champan); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--c-champan); }
.socials svg { width: 16px; height: 16px; }
.site-footer .footer-bottom { padding-top: 1.8rem; display: grid; gap: 1rem; font-size: .8rem; }
.footer-disclaimer { max-width: 820px; color: rgba(247, 247, 247, .55); }
.footer-legal { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.pending { color: rgba(247, 247, 247, .45); font-style: italic; }

/* WhatsApp flotante y cookies */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; }
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1100; max-width: 760px; margin: 0 auto; background: var(--c-grafito); color: var(--c-on-dark); padding: 1.3rem 1.5rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--c-champan); }
.cookie-banner div { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner .btn { padding: .7rem 1.1rem; min-height: 42px; }

/* ── PÁGINAS INTERIORES ─────────────────────────────────────────────── */
.page-head { background: var(--c-marfil); border-bottom: 1px solid var(--c-line); padding: 4.5rem 0 3.8rem; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: 1.1rem; max-width: 860px; }
.page-head .lead strong { color: var(--c-grafito); font-weight: 500; }
.page-head .lead { color: var(--c-muted); margin-top: 1rem; max-width: 680px; font-size: 1.12rem; font-weight: 300; }
.crumbs { font-size: .8rem; color: var(--c-muted); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--c-plata); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 4.5rem; align-items: start; }
.sticky-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1.5rem; }
.aside-box { border: 1px solid var(--c-line); padding: 1.6rem; }
.aside-box h2, .aside-cta h2 { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: 1rem; }
.aside-list { list-style: none; }
.aside-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--c-line); text-decoration: none; font-size: .95rem; }
.aside-list a:hover, .aside-list a[aria-current] { color: var(--c-grafito); font-weight: 600; }
.aside-cta { background: var(--c-grafito); color: var(--c-on-dark); padding: 1.8rem; }
.aside-cta h2 { color: var(--c-champan); }
.aside-cta p { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.25; margin-bottom: 1.3rem; }
.aside-cta .btn { width: 100%; }
.aside-cta small { display: block; margin-top: 1rem; color: var(--c-on-dark-mute); }
.aside-cta a.tel { color: var(--c-on-dark); }

.block + .block { margin-top: 3.5rem; }
.block h2 { font-size: 2.1rem; margin-bottom: 1.2rem; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.check-list li { padding: .8rem 0 .8rem 1.7rem; border-bottom: 1px solid var(--c-line); position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 1.4rem; width: 12px; height: 1px; background: var(--c-oro); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 1px solid var(--c-grafito); padding-top: 1.2rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-serif); font-size: 1.8rem; color: var(--c-oro); display: block; margin-bottom: .4rem; }
.steps strong { display: block; font-size: 1rem; margin-bottom: .3rem; }
.steps span { color: var(--c-muted); font-size: .93rem; }
.two-col .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }

.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; padding: 1.2rem 2rem 1.2rem 0; font-family: var(--f-serif); font-size: 1.35rem; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 1.05rem; font-family: var(--f-sans); font-weight: 300; font-size: 1.5rem; color: var(--c-oro); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.3rem; color: var(--c-muted); }

.prose { font-size: 1.07rem; color: #3C3D42; max-width: 72ch; line-height: 1.7; }
.prose h2 { font-size: 2rem; margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 .7rem; }
.prose .prose-lead { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.3; margin: 0 0 1.6rem; padding-left: 1.2rem; border-left: 2px solid var(--c-champan); }
.prose blockquote strong { font-weight: inherit; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--c-grafito); text-decoration-color: var(--c-champan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { font-family: var(--f-serif); font-size: 1.5rem; font-style: italic; border-left: 2px solid var(--c-champan); padding-left: 1.2rem; margin: 1.8rem 0; color: var(--c-grafito); }
.prose img { margin: 1.5rem 0; }
.prose mark { background: #FBF1DC; color: var(--c-grafito); padding: 0 .2em; }   /* datos pendientes de completar */

/* Nosotros */
.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
.about-split .media-ph, .about-split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-split > div:first-child { position: sticky; top: calc(var(--nav-h) + 2rem); }
.profile-card { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; }

/* Equipo: perfil */
.member { display: grid; grid-template-columns: 380px 1fr; gap: 4.5rem; align-items: start; }
.member-photo { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.member-photo img, .member-photo .media-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.member-facts { display: grid; gap: 1.8rem; margin-top: 2.5rem; }
.member-facts h2 { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: .7rem; }
.member-facts ul { list-style: none; display: grid; gap: .4rem; }
.member-facts li { padding-left: 1.2rem; position: relative; }
.member-facts li::before { content: ''; position: absolute; left: 0; top: .8rem; width: 8px; height: 1px; background: var(--c-oro); }
.member-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Artículos: listado y detalle */
.list-tools { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 2.2rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .6rem 1.1rem; border: 1px solid var(--c-line); color: var(--c-muted); background: var(--c-blanco); font-weight: 500; }
.chip:hover { border-color: var(--c-grafito); color: var(--c-grafito); }
.chip[aria-current] { background: var(--c-grafito); border-color: var(--c-grafito); color: var(--c-on-dark); }
.search { display: flex; border: 1px solid var(--c-line); background: var(--c-blanco); min-width: 280px; }
.search input { flex: 1; border: 0; padding: .75rem 1rem; font: inherit; font-size: .95rem; background: transparent; color: var(--c-text); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--c-grafito); }
.search button { border: 0; background: none; padding: 0 1rem; cursor: pointer; color: var(--c-grafito); }
.search svg { width: 18px; height: 18px; }
.results-note { color: var(--c-muted); margin-bottom: 2rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a { min-width: 44px; text-align: center; padding: .65rem .9rem; border: 1px solid var(--c-line); text-decoration: none; font-size: .88rem; }
.pagination a[aria-current] { background: var(--c-grafito); color: var(--c-on-dark); border-color: var(--c-grafito); }

.art-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
.art-byline { margin-top: 1.6rem; font-size: .8rem; color: var(--c-muted); display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; }
.art-byline a { color: var(--c-grafito); font-weight: 600; text-decoration: none; }
.art-byline a:hover { text-decoration: underline; }
.art-cover { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.art-cover img { width: 100%; max-height: 560px; object-fit: cover; margin-top: -2rem; position: relative; }
.art-aviso { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--c-line); font-size: .86rem; color: var(--c-muted); font-style: italic; }
.related-service { margin-top: 2.5rem; padding: 1.5rem; background: var(--c-marfil); border-left: 2px solid var(--c-champan); display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.related-service span { font-family: var(--f-serif); font-size: 1.35rem; font-weight: 600; }
.share-btns { display: grid; gap: .5rem; }
.share-btn { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border: 1px solid var(--c-line); text-decoration: none; font-size: .88rem; color: var(--c-text); background: var(--c-blanco); cursor: pointer; font-family: inherit; transition: border-color .2s; width: 100%; min-height: 44px; }
.share-btn:hover { border-color: var(--c-grafito); }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4.5rem; align-items: start; }
.contact-info { display: grid; gap: 1.6rem; }
.info-item { display: flex; gap: 1rem; }
.info-item svg { width: 22px; height: 22px; color: var(--c-oro); flex-shrink: 0; margin-top: .2rem; }
.info-item h2 { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: .3rem; }
.info-item a { text-decoration: none; font-size: 1.05rem; }
.info-item a:hover { text-decoration: underline; }
.map-consent { margin-top: 1rem; min-height: 240px; border: 1px dashed var(--c-plata); background: var(--c-marfil); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1.5rem; text-align: center; color: var(--c-muted); font-size: .9rem; }
.map-consent svg { width: 28px; height: 28px; color: var(--c-oro); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-on-dark); cursor: pointer; }
.link-btn:hover { color: var(--c-champan); }
.cookie-state { display: block; margin-top: .4rem; color: var(--c-champan); font-size: .82rem; }
.inventory { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0 1.5rem; }
.inventory th, .inventory td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.inventory th { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); background: var(--c-marfil); }
.table-scroll { overflow-x: auto; }
.map { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.4); margin-top: 1rem; }
.form-card { background: var(--c-marfil); border: 1px solid var(--c-line); padding: 2.6rem; }
.form-card h2 { font-size: 2.2rem; margin-bottom: .5rem; }
.form-card > p { color: var(--c-muted); margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin-bottom: 1.3rem; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .45rem; }
.field label .req { color: var(--c-error); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--c-plata); background: var(--c-blanco); padding: .85rem 1rem; font: inherit; font-size: 1rem; color: var(--c-text); border-radius: 0; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-grafito); box-shadow: 0 0 0 3px rgba(212, 175, 107, .35); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field-err { display: block; color: var(--c-error); font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.field .field-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; font-weight: 400; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin-top: .15rem; accent-color: var(--c-grafito); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--c-muted); margin-top: 1.2rem; }
.alert { padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; border-left: 3px solid; }
.alert-ok { background: #EEF5EF; border-color: #2E7D4F; color: #1F5A38; }
.alert-err { background: #F8ECEC; border-color: var(--c-error); color: #7D2424; }
.alert ul { margin: .5rem 0 0 1.2rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .nav-links { gap: 1.3rem; }
    .nav-links a { letter-spacing: .1em; }
}

@media (max-width: 1000px) {
    .hamburger { display: flex; }
    .nav-cta-mobile { display: inline-flex; margin-left: auto; }
    .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--c-grafito); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
    .nav-links.open { display: flex; }
    .nav-links > li > a { display: block; padding: .95rem 1.5rem; }
    .has-sub { flex-wrap: wrap; }
    .has-sub > a { flex: 1; }
    .sub-toggle { width: 48px; height: 48px; margin-right: .8rem; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%; background: var(--c-grafito-2); border-top: 0; padding: .3rem 0; }
    .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
    .has-sub.open .submenu { display: block; }
    .submenu a { color: var(--c-on-dark-mute); padding: .8rem 2.3rem; }
    .submenu a:hover { background: transparent; color: var(--c-blanco); }
    .nav-cta-item { display: none; }

    .hero { min-height: 0; padding: 3.5rem 0 4.5rem; }
    .hero-grid, .intro-grid, .about-split, .contact-layout, .two-col, .member, .profile-card { grid-template-columns: 1fr; gap: 3rem; }
    .intro-media { order: 0; margin-left: 1.2rem; }   /* en móvil el texto va primero */
    .about-split > div:first-child { position: static; }
    .hero-media { max-width: 440px; }
    .member-photo { position: static; max-width: 380px; }
    .sticky-aside { position: static; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .commitments { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 680px) {
    :root { --nav-h: 68px; }
    body { font-size: 16px; }
    .container { padding: 0 1rem; }
    .site-nav .container { gap: .6rem; }
    .brand { font-size: .68rem; letter-spacing: .08em; max-width: 120px; line-height: 1.3; }
    .brand img { height: 46px; }
    .nav-cta-mobile { padding: .6rem .7rem !important; font-size: .62rem; letter-spacing: .08em; }
    .hamburger { padding: .5rem .2rem; }
    .hero h1 { font-size: clamp(2.25rem, 9.5vw, 2.65rem); }
    .hero-btns .btn, .cta-btns .btn { width: 100%; }
    .hero-media::before { inset: .8rem -.8rem -.8rem .8rem; }
    .intro-media { margin-left: .8rem; }
    .intro-media::before { inset: .8rem .8rem -.8rem -.8rem; }
    .values-bar ul { grid-template-columns: 1fr; }
    .values-bar li { padding: 1rem; font-size: 1.2rem; }
    .values-bar li + li::before { left: 50%; top: 0; width: 28px; height: 1px; transform: translateX(-50%); }
    .section { padding: 4.5rem 0; }
    .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 2.2rem; }
    .posts-grid, .check-list, .form-grid, .two-col .steps { grid-template-columns: 1fr; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .form-card { padding: 1.6rem 1.2rem; }
    .search { min-width: 0; width: 100%; }
    .art-cover { padding: 0; }
    .art-cover img { margin-top: 0; }
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .wa-float { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
    .philosophy { padding: 5.5rem 0; }
    .philosophy blockquote { margin-bottom: 4rem; }
}


/* ── ANIMACIONES ────────────────────────────────────────────────────────
   Generado desde un mapa elemento → efecto (también usado en site.js).
   Solo actúan con html.anim, que el <head> activa si la persona no pidió
   “reducir movimiento”. Si site.js no arranca en 3 s, se quita y todo queda visible. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --ease-wipe: cubic-bezier(.77, 0, .18, 1); }
@keyframes ml-fadeUp   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes ml-fadeDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes ml-fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes ml-growX    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ml-wipeUp   { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ml-frameIn  { from { opacity: 0; transform: translate(-1.2rem, -1.2rem); } to { opacity: 1; transform: none; } }

/* Carga inicial: menú y portada en secuencia */
.anim .site-nav { animation: ml-fadeDown .7s var(--ease) both; }
.anim .hero .eyebrow { animation: ml-fadeUp .8s .2s var(--ease) both; }
.anim .hero .eyebrow::before { transform-origin: left; animation: ml-growX .9s .45s var(--ease) both; }
.anim .hero h1 { animation: ml-fadeUp 1s .35s var(--ease) both; }
.anim .hero h1 .accent { animation: ml-fadeIn 1.4s .85s ease both; }
.anim .hero-lead { animation: ml-fadeUp .9s .6s var(--ease) both; }
.anim .hero-btns { animation: ml-fadeUp .9s .75s var(--ease) both; }
.anim .hero-media img, .anim .hero-placeholder { animation: ml-wipeUp 1.3s .3s var(--ease-wipe) both; }
.anim .hero-media::before { animation: ml-frameIn 1s 1.25s var(--ease) both; }

/* Estado oculto previo (solo opacidad, para que no parpadee antes de que cargue site.js) */
.anim :is(.page-head .container > h1, .page-head .container > *, .section-head h2, .section-head .eyebrow, .section-head > :not(div), .intro-media, .intro-text h2, .intro-text > *, .values-bar li, .area-card, .philosophy blockquote, .philosophy .eyebrow, .commitments li, .team-card, .post-card, .cta-final h2, .cta-final .container > *, .about-split > div:first-child, .block > h2, .block > .eyebrow, .block.prose, .block > .prose, .block > .btn, .profile-card > div:first-child, .profile-card > div:last-child, .member > div:first-child, .member > div:last-child, .check-list li, .steps li, .faq details, .section-cta, .contact-info > *, .form-card, .sticky-aside > *, .list-tools, .related-service, .empty-note, .site-footer .footer-grid > div):not(.in) { opacity: 0; }

/* Transición común mientras se revela; al terminar (.rv-done) vuelven las transiciones propias */
.anim .rv:not(.rv-done) { transition: opacity .9s var(--ease) var(--d, 0s), transform 1.05s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s), clip-path 1.1s var(--ease-wipe) var(--d, 0s); }

/* Efectos */
.anim .rv-up:not(.in)    { transform: translateY(40px); }
.anim .rv-left:not(.in)  { transform: translateX(-64px); }
.anim .rv-right:not(.in) { transform: translateX(64px); }
.anim .rv-zoom:not(.in)  { transform: scale(.94); }
.anim .rv-blur:not(.in)  { filter: blur(10px); transform: translateY(10px); }
.anim .rv-tilt           { transform-origin: 50% 0; }
.anim .rv-tilt:not(.in)  { transform: perspective(900px) rotateX(12deg) translateY(56px); }
.anim .rv-mask           { clip-path: inset(-20% -5% -25% -5%); }
.anim .rv-mask:not(.in)  { clip-path: inset(0 0 100% 0); transform: translateY(22px); }

/* Palabra por palabra */
.anim .rv-words .w { display: inline-block; opacity: 0; transform: translateY(.55em); filter: blur(4px);
    transition: opacity .7s ease, transform .9s var(--ease), filter .7s ease; transition-delay: calc(var(--d, 0s) + var(--wi) * 55ms); }
.anim .rv-words.in .w { opacity: 1; transform: none; filter: none; }

/* Imágenes: barrido horizontal (Quiénes somos, Nosotros) o vertical (perfiles) */
.anim :is(.intro-media, .about-split > div) img { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-wipe) .2s; }
.anim :is(.member > div, .profile-card > div) img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-wipe) .2s; }
.anim :is(.intro-media, .about-split > div, .member > div, .profile-card > div).in img { clip-path: inset(0 0 0 0); }
.anim .intro-media::before { opacity: 0; transform: translate(1.2rem, -1.2rem); transition: opacity .8s 1s, transform 1s 1s var(--ease); }
.anim .intro-media.in::before { opacity: 1; transform: none; }

/* Íconos de especialidades: se dibujan trazo a trazo */
.anim .area-card.rv .area-icon svg :is(path, circle, rect, line, polyline) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0s) + .35s); }
.anim .area-card.in .area-icon svg :is(path, circle, rect, line, polyline) { stroke-dashoffset: 0; }

/* Números 01·02·03 de la filosofía: se deslizan desde la izquierda */
.anim .commitments li.rv::before { opacity: 0; transform: translateX(-16px); transition: opacity .7s, transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); }
.anim .commitments li.in::before { opacity: 1; transform: none; }

/* La línea dorada de cada etiqueta se dibuja al aparecer */
.anim .eyebrow.rv::before { transition: transform .9s var(--ease) calc(var(--d, 0s) + .3s); transform-origin: left; }
.anim .philosophy .eyebrow.rv::before { transform-origin: center; }
.anim .eyebrow.rv:not(.in)::before { transform: scaleX(0); }

/* Menú con sombra al desplazarse */
.site-nav { transition: box-shadow .3s ease; }
.site-nav.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
