/*
Theme Name: Human Perú
Theme URI: https://humanperu.org.pe
Author: Human Perú
Description: Theme personalizado para la ONG Human Perú - Promoviendo la salud mental
Version: 1.0.0
Text Domain: humanperu
*/

/* ══════════════════════════════════════════════════════════════════
   1. VARIABLES CSS
   ══════════════════════════════════════════════════════════════════
   Fuente única de verdad para colores, tipografías, espaciados
   y radios del theme. TODOS los estilos referencian estas variables.
   Nunca usar un valor literal de color fuera de :root.
   ══════════════════════════════════════════════════════════════════ */

:root {
    /* ── Paleta de colores de marca ──────────────────────────── */
    --hp-orange: #e8833a;
    --hp-orange-dark: #d4732e; /* Hover de botones naranja */
    --hp-yellow: #f5b731;
    --hp-blue: #2b5f8a;
    --hp-blue-light: #3470a0; /* Hover de botones azul */
    --hp-dark-blue: #1b3a5c;
    --hp-navy: #0f2a44;
    --hp-cream: #fff8f0;
    --hp-light: #f5f3ef;

    /* ── Texto ───────────────────────────────────────────────── */
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --text-on-dark: #ccddee; /* Texto claro sobre fondos oscuros */

    /* ── Tipografías ─────────────────────────────────────────── */
    --font-heading: "Poppins", sans-serif;
    --font-body: "Nunito", sans-serif;

    /* ── Espaciado ───────────────────────────────────────────── */
    --section-gap: 80px;
    --section-gap-sm: 50px; /* Gap reducido para móvil */

    /* ── Bordes y sombras ────────────────────────────────────── */
    --card-radius: 14px;
    --btn-radius: 30px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);

    /* ── Transiciones ────────────────────────────────────────── */
    --transition: 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════
   2. RESET Y BASE
   ══════════════════════════════════════════════════════════════════
   Normaliza el comportamiento entre navegadores y establece los
   estilos base del documento. Cada elemento parte de cero.
   ══════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Evita zoom automático de texto en iOS */
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Evitar scroll horizontal por elementos desbordados */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hp-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--hp-orange);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* Estilos de foco visibles para accesibilidad (teclado) */
:focus-visible {
    outline: 3px solid var(--hp-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ocultar el outline cuando se navega con mouse */
:focus:not(:focus-visible) {
    outline: none;
}

/* Clase para ocultar visualmente pero mantener para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ══════════════════════════════════════════════════════════════════
   3. TIPOGRAFÍA
   ══════════════════════════════════════════════════════════════════
   Headings usan Poppins (Bold/ExtraBold).
   Cuerpo de texto usa Nunito (Regular/Medium/SemiBold).
   Tamaños en móvil; se escalan en las media queries del final.
   ══════════════════════════════════════════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--hp-blue);
    line-height: 1.25;
    margin-bottom: 16px;
}

/* Tamaños móvil (se agrandan en tablet/desktop) */
h1 {
    font-size: 32px;
    font-weight: 800;
}

h2 {
    font-size: 26px;
    font-weight: 700;
}

h3 {
    font-size: 22px;
    font-weight: 700;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: var(--text-dark);
}

p:last-child {
    margin-bottom: 0;
}

/* Texto secundario / descripciones */
.text-secondary {
    color: var(--text-medium);
}

.text-light {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

/* Etiqueta / tag pequeña (fechas, categorías, meta) */
.tag {
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.tag--orange {
    background-color: rgba(232, 131, 58, 0.12);
    color: var(--hp-orange);
}

.tag--blue {
    background-color: rgba(43, 95, 138, 0.1);
    color: var(--hp-blue);
}

/* ══════════════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
   ══════════════════════════════════════════════════════════════════
   Clases reutilizables para contenedores, secciones y grillas.
   Se usan en todos los templates del theme.
   ══════════════════════════════════════════════════════════════════ */

/* Contenedor centrado — Ancho máximo con padding lateral */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Sección con espaciado vertical estándar */
.section {
    padding-top: var(--section-gap-sm);
    padding-bottom: var(--section-gap-sm);
}

/* Variante de sección con fondo alterno (gris claro cálido) */
.section--alt {
    background-color: var(--hp-light);
}

/* Variante de sección con fondo crema (cálido) */
.section--cream {
    background-color: var(--hp-cream);
}

/* Encabezado de sección centrado (título + subtítulo) */
.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.section__header h2 {
    margin-bottom: 12px;
}

.section__header p {
    color: var(--text-medium);
    font-size: 16px;
}

/* ── Grillas ─────────────────────────────────────────────────── */
/* En móvil: 1 columna. Se expanden con media queries más abajo. */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr; /* Móvil: 1 columna */
}

/* ══════════════════════════════════════════════════════════════════
   5. BOTONES
   ══════════════════════════════════════════════════════════════════
   Sistema de botones reutilizable.
   .btn-primary → naranja (CTAs principales)
   .btn-secondary → outline azul (acciones secundarias)
   .btn-large → versión más grande para heros
   ══════════════════════════════════════════════════════════════════ */

/* Base compartida por todos los botones */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--btn-radius);
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition),
        color var(--transition),
        transform 0.2s ease,
        box-shadow var(--transition);
}

/* ── Botón primario (naranja) ────────────────────────────────── */

.btn-primary {
    color: #ffffff;
    background-color: var(--hp-orange);
    border: 2px solid var(--hp-orange);
    box-shadow: 0 4px 12px rgba(232, 131, 58, 0.25);
}

.btn-primary:hover {
    background-color: var(--hp-orange-dark);
    border-color: var(--hp-orange-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 131, 58, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ── Botón secundario (outline azul) ─────────────────────────── */

.btn-secondary {
    color: var(--hp-blue);
    background-color: transparent;
    border: 2px solid var(--hp-blue);
}

.btn-secondary:hover {
    background-color: var(--hp-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43, 95, 138, 0.25);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ── Variante grande (heros, CTAs importantes) ───────────────── */

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* ── Botón blanco (para fondos oscuros) ──────────────────────── */

.btn-white {
    color: var(--hp-blue);
    background-color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background-color: var(--hp-cream);
    border-color: var(--hp-cream);
    color: var(--hp-blue);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════
   6. TARJETAS
   ══════════════════════════════════════════════════════════════════
   Componente base reutilizable para servicios, blog, equipo, etc.
   ══════════════════════════════════════════════════════════════════ */

.card {
    background-color: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Esquinas redondeadas afecten a las imágenes */
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card__body {
    padding: 24px;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card__text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card__meta {
    font-size: 13px;
    color: var(--text-light);
}

/* Variante de tarjeta con fondo crema */
.card--cream {
    background-color: var(--hp-cream);
}

/* Variante con borde superior de color */
.card--bordered {
    border-top: 4px solid var(--hp-orange);
}

/* Variante con ícono centrado arriba (para servicios) */
.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--hp-orange);
    background-color: rgba(232, 131, 58, 0.1);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

/* ══════════════════════════════════════════════════════════════════
   7. NAVBAR
   ══════════════════════════════════════════════════════════════════
   Barra de navegación fija. Incluye:
   - Logo + menú desktop + botón CTA
   - Hamburguesa y panel lateral para móvil
   - Estado .navbar--scrolled con sombra
   ══════════════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    transition:
        box-shadow var(--transition),
        background-color var(--transition);
}

.navbar--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    transition: padding var(--transition);
}

.navbar--scrolled .navbar__container {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ── Logo ─────────────────────────────────────────────────────── */

.navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 2;
}

.navbar__logo img {
    height: 42px;
    width: auto;
    transition: height var(--transition);
}

.navbar--scrolled .navbar__logo img {
    height: 36px;
}

/* ── Menú desktop (oculto en móvil) ──────────────────────────── */

.navbar__nav {
    display: none;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar__menu li {
    margin: 0;
    padding: 0;
}

.navbar__menu li a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition:
        color var(--transition),
        background-color var(--transition);
    position: relative;
}

.navbar__menu li a:hover {
    color: var(--hp-orange);
    background-color: rgba(232, 131, 58, 0.06);
}

/* Link activo — WordPress agrega estas clases al <li> automáticamente */
.navbar__menu li.current-menu-item > a,
.navbar__menu li.current_page_item > a,
.navbar__menu li.current-page-ancestor > a {
    color: var(--hp-orange);
}

/* Indicador naranja debajo del link activo */
.navbar__menu li.current-menu-item > a::after,
.navbar__menu li.current_page_item > a::after,
.navbar__menu li.current-page-ancestor > a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: var(--hp-orange);
    border-radius: 3px;
}

/* ── Botón CTA del navbar (oculto en móvil) ──────────────────── */

.navbar__cta {
    display: none;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--hp-orange);
    border-radius: var(--btn-radius);
    text-decoration: none;
    transition:
        background-color var(--transition),
        transform 0.2s ease;
    white-space: nowrap;
}

.navbar__cta:hover {
    background-color: var(--hp-orange-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Hamburguesa ─────────────────────────────────────────────── */

.navbar__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.navbar__hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition:
        transform var(--transition),
        opacity var(--transition);
    transform-origin: center;
}

/* Animación hamburguesa → X */
.navbar__hamburger.is-active .navbar__hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar__hamburger.is-active .navbar__hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar__hamburger.is-active .navbar__hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Navbar spacer (compensa el fixed) ───────────────────────── */

.navbar-spacer {
    height: 66px;
}

/* ══════════════════════════════════════════════════════════════════
   MENÚ MÓVIL — Panel lateral + overlay
   ══════════════════════════════════════════════════════════════════ */

/* Overlay oscuro */
.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 42, 68, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition),
        visibility var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Panel lateral */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.is-open {
    transform: translateX(0);
}

/* Cabecera del panel */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hp-light);
    flex-shrink: 0;
}

.mobile-menu__logo {
    height: 36px;
    width: auto;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-medium);
    border-radius: 8px;
    transition:
        color var(--transition),
        background-color var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__close:hover {
    color: var(--text-dark);
    background-color: var(--hp-light);
}

/* Links móviles */
.mobile-menu__nav {
    flex: 1;
    padding: 16px 0;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__list li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-menu__list li a {
    display: block;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition:
        color var(--transition),
        background-color var(--transition),
        padding-left var(--transition);
}

.mobile-menu__list li a:hover {
    color: var(--hp-orange);
    background-color: rgba(232, 131, 58, 0.04);
    padding-left: 30px;
}

/* Link activo en el menú móvil */
.mobile-menu__list li.current-menu-item > a,
.mobile-menu__list li.current_page_item > a {
    color: var(--hp-orange);
    background-color: rgba(232, 131, 58, 0.06);
    border-left: 4px solid var(--hp-orange);
    padding-left: 20px;
}

/* Footer del panel móvil */
.mobile-menu__footer {
    padding: 20px 24px 32px;
    border-top: 1px solid var(--hp-light);
    flex-shrink: 0;
}

.mobile-menu__cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--hp-orange);
    border-radius: var(--btn-radius);
    text-decoration: none;
    text-align: center;
    transition: background-color var(--transition);
}

.mobile-menu__cta:hover {
    background-color: var(--hp-orange-dark);
    color: #ffffff;
}

/* Redes sociales en el menú móvil */
.mobile-menu__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.mobile-menu__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-medium);
    border-radius: 50%;
    background-color: var(--hp-light);
    transition:
        color var(--transition),
        background-color var(--transition);
    text-decoration: none;
}

.mobile-menu__social a:hover {
    color: #ffffff;
    background-color: var(--hp-blue);
}

/* Bloquear scroll del body cuando el menú móvil está abierto */
body.mobile-menu-open {
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR ACTIONS — Contenedor de botones del navbar
   ══════════════════════════════════════════════════════════════════ */

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════════════════════════════════
   BOTÓN DE BÚSQUEDA (LUPA) — Visible en móvil y desktop
   ══════════════════════════════════════════════════════════════════ */

.navbar__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-medium);
    cursor: pointer;
    transition:
        color var(--transition),
        background-color var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.navbar__search-btn:hover {
    color: var(--hp-orange);
    background-color: rgba(232, 131, 58, 0.06);
}

/* ══════════════════════════════════════════════════════════════════
   SEARCH OVERLAY — Panel de búsqueda a pantalla completa
   ══════════════════════════════════════════════════════════════════
   Se abre al clic en la lupa. Cubre todo con fondo oscuro
   semitransparente y centra un campo de búsqueda grande.
   ══════════════════════════════════════════════════════════════════ */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(15, 42, 68, 0.92);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Contenedor interno */
.search-overlay__inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.is-open .search-overlay__inner {
    transform: translateY(0);
}

/* Botón cerrar (esquina superior derecha) */
.search-overlay__close {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 8px;
    transition:
        color var(--transition),
        background-color var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.search-overlay__close:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── Label ───────────────────────────────────────────────────── */

.search-overlay__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    text-align: center;
}

/* ── Campo de búsqueda ───────────────────────────────────────── */

.search-overlay__field {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.search-overlay__icon {
    margin-left: 20px;
    color: var(--text-light);
    flex-shrink: 0;
}

.search-overlay__input {
    flex: 1;
    padding: 18px 16px;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-dark);
    border: none;
    outline: none;
    background: transparent;
}

.search-overlay__input::placeholder {
    color: var(--text-light);
}

.search-overlay__submit {
    padding: 18px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--hp-orange);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition);
}

.search-overlay__submit:hover {
    background-color: var(--hp-orange-dark);
}

/* ── Sugerencias rápidas ─────────────────────────────────────── */

.search-overlay__suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.search-overlay__suggestions span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.search-overlay__suggestions a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.search-overlay__suggestions a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE MENU SEARCH — Buscador dentro del menú móvil
   ══════════════════════════════════════════════════════════════════ */

.mobile-menu__search {
    padding: 12px 20px;
    border-bottom: 1px solid var(--hp-light);
}

.mobile-menu__search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--hp-light);
    border-radius: 10px;
    color: var(--text-light);
}

.mobile-menu__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
}

.mobile-menu__search-input::placeholder {
    color: var(--text-light);
}

/* Bloquear scroll cuando el overlay de búsqueda está abierto */
body.search-open {
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .search-overlay {
        padding-top: 160px;
    }

    .search-overlay__label {
        font-size: 22px;
    }

    .search-overlay__input {
        font-size: 20px;
        padding: 20px 18px;
    }

    .search-overlay__submit {
        padding: 20px 32px;
        font-size: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .navbar__search-btn {
        width: 42px;
        height: 42px;
    }

    .navbar__actions {
        gap: 12px;
    }

    .search-overlay {
        padding-top: 200px;
    }

    .search-overlay__label {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   8. HERO
   ══════════════════════════════════════════════════════════════════
   Sección principal de cada página. En móvil es una sola columna
   (texto arriba, imagen abajo). En desktop se divide en 2 columnas.
   ══════════════════════════════════════════════════════════════════ */

.hero {
    padding: 40px 0 var(--section-gap-sm);
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Columna de texto ────────────────────────────────────────── */

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-orange);
    background-color: rgba(232, 131, 58, 0.1);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--hp-blue);
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Palabra resaltada dentro del título (ej: "salud mental" en naranja) */
.hero__title span,
.hero__title .highlight {
    color: var(--hp-orange);
}

.hero__description {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Columna de imagen ───────────────────────────────────────── */

.hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
}

/* ── Estadísticas debajo del hero (opcional) ─────────────────── */

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.hero__stat {
    text-align: center;
    padding: 16px;
    background-color: var(--hp-cream);
    border-radius: 12px;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-orange);
    line-height: 1.2;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-medium);
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════
   HERO BAR — Barra decorativa gradiente
   ══════════════════════════════════════════════════════════════════
   Línea de 4px en la parte superior del hero que va de:
   naranja (#E8833A) → amarillo (#F5B731) → azul (#2B5F8A)
   Refuerza los colores de marca de forma sutil.
   ══════════════════════════════════════════════════════════════════ */

.hero-bar {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--hp-orange) 0%,
        var(--hp-yellow) 50%,
        var(--hp-blue) 100%
    );
}

/* ══════════════════════════════════════════════════════════════════
   INTRODUCCIÓN — Mensaje de bienvenida
   ══════════════════════════════════════════════════════════════════ */

.intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro__title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 20px;
    line-height: 1.3;
}

.intro__text {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

.intro__text p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

.intro__text p:last-child {
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════
   TWO-COL — Layout genérico de 2 columnas (imagen + texto)
   ══════════════════════════════════════════════════════════════════
   Se usa en la sección de Historia y Visión.
   En móvil: imagen arriba, texto abajo (1 columna).
   En desktop: 2 columnas lado a lado (50/50).
   ══════════════════════════════════════════════════════════════════ */

.two-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* Columna de imagen */
.two-col__media {
    width: 100%;
}

.two-col__img {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* Columna de texto */
.two-col__text {
    width: 100%;
}

.two-col__text .tag {
    margin-bottom: 12px;
}

.two-col__text h2 {
    margin-bottom: 16px;
}

.two-col__text p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}

.two-col__text .btn-primary,
.two-col__text .btn-secondary {
    margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════
   SECTION FOOTER — Botón centrado debajo de grillas
   ══════════════════════════════════════════════════════════════════ */

.section__footer {
    text-align: center;
    margin-top: 40px;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .intro__title {
        font-size: 32px;
    }

    .intro__text {
        font-size: 17px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .intro__title {
        font-size: 36px;
    }

    .intro__text {
        font-size: 18px;
    }

    /* Two-col pasa a 2 columnas lado a lado */
    .two-col {
        flex-direction: row;
        gap: 48px;
    }

    .two-col__media {
        flex: 0 1 50%;
    }

    .two-col__text {
        flex: 0 1 50%;
    }

    /* Para la imagen máxima del two-col */
    .two-col__img {
        max-height: 420px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   9. SECCIONES ESPECÍFICAS
   ══════════════════════════════════════════════════════════════════
   Grillas y layouts para las distintas páginas del sitio:
   servicios, equipo, blog, proyectos, etc.
   ══════════════════════════════════════════════════════════════════ */

/* ── Grilla de servicios ─────────────────────────────────────── */
/* 1 col en móvil → 2 col en tablet → 3 col en desktop */

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ── Grilla del equipo ───────────────────────────────────────── */

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Tarjeta de miembro del equipo */
.equipo-card {
    text-align: center;
    padding: 28px 20px;
}

.equipo-card__foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--hp-cream);
}

.equipo-card__nombre {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 4px;
}

.equipo-card__cargo {
    font-size: 14px;
    color: var(--text-medium);
}

/* ── Grilla del blog ─────────────────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* ── Grilla de partners / logos ──────────────────────────────── */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
}

.partners-grid img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition:
        opacity var(--transition),
        filter var(--transition);
}

.partners-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ── Timeline (para historia en /nosotros/) ──────────────────── */

.timeline {
    position: relative;
    padding-left: 28px;
}

/* Línea vertical */
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: rgba(43, 95, 138, 0.15);
    border-radius: 3px;
}

.timeline__item {
    position: relative;
    margin-bottom: 32px;
}

/* Punto en la línea del tiempo */
.timeline__item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--hp-orange);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(232, 131, 58, 0.2);
}

.timeline__year {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--hp-orange);
    margin-bottom: 6px;
}

.timeline__text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   PAGE HERO — Hero para páginas internas
   ══════════════════════════════════════════════════════════════════
   Versión más compacta que el hero del front-page.
   Se reutiliza en /servicios/, /nosotros/, /cooperacion/, etc.
   ══════════════════════════════════════════════════════════════════ */

.page-hero {
    padding: 40px 0 var(--section-gap-sm);
}

.page-hero__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--hp-blue);
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-hero__title .highlight {
    color: var(--hp-orange);
}

.page-hero__description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 540px;
}

.page-hero__image {
    display: flex;
    justify-content: center;
}

.page-hero__img {
    width: 100%;
    max-width: 540px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════════
   SVC INDEX — Índice rápido de servicios
   ══════════════════════════════════════════════════════════════════
   2 columnas en desktop:
     Izq: grilla de 8 servicios con bullets de color (links ancla)
     Der: tarjeta "Tipos de atención"
   ══════════════════════════════════════════════════════════════════ */

.svc-index {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.svc-index__title {
    font-size: 26px;
    margin-bottom: 8px;
}

.svc-index__subtitle {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* Grilla de links-ancla: 1 col en móvil → 2 col en tablet+ */
.svc-index__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Cada item del índice es un link con bullet + texto */
.svc-index__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.svc-index__item:hover {
    background-color: var(--hp-cream);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

/* Bullets de color (círculos con ícono SVG) */
.svc-index__bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.svc-index__item:hover .svc-index__bullet {
    transform: scale(1.08);
}

.svc-index__bullet--orange {
    background-color: rgba(232, 131, 58, 0.12);
    color: var(--hp-orange);
}

.svc-index__bullet--blue {
    background-color: rgba(43, 95, 138, 0.1);
    color: var(--hp-blue);
}

.svc-index__bullet--yellow {
    background-color: rgba(245, 183, 49, 0.15);
    color: #c99520;
}

.svc-index__label {
    flex: 1;
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════════
   SVC TYPES CARD — Tarjeta "Tipos de atención"
   ══════════════════════════════════════════════════════════════════ */

.svc-types-card {
    background-color: #ffffff;
    border-radius: var(--card-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--hp-blue);
}

.svc-types-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 6px;
}

.svc-types-card__subtitle {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* Cada tipo de atención */
.svc-types-card__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hp-light);
}

.svc-types-card__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.svc-types-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.svc-types-card__icon--orange {
    background-color: rgba(232, 131, 58, 0.1);
    color: var(--hp-orange);
}

.svc-types-card__icon--blue {
    background-color: rgba(43, 95, 138, 0.1);
    color: var(--hp-blue);
}

.svc-types-card__icon--yellow {
    background-color: rgba(245, 183, 49, 0.12);
    color: #c99520;
}

.svc-types-card__item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.svc-types-card__item p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   SVC BLOCK — Bloque individual de servicio (alternado)
   ══════════════════════════════════════════════════════════════════
   Cada bloque tiene 2 columnas: texto + imagen.
   .svc-block--reverse invierte el orden en desktop.
   Padding-top extra para compensar el scroll al id (navbar fijo).
   ══════════════════════════════════════════════════════════════════ */

.svc-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 48px 0;
    border-bottom: 1px solid var(--hp-light);
    /* Compensar el navbar fijo para los links ancla.
       scroll-margin-top deja espacio arriba al navegar con # */
    scroll-margin-top: 100px;
}

.svc-block:last-child {
    border-bottom: none;
}

/* Fondo alterno para cada par de servicios */
.svc-block--alt {
    background-color: var(--hp-light);
    border-radius: var(--card-radius);
    padding: 48px 24px;
    margin-left: -20px;
    margin-right: -20px;
    border-bottom: none;
}

/* ── Número decorativo ───────────────────────────────────────── */

.svc-block__number {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    color: rgba(43, 95, 138, 0.08);
    line-height: 1;
    margin-bottom: -8px;
    display: block;
}

/* ── Texto del servicio ──────────────────────────────────────── */

.svc-block__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 16px;
    line-height: 1.25;
}

.svc-block__description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Recuadro "Objetivo:" */
.svc-block__objective {
    padding: 16px 20px;
    background-color: var(--hp-cream);
    border-left: 4px solid var(--hp-orange);
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 24px;
}

.svc-block__objective strong {
    color: var(--hp-orange);
    font-weight: 700;
}

/* En bloques con fondo alterno, el objetivo usa fondo blanco */
.svc-block--alt .svc-block__objective {
    background-color: #ffffff;
}

/* ── Imagen del servicio ─────────────────────────────────────── */

.svc-block__media {
    width: 100%;
}

.svc-block__img {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    /* Page hero: título más grande */
    .page-hero__title {
        font-size: 36px;
    }

    .page-hero__description {
        font-size: 17px;
    }

    /* Índice: grilla de 2 columnas */
    .svc-index__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-index__title {
        font-size: 30px;
    }

    /* Bloques de servicio: título más grande */
    .svc-block__title {
        font-size: 26px;
    }

    .svc-block__number {
        font-size: 64px;
    }

    /* Bloques alternos: restaurar márgenes */
    .svc-block--alt {
        margin-left: 0;
        margin-right: 0;
        padding: 48px 32px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    /* Page hero: 2 columnas */
    .page-hero__container {
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }

    .page-hero__text {
        flex: 1 1 55%;
    }

    .page-hero__image {
        flex: 1 1 45%;
    }

    .page-hero__title {
        font-size: 42px;
    }

    .page-hero__description {
        font-size: 18px;
    }

    .page-hero {
        padding: 60px 0 var(--section-gap);
    }

    /* Índice: 2 columnas (lista + tarjeta lateral) */
    .svc-index {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }

    .svc-index__list {
        flex: 1 1 60%;
    }

    .svc-index__aside {
        flex: 0 0 340px;
        position: sticky;
        top: 100px; /* Debajo del navbar fijo */
    }

    .svc-index__title {
        font-size: 32px;
    }

    /* Bloques de servicio: 2 columnas con imagen */
    .svc-block {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 56px 0;
    }

    .svc-block__text {
        flex: 1 1 55%;
    }

    .svc-block__media {
        flex: 1 1 45%;
    }

    /* Invertir: imagen izquierda, texto derecha */
    .svc-block--reverse {
        flex-direction: row-reverse;
    }

    .svc-block__title {
        font-size: 28px;
    }

    .svc-block__number {
        font-size: 72px;
    }

    .svc-block__description {
        font-size: 17px;
    }

    /* Bloques alternos en desktop */
    .svc-block--alt {
        padding: 56px 40px;
    }

    /* Imagen con altura máxima para mantener proporción */
    .svc-block__img {
        max-height: 380px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP GRANDE (1280px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1280px) {
    .page-hero__title {
        font-size: 46px;
    }

    .svc-index__aside {
        flex: 0 0 380px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   IDENTITY CARDS — Visión, Misión, Historia
   ══════════════════════════════════════════════════════════════════ */

.identity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.identity-card {
    background-color: #ffffff;
    border-radius: var(--card-radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.identity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Ícono circular de color */
.identity-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.identity-card__icon--blue {
    background-color: rgba(43, 95, 138, 0.1);
    color: var(--hp-blue);
}

.identity-card__icon--orange {
    background-color: rgba(232, 131, 58, 0.1);
    color: var(--hp-orange);
}

.identity-card__icon--yellow {
    background-color: rgba(245, 183, 49, 0.12);
    color: #c99520;
}

.identity-card__label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 12px;
}

.identity-card__text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   EQUIPO CARD — Foto circular + avatar fallback
   ══════════════════════════════════════════════════════════════════
   Amplía los estilos base de .equipo-card en style.css.
   Agrega el wrapper de foto y el avatar con iniciales.
   ══════════════════════════════════════════════════════════════════ */

.equipo-card {
    text-align: center;
    padding: 32px 20px;
}

/* Wrapper que contiene la foto real + el avatar fallback */
.equipo-card__foto-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.equipo-card__foto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--hp-cream);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Avatar placeholder con iniciales (visible cuando la foto falla) */
.equipo-card__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hp-blue), var(--hp-dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--hp-cream);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.equipo-card__avatar span {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.equipo-card__nombre {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.equipo-card__cargo {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .identity-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .identity-card {
        padding: 36px 28px;
    }

    .identity-card__label {
        font-size: 22px;
    }

    .identity-card__text {
        font-size: 15px;
    }

    /* Equipo: 2 columnas (ya definido en style.css base) */
    .equipo-card__foto-wrapper,
    .equipo-card__foto,
    .equipo-card__avatar {
        width: 150px;
        height: 150px;
    }

    .equipo-card__nombre {
        font-size: 17px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .identity-card {
        padding: 40px 32px;
    }

    .identity-card__icon {
        width: 80px;
        height: 80px;
    }

    .identity-card__text {
        font-size: 16px;
    }

    /* Equipo: 4 columnas (ya definido en style.css base) */
    .equipo-card__foto-wrapper,
    .equipo-card__foto,
    .equipo-card__avatar {
        width: 160px;
        height: 160px;
    }

    .equipo-card__avatar span {
        font-size: 40px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   10. CTA BANNER
   ══════════════════════════════════════════════════════════════════
   Fondo claro (hp-cream). Los círculos decorativos se generan
   con ::before y ::after en CSS — no hay divs extra en el HTML.
   ══════════════════════════════════════════════════════════════════ */

.cta-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--hp-cream);
    padding: 60px 24px;
    text-align: center;
    margin-top: var(--section-gap-sm);
}

/* ── Círculos decorativos (pseudo-elements) ──────────────────── */
/* Formas semitransparentes con los colores de marca de Human Perú.
   Posicionadas fuera de flujo para no afectar el texto. */

.cta-banner::before,
.cta-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Círculo grande — naranja semitransparente, arriba-izquierda */
.cta-banner::before {
    width: 280px;
    height: 280px;
    background-color: rgba(232, 131, 58, 0.08);
    top: -80px;
    left: -60px;
}

/* Círculo mediano — amarillo semitransparente, abajo-derecha */
.cta-banner::after {
    width: 200px;
    height: 200px;
    background-color: rgba(245, 183, 49, 0.1);
    bottom: -60px;
    right: -40px;
}

/* Contenedor interno para centrar y posicionar sobre los círculos */
.cta-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Ícono decorativo (sobre de carta) ───────────────────────── */

.cta-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(232, 131, 58, 0.1);
    color: var(--hp-orange);
    margin-bottom: 20px;
}

/* ── Contenido de texto ──────────────────────────────────────── */

.cta-banner__content {
    margin-bottom: 28px;
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--hp-blue);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cta-banner__subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-medium);
    margin: 0 0 24px 0;
}

/* Botón "CONTÁCTANOS" */
.cta-banner__btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--hp-orange);
    border-radius: var(--btn-radius);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition:
        background-color var(--transition),
        transform 0.2s ease,
        box-shadow var(--transition);
    box-shadow: 0 4px 15px rgba(232, 131, 58, 0.25);
}

.cta-banner__btn:hover {
    background-color: var(--hp-orange-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 131, 58, 0.35);
}

.cta-banner__btn:active {
    transform: translateY(0);
}

/* ── Datos de contacto debajo del botón ──────────────────────── */

.cta-banner__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cta-banner__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-medium);
    text-decoration: none;
    transition: color var(--transition);
}

.cta-banner__contact-item:hover {
    color: var(--hp-orange);
}

.cta-banner__contact-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.cta-banner__contact-sep {
    color: var(--text-light);
    margin: 0 4px;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════
   11. PRESS BADGE
   ══════════════════════════════════════════════════════════════════
   Diseño editorial con borde izquierdo amarillo grueso.
   Fondo off-white cálido (#FAFAF7).
   ══════════════════════════════════════════════════════════════════ */

.press-badge {
    max-width: 540px;
    margin: 0 auto;
    padding: 32px 32px 28px;
    background-color: #fafaf7;
    border-left: 5px solid var(--hp-yellow);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    box-shadow: var(--shadow-md);
}

/* ── Cabecera: etiqueta + medio + fecha ──────────────────────── */

.press-badge__header {
    margin-bottom: 0;
}

/* "COMO SE VIO EN" */
.press-badge__label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    margin: 0 0 8px 0;
}

/* "El Comercio" — tipografía editorial */
.press-badge__source {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

/* "Marzo 2026" */
.press-badge__date {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ── Línea divisoria ─────────────────────────────────────────── */

.press-badge__divider {
    border: none;
    height: 1px;
    background-color: #e8e6e0;
    margin: 20px 0;
}

/* ── Cita ─────────────────────────────────────────────────────── */

.press-badge__quote {
    margin: 0 0 14px 0;
    padding: 0;
    border: none; /* Overrule any blockquote default styles */
    background: none;
}

.press-badge__quote p {
    font-family: var(--font-body);
    font-size: 17px;
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* Comillas « » en color amarillo antes y después de la cita */
.press-badge__quote p::before {
    content: "\00AB\00A0"; /* « + espacio */
    color: var(--hp-yellow);
    font-weight: 700;
    font-style: normal;
}

.press-badge__quote p::after {
    content: "\00A0\00BB"; /* espacio + » */
    color: var(--hp-yellow);
    font-weight: 700;
    font-style: normal;
}

/* ── Atribución ──────────────────────────────────────────────── */

.press-badge__attribution {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.press-badge__attribution strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════
   3. SERVICE CARD — Tarjeta de servicio
   ══════════════════════════════════════════════════════════════════
   Fondo blanco, sombra sutil. Al hover aparece un borde izquierdo
   naranja y la sombra se intensifica.
   ══════════════════════════════════════════════════════════════════ */

.svc-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
    background-color: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    /* Borde izquierdo transparente por defecto (se colorea al hover) */
    border-left: 4px solid transparent;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.svc-card:hover {
    border-left-color: var(--hp-orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    color: inherit;
}

/* ── Ícono circular ──────────────────────────────────────────── */

.svc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    background-color: rgba(232, 131, 58, 0.1);
    color: var(--hp-orange);
    transition:
        background-color var(--transition),
        transform var(--transition);
}

.svc-card:hover .svc-card__icon {
    background-color: rgba(232, 131, 58, 0.15);
    transform: scale(1.05);
}

/* ── Contenido de texto ──────────────────────────────────────── */

.svc-card__content {
    flex: 1;
}

.svc-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--hp-blue);
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color var(--transition);
}

.svc-card:hover .svc-card__title {
    color: var(--hp-orange);
}

.svc-card__text {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ── Flecha indicadora (solo en tarjetas con link) ───────────── */

.svc-card__arrow {
    display: flex;
    align-items: center;
    align-self: center;
    color: var(--text-light);
    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity var(--transition),
        transform var(--transition),
        color var(--transition);
}

.svc-card:hover .svc-card__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--hp-orange);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    /* CTA Banner más grande */
    .cta-banner {
        padding: 70px 40px;
        margin-top: var(--section-gap);
    }

    .cta-banner__title {
        font-size: 30px;
    }

    .cta-banner::before {
        width: 350px;
        height: 350px;
    }

    .cta-banner::after {
        width: 260px;
        height: 260px;
    }

    /* Press Badge fuente más grande */
    .press-badge__source {
        font-size: 34px;
    }

    .press-badge__quote p {
        font-size: 18px;
    }

    /* Service card título más grande */
    .svc-card__title {
        font-size: 20px;
    }

    .svc-card__text {
        font-size: 15px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    /* CTA Banner */
    .cta-banner {
        padding: 80px 40px;
    }

    .cta-banner__title {
        font-size: 34px;
    }

    .cta-banner__subtitle {
        font-size: 18px;
    }

    .cta-banner__icon {
        width: 72px;
        height: 72px;
    }

    /* Círculos decorativos más grandes en desktop */
    .cta-banner::before {
        width: 400px;
        height: 400px;
        top: -120px;
        left: -100px;
    }

    .cta-banner::after {
        width: 300px;
        height: 300px;
        bottom: -100px;
        right: -80px;
    }

    /* Press Badge */
    .press-badge {
        padding: 36px 40px 32px;
    }

    .press-badge__source {
        font-size: 38px;
    }

    /* Service card */
    .svc-card {
        padding: 32px 28px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   12. FOOTER
   ══════════════════════════════════════════════════════════════════
   3 columnas (1 en móvil). Fondo var(--hp-dark-blue).
   Barra inferior con fondo var(--hp-navy).
   ══════════════════════════════════════════════════════════════════ */

.site-footer {
    background-color: var(--hp-dark-blue);
    color: var(--text-on-dark);
}

/* ── Área de columnas ────────────────────────────────────────── */

.footer__columns {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer__heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--hp-orange);
    border-radius: 3px;
}

/* ── Col 1: Acerca de ────────────────────────────────────────── */

.footer__logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer__description {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-on-dark);
    margin: 0 0 20px 0;
    max-width: 320px;
}

.footer__address {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(204, 221, 238, 0.75);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

/* ── Col 2: Links ────────────────────────────────────────────── */

.footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__nav li a {
    display: inline-block;
    padding: 7px 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-on-dark);
    text-decoration: none;
    transition:
        color var(--transition),
        padding-left var(--transition);
    position: relative;
}

.footer__nav li a:hover {
    color: var(--hp-orange);
    padding-left: 6px;
}

.footer__nav li a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: var(--hp-orange);
    transition: width var(--transition);
}

.footer__nav li a:hover::before {
    width: 8px;
}

/* ── Col 3: Redes sociales ───────────────────────────────────── */

.footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.footer__social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.footer__social-link--facebook {
    background-color: #1877f2;
}
.footer__social-link--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}
.footer__social-link--linkedin {
    background-color: #0a66c2;
}
.footer__social-link--x {
    background-color: #14171a;
}
.footer__social-link--tiktok {
    background-color: #010101;
}
.footer__social-link--youtube {
    background-color: #ff0000;
}

/* Botón de WhatsApp */
.footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #25d366;
    border-radius: var(--btn-radius);
    text-decoration: none;
    transition:
        background-color var(--transition),
        transform 0.2s ease;
}

.footer__whatsapp:hover {
    background-color: #20bd5a;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Barra inferior ──────────────────────────────────────────── */

.footer__bottom {
    background-color: var(--hp-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(204, 221, 238, 0.85);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__contact-item:hover {
    color: var(--hp-orange);
}

.footer__contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer__copyright {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(204, 221, 238, 0.5);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   13. BLOG — Lista + Post individual
   ══════════════════════════════════════════════════════════════════
   Estilos para archive.php y single.php.
   .post-content es el wrapper de the_content() y estiliza
   la prosa generada por Gutenberg.
   ══════════════════════════════════════════════════════════════════ */

/* ── Tarjeta de blog (usada en front-page.php y posts relacionados) ── */

.blog-card__image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.blog-card__body {
    padding: 24px;
}

.blog-card__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hp-orange);
    margin-bottom: 8px;
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color var(--transition);
}

.blog-card__title:hover {
    color: var(--hp-orange);
}

.blog-card__excerpt {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.blog-card__read-more {
    font-weight: 600;
    color: var(--hp-orange);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card__read-more:hover {
    color: var(--hp-orange-dark);
}

/* ── Post individual (single.php) ────────────────────────────── */

.single-post__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.single-post__category {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hp-orange);
    margin-bottom: 12px;
}

.single-post__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-blue);
    line-height: 1.25;
    margin-bottom: 16px;
}

.single-post__meta {
    font-size: 14px;
    color: var(--text-light);
}

.single-post__meta a {
    color: var(--text-medium);
    font-weight: 600;
}

.single-post__featured-img {
    width: 100%;
    border-radius: var(--card-radius);
    margin-bottom: 32px;
}

/* ── Estilos de prosa para the_content() ─────────────────────── */

.post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-content h4 {
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 10px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--hp-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.post-content a:hover {
    color: var(--hp-orange);
}

.post-content ul,
.post-content ol {
    margin: 0 0 20px 24px;
    list-style: revert;
}

.post-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.post-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--hp-orange);
    background-color: var(--hp-cream);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    font-style: italic;
    color: var(--text-medium);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content img {
    border-radius: var(--card-radius);
    margin: 24px 0;
}

.post-content figure {
    margin: 28px 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.post-content hr {
    border: none;
    height: 2px;
    background-color: var(--hp-light);
    margin: 36px 0;
}

.post-content .alignwide {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.post-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
}

/* ── Sidebar del blog (widgets) ──────────────────────────────── */

.hp-widget {
    margin-bottom: 28px;
    padding: 24px;
    background-color: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

.hp-widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hp-light);
}

/* ══════════════════════════════════════════════════════════════════
   BLOG HERO — Encabezado del archivo
   ══════════════════════════════════════════════════════════════════ */

.blog-hero {
    padding: 40px 0 24px;
}

.blog-hero__content {
    max-width: 640px;
}

.blog-hero__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--hp-blue);
    margin-bottom: 12px;
}

.blog-hero__description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   BLOG LAYOUT — Grid 70/30
   ══════════════════════════════════════════════════════════════════ */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* ══════════════════════════════════════════════════════════════════
   BLOG LIST — Tarjetas de post (archive)
   ══════════════════════════════════════════════════════════════════ */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Cada post: vertical en móvil, horizontal en tablet+ */
.blog-list__item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.blog-list__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.blog-list__image-link {
    display: block;
    overflow: hidden;
}

.blog-list__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: 280px;
    transition: transform 0.4s ease;
}

.blog-list__item:hover .blog-list__image {
    transform: scale(1.03);
}

.blog-list__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.blog-list__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hp-orange);
    text-decoration: none;
    margin-bottom: 8px;
    width: fit-content;
    transition: color var(--transition);
}

.blog-list__category:hover {
    color: var(--hp-orange-dark);
}

.blog-list__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-list__title a {
    color: var(--hp-blue);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-list__title a:hover {
    color: var(--hp-orange);
}

.blog-list__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-list__meta-sep {
    margin: 0 2px;
}

.blog-list__excerpt {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-list__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--hp-orange);
    text-decoration: none;
    transition:
        color var(--transition),
        gap var(--transition);
}

.blog-list__read-more:hover {
    color: var(--hp-orange-dark);
    gap: 10px;
}

/* Estado vacío */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
}

.blog-empty h2 {
    margin-bottom: 12px;
}

.blog-empty p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════════════
   BLOG PAGINATION
   ══════════════════════════════════════════════════════════════════ */

.blog-pagination {
    margin-top: 48px;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.blog-pagination .page-numbers:hover {
    background-color: var(--hp-light);
    color: var(--hp-blue);
}

.blog-pagination .page-numbers.current {
    background-color: var(--hp-orange);
    color: #ffffff;
}

.blog-pagination .prev,
.blog-pagination .next {
    font-size: 13px;
    color: var(--hp-blue);
}

/* ══════════════════════════════════════════════════════════════════
   SINGLE POST — Mejoras específicas
   ══════════════════════════════════════════════════════════════════ */

.single-post {
    padding-top: 40px;
    padding-bottom: 24px;
}

.single-post__featured {
    max-width: 760px;
    margin: 0 auto 36px;
}

.single-post__meta-sep {
    margin: 0 4px;
    opacity: 0.5;
}

/* ── Etiquetas del post ──────────────────────────────────────── */

.single-post__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--hp-light);
    color: var(--text-light);
}

.single-post__tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    background-color: var(--hp-light);
    border-radius: 20px;
    text-decoration: none;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.single-post__tag:hover {
    background-color: var(--hp-blue);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
   SHARE BUTTONS — Compartir en redes sociales
   ══════════════════════════════════════════════════════════════════ */

.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--hp-light);
}

.share-buttons__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-right: 4px;
}

.share-buttons__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition:
        opacity var(--transition),
        transform 0.2s ease;
}

.share-buttons__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
}

.share-buttons__btn--whatsapp {
    background-color: #25d366;
}
.share-buttons__btn--facebook {
    background-color: #1877f2;
}
.share-buttons__btn--linkedin {
    background-color: #0a66c2;
}

/* ══════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Buscador ────────────────────────────────────────────────── */

.sidebar__search-form {
    display: flex;
    gap: 0;
}

.sidebar__search-input {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    border: 2px solid var(--hp-light);
    border-right: none;
    border-radius: 10px 0 0 10px;
    outline: none;
    transition: border-color var(--transition);
}

.sidebar__search-input:focus {
    border-color: var(--hp-blue);
}

.sidebar__search-btn {
    padding: 10px 14px;
    background-color: var(--hp-blue);
    color: #ffffff;
    border: 2px solid var(--hp-blue);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background-color var(--transition);
    display: flex;
    align-items: center;
}

.sidebar__search-btn:hover {
    background-color: var(--hp-dark-blue);
    border-color: var(--hp-dark-blue);
}

/* ── Posts recientes ─────────────────────────────────────────── */

.sidebar__recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar__recent-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hp-light);
}

.sidebar__recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar__recent-item:first-child {
    padding-top: 0;
}

.sidebar__recent-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar__recent-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.sidebar__recent-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color var(--transition);
}

.sidebar__recent-title:hover {
    color: var(--hp-orange);
}

.sidebar__recent-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ── Categorías ──────────────────────────────────────────────── */

.sidebar__categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar__cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--hp-light);
    transition: padding-left var(--transition);
}

.sidebar__cat-link:hover {
    padding-left: 4px;
}

.sidebar__categories li:last-child .sidebar__cat-link {
    border-bottom: none;
}

.sidebar__cat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color var(--transition);
}

.sidebar__cat-link:hover .sidebar__cat-name {
    color: var(--hp-orange);
}

.sidebar__cat-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    background-color: var(--hp-light);
    padding: 2px 10px;
    border-radius: 20px;
}

/* ── CTA del sidebar ─────────────────────────────────────────── */

.sidebar__cta {
    background: linear-gradient(135deg, var(--hp-blue), var(--hp-dark-blue));
    color: #ffffff;
    text-align: center;
}

.sidebar__cta-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar__cta-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.sidebar__cta-btn {
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .blog-hero__title {
        font-size: 38px;
    }

    /* Posts del archivo: layout horizontal (imagen izq, texto der) */
    .blog-list__item {
        flex-direction: row;
    }

    .blog-list__image-link {
        flex: 0 0 280px;
        max-height: 240px;
        overflow: hidden;
    }

    .blog-list__image {
        width: 280px;
        height: 100%;
        max-height: 240px;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .blog-list__body {
        flex: 1;
    }

    .blog-list__title {
        font-size: 22px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .blog-hero__title {
        font-size: 42px;
    }

    /* Blog layout: 70% contenido + 30% sidebar */
    .blog-layout {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }

    /* Sidebar sticky */
    .blog-layout__sidebar {
        align-self: start;
        position: sticky;
        top: 100px;
    }

    .blog-list__image-link {
        flex: 0 0 300px;
        max-height: 260px;
        overflow: hidden;
    }

    .blog-list__image {
        width: 300px;
        max-height: 260px;
    }

    /* Single post */
    .single-post {
        padding-top: 60px;
    }

    .single-post__title {
        font-size: 42px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   14. PÁGINAS ESPECIALES
   ══════════════════════════════════════════════════════════════════
   Verificar diploma y asistencia del personal.
   ══════════════════════════════════════════════════════════════════ */

/* ── Verificar diploma ───────────────────────────────────────── */
/* NOTA: Los estilos del formulario del verificador los carga
   el plugin human-verificador.php desde su propio assets/style.css.
   Aquí solo definimos el wrapper de la página. */

.verificar-page {
    padding-top: 40px;
    padding-bottom: var(--section-gap);
}

.verificar-page__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.verificar-page__header h1 {
    margin-bottom: 12px;
}

.verificar-page__header p {
    color: var(--text-medium);
    font-size: 16px;
}

/* ── Asistencia del personal ─────────────────────────────────── */

.asistencia-page {
    padding-top: 40px;
    padding-bottom: var(--section-gap);
}

.asistencia-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 36px 28px;
    background-color: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* Reloj digital grande */
.asistencia-reloj {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--hp-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.asistencia-fecha {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 28px;
}

/* Select de empleado */
.asistencia-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-dark);
    border: 2px solid var(--hp-light);
    border-radius: 12px;
    background-color: #ffffff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}

.asistencia-select:focus {
    border-color: var(--hp-blue);
    outline: none;
}

/* Campo de contraseña */
.asistencia-password {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid var(--hp-light);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: border-color var(--transition);
}

.asistencia-password:focus {
    border-color: var(--hp-blue);
    outline: none;
}

/* Botones de entrada/salida */
.asistencia-actions {
    display: flex;
    gap: 12px;
}

.asistencia-btn {
    flex: 1;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform 0.2s ease;
}

.asistencia-btn:active {
    transform: scale(0.97);
}

.asistencia-btn--entrada {
    color: #ffffff;
    background-color: #1a7a4a; /* Verde para entrada */
}

.asistencia-btn--entrada:hover {
    background-color: #146b3e;
}

.asistencia-btn--salida {
    color: #ffffff;
    background-color: #c0392b; /* Rojo para salida */
}

.asistencia-btn--salida:hover {
    background-color: #a93226;
}

/* Mensaje de resultado de asistencia */
.asistencia-resultado {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    animation: fadeSlideUp 0.3s ease;
}

.asistencia-resultado--ok {
    background-color: rgba(26, 122, 74, 0.1);
    color: #1a7a4a;
}

.asistencia-resultado--error {
    background-color: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACTO HERO — Encabezado centrado (sin imagen)
   ══════════════════════════════════════════════════════════════════ */

.contacto-hero {
    padding: 40px 0 24px;
    text-align: center;
}

.contacto-hero__content {
    max-width: 640px;
    margin: 0 auto;
}

.contacto-hero__title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--hp-blue);
    line-height: 1.2;
    margin-bottom: 16px;
}

.contacto-hero__title .highlight {
    color: var(--hp-orange);
}

.contacto-hero__description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACTO GRID — 1 columna en móvil, 2 en desktop
   ══════════════════════════════════════════════════════════════════ */

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* ══════════════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO
   ══════════════════════════════════════════════════════════════════ */

.contacto-form-wrapper {
    background-color: #ffffff;
    border-radius: var(--card-radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
}

/* ── Campo individual ────────────────────────────────────────── */

.contacto-form__field {
    margin-bottom: 20px;
    position: relative;
}

.contacto-form__label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contacto-form__required {
    color: var(--hp-orange);
}

/* Estilos compartidos por input, select y textarea */
.contacto-form__input,
.contacto-form__select,
.contacto-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background-color: #ffffff;
    border: 2px solid var(--hp-light);
    border-radius: 10px;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.contacto-form__input:focus,
.contacto-form__select:focus,
.contacto-form__textarea:focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 138, 0.1);
    outline: none;
}

.contacto-form__input::placeholder,
.contacto-form__textarea::placeholder {
    color: var(--text-light);
}

/* Select con flecha custom */
.contacto-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Textarea */
.contacto-form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Estado de error en campo ────────────────────────────────── */

.contacto-form__field--error .contacto-form__input,
.contacto-form__field--error .contacto-form__select,
.contacto-form__field--error .contacto-form__textarea {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.contacto-form__error-msg {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
    font-weight: 500;
}

/* ── Honeypot (invisible para humanos) ───────────────────────── */

.contacto-form__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Botón de envío ──────────────────────────────────────────── */

.contacto-form__submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    margin-top: 4px;
}

.contacto-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner dentro del botón durante el envío */
.contacto-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: contactoSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes contactoSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Nota de tiempo de respuesta ─────────────────────────────── */

.contacto-form__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.contacto-form__note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Resultado del envío ─────────────────────────────────────── */

.contacto-form__resultado {
    margin-top: 16px;
}

.contacto-form__resultado--ok,
.contacto-form__resultado--error {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    animation: fadeSlideUp 0.3s ease;
}

.contacto-form__resultado--ok {
    background-color: rgba(26, 122, 74, 0.08);
    color: #1a7a4a;
    border: 1px solid rgba(26, 122, 74, 0.2);
}

.contacto-form__resultado--error {
    background-color: rgba(192, 57, 43, 0.08);
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* ══════════════════════════════════════════════════════════════════
   SIDEBAR — Datos de contacto
   ══════════════════════════════════════════════════════════════════ */

.contacto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta de dato de contacto */
.contacto-dato {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow var(--transition),
        transform var(--transition);
}

.contacto-dato:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Ícono circular */
.contacto-dato__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.contacto-dato__icon--green {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contacto-dato__icon--blue {
    background-color: rgba(43, 95, 138, 0.1);
    color: var(--hp-blue);
}

.contacto-dato__icon--orange {
    background-color: rgba(232, 131, 58, 0.1);
    color: var(--hp-orange);
}

.contacto-dato__icon--navy {
    background-color: rgba(27, 58, 92, 0.1);
    color: var(--hp-dark-blue);
}

.contacto-dato__text h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contacto-dato__text a {
    font-size: 15px;
    color: var(--hp-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
    word-break: break-all;
}

.contacto-dato__text a:hover {
    color: var(--hp-orange);
}

.contacto-dato__text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ── Mapa ────────────────────────────────────────────────────── */

.contacto-mapa {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contacto-mapa iframe {
    display: block;
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .contacto-hero__title {
        font-size: 36px;
    }

    .contacto-hero__description {
        font-size: 17px;
    }

    .contacto-form-wrapper {
        padding: 40px 32px;
    }

    .contacto-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .contacto-hero {
        padding: 60px 0 32px;
    }

    .contacto-hero__title {
        font-size: 42px;
    }

    .contacto-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 48px;
    }

    .contacto-form-wrapper {
        padding: 44px 36px;
    }

    /* Sidebar sticky: se queda fija mientras el formulario es largo */
    .contacto-sidebar {
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }

    .contacto-mapa iframe {
        height: 260px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   COOPERACIÓN — Lista de beneficios
   ══════════════════════════════════════════════════════════════════ */

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-item__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background-color: rgba(232, 131, 58, 0.12);
    color: var(--hp-orange);
    margin-top: 2px;
}

.benefit-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 2px;
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   COOPERACIÓN — Pasos para cooperar
   ══════════════════════════════════════════════════════════════════ */

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.step-card {
    position: relative;
    background-color: #ffffff;
    border-radius: var(--card-radius);
    padding: 28px 24px 28px 80px;
    box-shadow: var(--shadow-md);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Número circular grande a la izquierda */
.step-card__number {
    position: absolute;
    left: 20px;
    top: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--hp-orange);
    border-radius: 12px;
}

.step-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--hp-blue);
    margin-bottom: 6px;
}

.step-card__text {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   VERIFICAR DIPLOMA — FAQ Accordion
   ══════════════════════════════════════════════════════════════════
   Usa el elemento nativo <details>/<summary> de HTML.
   No requiere JavaScript para abrir/cerrar.
   ══════════════════════════════════════════════════════════════════ */

.verificar-page__form {
    max-width: 640px;
    margin: 0 auto 48px;
}

.verificar-faq {
    max-width: 700px;
    margin: 0 auto;
}

.verificar-faq__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--hp-blue);
    text-align: center;
    margin-bottom: 24px;
}

/* Cada item del accordion */
.verificar-faq__item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.verificar-faq__item:hover {
    box-shadow: var(--shadow-md);
}

.verificar-faq__item[open] {
    box-shadow: var(--shadow-md);
}

/* Pregunta (clickeable) */
.verificar-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none; /* Quitar el triángulo nativo de <summary> */
    transition: color var(--transition);
}

/* Quitar el marcador nativo en todos los navegadores */
.verificar-faq__question::-webkit-details-marker {
    display: none;
}

.verificar-faq__question::marker {
    display: none;
    content: "";
}

.verificar-faq__question:hover {
    color: var(--hp-orange);
}

/* Chevron que rota al abrir */
.verificar-faq__chevron {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform var(--transition);
}

.verificar-faq__item[open] .verificar-faq__chevron {
    transform: rotate(180deg);
    color: var(--hp-orange);
}

/* Respuesta */
.verificar-faq__answer {
    padding: 0 20px 18px;
}

.verificar-faq__answer p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   ASISTENCIA — Nota de privacidad
   ══════════════════════════════════════════════════════════════════ */

.asistencia-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 480px;
    margin: 16px auto 0;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}

.asistencia-note svg {
    flex-shrink: 0;
    opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .step-card__title {
        font-size: 19px;
    }

    .verificar-faq__question {
        font-size: 16px;
        padding: 20px 24px;
    }

    .verificar-faq__title {
        font-size: 28px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .step-card {
        padding: 80px 24px 28px 24px;
        text-align: center;
    }

    .step-card__number {
        left: 50%;
        transform: translateX(-50%);
        top: 24px;
    }

    .benefit-item strong {
        font-size: 17px;
    }

    .benefit-item p {
        font-size: 15px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINA 404 — Error no encontrado
   ══════════════════════════════════════════════════════════════════ */

.error-404 {
    padding: 60px 0 var(--section-gap);
}

.error-404__content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

/* ── Número 404 decorativo ───────────────────────────────────── */

.error-404__number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 28px;
}

.error-404__4 {
    font-family: var(--font-heading);
    font-size: 96px;
    font-weight: 800;
    color: var(--hp-blue);
    line-height: 1;
    opacity: 0.15;
}

.error-404__0 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(232, 131, 58, 0.1);
    color: var(--hp-orange);
}

/* ── Texto ───────────────────────────────────────────────────── */

.error-404__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-blue);
    margin-bottom: 12px;
}

.error-404__text {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── Buscador ────────────────────────────────────────────────── */

.error-404__search {
    display: flex;
    max-width: 420px;
    margin: 0 auto 32px;
}

.error-404__search-input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    border: 2px solid var(--hp-light);
    border-right: none;
    border-radius: 12px 0 0 12px;
    outline: none;
    transition: border-color var(--transition);
}

.error-404__search-input:focus {
    border-color: var(--hp-blue);
}

.error-404__search-input::placeholder {
    color: var(--text-light);
}

.error-404__search-btn {
    padding: 14px 18px;
    background-color: var(--hp-orange);
    color: #ffffff;
    border: 2px solid var(--hp-orange);
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color var(--transition);
}

.error-404__search-btn:hover {
    background-color: var(--hp-orange-dark);
    border-color: var(--hp-orange-dark);
}

/* ── Links rápidos ───────────────────────────────────────────── */

.error-404__links {
    margin-bottom: 32px;
}

.error-404__links-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.error-404__links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.error-404__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--hp-light);
    border-radius: 10px;
    text-decoration: none;
    transition:
        background-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.error-404__link:hover {
    background-color: var(--hp-cream);
    color: var(--hp-orange);
    transform: translateY(-2px);
}

.error-404__link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.error-404__link:hover svg {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .error-404 {
        padding: 80px 0 var(--section-gap);
    }

    .error-404__4 {
        font-size: 120px;
    }

    .error-404__0 {
        width: 120px;
        height: 120px;
    }

    .error-404__0 svg {
        width: 56px;
        height: 56px;
    }

    .error-404__title {
        font-size: 32px;
    }

    .error-404__text {
        font-size: 17px;
    }

    .error-404__links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════════
   15. ANIMACIONES
   ══════════════════════════════════════════════════════════════════
   Elementos que aparecen con fade-in al entrar al viewport.
   Controlado por Intersection Observer en main.js.
   Uso: <div class="hp-animate">Contenido</div>
   ══════════════════════════════════════════════════════════════════ */

.hp-animate {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

/* Estado visible (JS agrega esta clase al entrar al viewport) */
.hp-animate.hp-animate--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays escalonados para elementos en grilla.
   Crean un efecto cascada: el 1ro aparece, luego el 2do, etc. */

.hp-animate--delay-1 {
    transition-delay: 0.1s;
}
.hp-animate--delay-2 {
    transition-delay: 0.2s;
}
.hp-animate--delay-3 {
    transition-delay: 0.3s;
}
.hp-animate--delay-4 {
    transition-delay: 0.4s;
}

/* Variante: aparece desde la izquierda */
.hp-animate--left {
    opacity: 0;
    transform: translateX(-30px);
}

.hp-animate--left.hp-animate--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Variante: aparece desde la derecha */
.hp-animate--right {
    opacity: 0;
    transform: translateX(30px);
}

.hp-animate--right.hp-animate--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Variante: zoom in */
.hp-animate--scale {
    opacity: 0;
    transform: scale(0.9);
}

.hp-animate--scale.hp-animate--visible {
    opacity: 1;
    transform: scale(1);
}

/* Keyframe genérico para animaciones internas (ej: spinner, resultado) */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respetar preferencia de reducir animaciones del sistema operativo.
   Usuarios con vestibular disorders o sensibilidad al movimiento
   no verán animaciones. */
@media (prefers-reduced-motion: reduce) {
    .hp-animate,
    .hp-animate--left,
    .hp-animate--right,
    .hp-animate--scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   16. RESPONSIVE — MEDIA QUERIES
   ══════════════════════════════════════════════════════════════════
   Mobile-first: los estilos base son para móvil.
   Ampliamos progresivamente para tablet y desktop.
   ══════════════════════════════════════════════════════════════════ */

/* ── TABLET (768px+) ─────────────────────────────────────────── */

@media (min-width: 768px) {
    /* Tipografía más grande en tablet */
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 24px;
    }
    h4 {
        font-size: 20px;
    }

    /* Contenedor con más padding lateral */
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    /* Sección con gap completo */
    .section {
        padding-top: var(--section-gap);
        padding-bottom: var(--section-gap);
    }

    /* Grillas se expanden a 2 columnas */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Navbar */
    .navbar__container {
        padding: 14px 32px;
    }

    .navbar--scrolled .navbar__container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar__logo img {
        height: 46px;
    }

    .navbar-spacer {
        height: 74px;
    }

    /* Hero */
    .hero__title {
        font-size: 38px;
    }

    .hero__stats {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Servicios: 2 columnas */
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Blog: 2 columnas */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Partners: 3 logos */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA Banner */
    .cta-banner {
        padding: 70px 40px;
        margin-top: var(--section-gap);
    }

    .cta-banner__title {
        font-size: 30px;
    }

    .cta-banner__circle--1 {
        width: 280px;
        height: 280px;
    }
    .cta-banner__circle--2 {
        width: 400px;
        height: 400px;
    }

    /* Footer: 2 columnas */
    .footer__columns {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 50px 32px 40px;
    }

    .footer__col--about {
        flex: 1 1 100%;
    }
    .footer__col--links {
        flex: 1 1 45%;
    }
    .footer__col--social {
        flex: 1 1 45%;
    }

    .footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 18px 32px;
    }

    .footer__contact {
        flex-direction: row;
        gap: 24px;
    }

    /* Contacto: 2 columnas */
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Post individual: título más grande */
    .single-post__title {
        font-size: 36px;
    }
}

/* ── DESKTOP (1024px+) ───────────────────────────────────────── */

@media (min-width: 1024px) {
    /* Tipografía completa en desktop */
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 36px;
    }
    h3 {
        font-size: 28px;
    }
    h4 {
        font-size: 22px;
    }

    /* Contenedor */
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Grillas completas */
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Navbar: mostrar menú desktop, ocultar hamburguesa */
    .navbar__container {
        padding: 16px 40px;
    }

    .navbar--scrolled .navbar__container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar__logo img {
        height: 48px;
    }

    .navbar--scrolled .navbar__logo img {
        height: 40px;
    }

    .navbar__nav {
        display: flex;
    }

    .navbar__cta {
        display: inline-flex;
    }

    .navbar__hamburger {
        display: none;
    }

    .navbar-spacer {
        height: 80px;
    }

    /* Hero: 2 columnas lado a lado */
    .hero__container {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 0 40px;
    }

    .hero__text {
        flex: 1 1 55%;
    }

    .hero__image {
        flex: 1 1 45%;
    }

    .hero__title {
        font-size: 46px;
    }

    .hero {
        padding: 60px 0 var(--section-gap);
    }

    /* Servicios: 3 columnas */
    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Equipo: 4 columnas */
    .equipo-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Blog: 3 columnas */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Partners: 4 logos */
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Press badge más grande */
    .press-badge__source {
        font-size: 34px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 80px 40px;
    }

    .cta-banner__title {
        font-size: 36px;
    }

    .cta-banner__subtitle {
        font-size: 18px;
    }

    /* Footer: 3 columnas */
    .footer__columns {
        flex-wrap: nowrap;
        gap: 48px;
        padding: 60px 40px 48px;
    }

    .footer__col--about {
        flex: 0 1 380px;
    }
    .footer__col--links {
        flex: 0 1 220px;
    }
    .footer__col--social {
        flex: 1 1 auto;
    }

    .footer__bottom-inner {
        padding: 18px 40px;
    }

    /* Post individual */
    .single-post__title {
        font-size: 42px;
    }

    .post-content {
        font-size: 18px;
    }
}

/* ── DESKTOP GRANDE (1280px+) ────────────────────────────────── */

@media (min-width: 1280px) {
    .navbar__menu {
        gap: 4px;
    }

    .navbar__menu li a {
        padding: 8px 18px;
        font-size: 15px;
    }

    .hero__title {
        font-size: 52px;
    }

    .hero__description {
        font-size: 18px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   SEARCH HERO — Encabezado con formulario integrado
   ══════════════════════════════════════════════════════════════════ */

.search-hero {
    padding: 40px 0 24px;
}

.search-hero__content {
    max-width: 640px;
}

.search-hero__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-blue);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Formulario de búsqueda en el hero */
.search-hero__form {
    display: flex;
    max-width: 500px;
}

.search-hero__input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    border: 2px solid var(--hp-light);
    border-right: none;
    border-radius: 12px 0 0 12px;
    outline: none;
    transition: border-color var(--transition);
}

.search-hero__input:focus {
    border-color: var(--hp-blue);
}

.search-hero__input::placeholder {
    color: var(--text-light);
}

.search-hero__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--hp-orange);
    border: 2px solid var(--hp-orange);
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition);
}

.search-hero__btn:hover {
    background-color: var(--hp-orange-dark);
    border-color: var(--hp-orange-dark);
}

/* ── Badge para tipo de resultado (Página) ───────────────────── */

.search-result__type {
    color: var(--hp-blue);
    cursor: default;
}

/* ══════════════════════════════════════════════════════════════════
   SEARCH EMPTY — Estado sin resultados
   ══════════════════════════════════════════════════════════════════ */

.search-empty {
    text-align: center;
    padding: 48px 20px;
}

.search-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-color: var(--hp-light);
    color: var(--text-light);
    margin-bottom: 24px;
}

.search-empty h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.search-empty > p {
    color: var(--text-medium);
    max-width: 460px;
    margin: 0 auto 28px;
}

/* Sugerencias */
.search-empty__suggestions {
    text-align: left;
    max-width: 420px;
    margin: 0 auto 32px;
    padding: 20px 24px;
    background-color: var(--hp-cream);
    border-radius: var(--card-radius);
}

.search-empty__suggestions p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.search-empty__suggestions ul {
    list-style: disc;
    margin: 0 0 0 20px;
    padding: 0;
}

.search-empty__suggestions li {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Links rápidos */
.search-empty__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px+)
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .search-hero__title {
        font-size: 36px;
    }

    .search-empty h2 {
        font-size: 28px;
    }
}
