/* ---------- Base ---------- */
:root {
    --radius: 1rem;
    --primary-dark: color-mix(in srgb, var(--bs-primary) 65%, #000);
    --shadow-soft: 0 .5rem 1.5rem rgba(16, 24, 40, .08);
    --shadow-lift: 0 1rem 2.5rem rgba(16, 24, 40, .14);
    --bs-body-font-family: var(--font-body, system-ui, sans-serif);
    --bs-body-bg: #fff;
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: var(--font-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .navbar-brand, .btn { font-family: var(--font-heading); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}
.btn { border-radius: 50rem; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }

/* ---------- Navegación ---------- */
.site-nav {
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding-block: .75rem;
}
.site-nav .navbar-brand { font-weight: 800; letter-spacing: -.02em; color: var(--bs-primary); }
.site-nav .nav-link {
    font-weight: 500; border-radius: 50rem; padding: .45rem 1rem !important; color: #344054;
    transition: background .15s, color .15s;
}
.site-nav .nav-link:hover { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }

/* ---------- Portada ---------- */
.hero {
    position: relative; min-height: 36rem; overflow: hidden; color: #fff; text-align: left;
    display: flex; align-items: center; background: #193d35;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(16, 43, 36, .94) 0%, rgba(16, 43, 36, .78) 44%, rgba(16, 43, 36, .16) 100%);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-inner { padding-block: 6rem; position: relative; z-index: 1; }
.hero-copy { max-width: 46rem; }
.hero-badge {
    display: inline-block; padding: .4rem 0; margin-bottom: 1.3rem; font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: #f0c974;
}
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; max-width: 13ch; margin: 0 0 1.25rem; }
.hero-text { font-size: 1.1rem; max-width: 38rem; margin: 0 0 2rem; color: rgba(255, 255, 255, .88); }
.hero .btn-light { color: #193d35; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-alt { background: #f2f4ed; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
.section-title::after {
    content: ""; display: block; width: 2.8rem; height: .2rem; margin-top: .8rem;
    background: var(--site-accent);
}
.text-center .section-title::after { margin-inline: auto; }
.eyebrow { margin-bottom: .75rem; color: var(--bs-primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.profile-copy { font-size: 1.05rem; color: #46534c; }
.profile-portrait { max-width: 24rem; margin-inline: auto; aspect-ratio: 4 / 5; overflow: hidden; background: #e8eee8; }
.profile-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.profile-portrait-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: #275c4a; font-family: var(--font-heading); font-size: 5rem; background: linear-gradient(145deg, #edf1e9, #dce7dc); }
.scope-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--site-accent); background: #f7f5ed; color: #46534c; font-size: .9rem; }
.services-heading { margin-bottom: 2.5rem; }
.contact-cta { background: #275c4a; color: #fff; }
.contact-cta .eyebrow { color: #f0c974; }
.contact-cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 600; }
.contact-cta p:not(.eyebrow) { color: rgba(255, 255, 255, .78); }

/* ---------- Tarjetas ---------- */
.card {
    border: 1px solid rgba(39, 92, 74, .14); border-radius: .35rem; overflow: hidden; background: #fff;
    box-shadow: none; transition: border-color .2s, transform .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(39, 92, 74, .4); box-shadow: none; }
.card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }
.service-card .card-img-top { aspect-ratio: 4 / 3; }
.service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 50%;
    background: #f2f4ed;
    color: var(--bs-primary);
}
.news-date { font-size: .85rem; font-weight: 600; color: var(--bs-primary); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Pie ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; }
.site-footer a { color: #fff; text-decoration: none; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
    border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .15s, transform .15s;
}
.social-link:hover { background: var(--bs-primary); transform: translateY(-3px); }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .card, .btn, .social-link { transition: none; }
}

/* ---------- Paginación ---------- */
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-color: var(--bs-primary); --bs-pagination-border-radius: 50rem; gap: .25rem; }
.page-link { border-radius: 50rem !important; border: 0; }

/* ---------- Contenido de artículos ---------- */
.article-body { font-size: 1.1rem; }
.article-body h2 { font-size: 1.7rem; font-weight: 800; }
.article-body h3 { font-size: 1.3rem; font-weight: 700; }
.article-figure { margin: 2rem 0; }
.article-figure { text-align: center; }
.article-figure img { display: block; margin-inline: auto; max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.article-figure figcaption { margin-top: .6rem; text-align: center; font-size: .9rem; color: #667085; }
.article-quote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: .3rem solid var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.2rem; font-style: italic; }
.article-quote p { margin: 0; }
.article-quote footer { margin-top: .5rem; font-size: .9rem; font-style: normal; color: #667085; }
.article-quote footer::before { content: "— "; }
.article-video { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }

.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.article-hero { display: block; margin-inline: auto; max-width: 100%; height: auto; }

@media (max-width: 767.98px) {
    .hero { min-height: 38rem; }
    .hero::after { background: linear-gradient(90deg, rgba(16, 43, 36, .92), rgba(16, 43, 36, .62)); }
    .hero-inner { padding-block: 5rem; }
}
