/* ==========================================================================
   CLÍNICA MENTALIS - HOJA DE ESTILOS PRINCIPAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Paleta de colores principal */
    --color-primary: #263717;
    /* Verde Bosque */
    --color-primary-dark: #1a2610;
    /* Verde Bosque Oscuro */
    --color-primary-light: #F4EFEB;
    /* Crema cálido (fondo claro) */
    --color-accent: #8F9E65;
    /* Verde Salvia */

    /* Textos */
    --color-text-main: #263717;
    /* Títulos principales */
    --color-text-body: #4a5240;
    /* Cuerpo de texto */

    /* Fondos adicionales */
    --color-bg-light: #F4EFEB;
    /* Fondo claro crema */
    --color-bg-white: #ffffff;
    /* Blanco */
    --color-bg-dark: #1a2610;
    /* Fondo oscuro */
    --color-border: #e2ddd5;

    /* Tipografía */
    --font-display: 'Manrope', sans-serif;
    --font-icon: 'Material Symbols Outlined';

    /* Radios, sombras y transiciones */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   RESETS Y ESTILOS BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-display);
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* Asegura un margen superior al navegar a anchor links (header sticky height) */
    color: var(--color-text-body);
    font-size: 16px;
    max-width: 100vw;
}

body {
    background-color: var(--color-bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

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

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   CLASES UTILITARIAS COMUNES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 5rem;
    }
}

.icon {
    font-family: var(--font-icon);
    font-Variation-Settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    display: inline-block;
    line-height: 1;
}

.page-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    /* Removido el overflow-x: hidden del wrapper para no romper el position: sticky */
    /* Mantener overflow-x: clip es una alternativa segura para permitir el sticky en Safari/Chrome viejo */
    overflow-x: clip;
}

/* Utilidades de espaciado y fondo */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-primary-dark {
    background-color: var(--color-primary-dark);
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

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

.text-white {
    color: var(--color-bg-white);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 3rem;
    /* 48px */
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

.btn--accent:hover {
    background-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn--outline {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border: 1px solid rgba(38, 55, 23, 0.2);
}

.btn--outline:hover {
    background-color: rgba(143, 158, 101, 0.1);
    /* accent/10 */
    color: var(--color-primary-dark);
}

.btn--white {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    padding: 0 2rem;
}

.btn--white:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Enlaces */
.link--accent {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.875rem;
}

.link--accent:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.link--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link--icon .icon {
    font-size: 1.125rem;
}

/* Etiquetas (Badge) */
.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    border: 1px solid rgba(143, 158, 101, 0.2);
}

.badge__icon {
    font-size: 0.875rem;
}

/* Tipografía de Secciones */
.section-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .section-header.text-center {
        align-items: center;
    }

    .side-by-side {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section-title--light {
    color: var(--color-bg-light);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-body);
    max-width: 42rem;
}

.section-desc--light {
    color: #d1d5db;
    /* Gris claro aproximado */
}

/* ==========================================================================
   WEB COMPONENTS BASE
   ========================================================================== */
app-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Alto z-index para asegurar superposición global */
    width: 100%;
}

app-footer {
    display: block;
    width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(244, 239, 235, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    transition: box-shadow 0.3s ease;
    /* La clase .header interna hereda el estado de app-header */
    position: relative;
    z-index: 50;
}

/* Modificador cuando el menú móvil está abierto para evitar bugs en iOS Safari */
.header.is-menu-open {
    background-color: var(--color-bg-light);
    /* Fondo sólido */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Sombra dinámica para el sticky */
.header.is-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo-link {
    display: flex;
    align-items: center;
}

.header__logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

/* Menú móvil: oculto por defecto con transición suave */
.header__nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-light);
    z-index: 9999;
    padding: 3rem 2rem;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    /* Variables y layouts para el contenido interno (Top, Center, Bottom) */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Estado cerrado: invisible e ininteractuable */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Elementos del menú móvil */
.header__nav-mobile-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: auto; /* Empuja el menú al centro */
    padding-top: 1rem;
}

.header__nav-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.header__nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin: auto 0;
}

.header__nav-mobile-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto; /* Empuja el centro hacia arriba */
    padding-top: 3rem; /* Añade más espacio visual arriba del enlace */
    padding-bottom: 2rem;
}

.header__nav-credit {
    font-size: 0.75rem;
    color: var(--color-text-main);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header__nav-credit:hover {
    opacity: 1;
}

/* Menú móvil abierto */
.header__nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Position nav absolutely centered relative to header */
    }

    /* Ocultar elementos exclusivos de móvil en desktop */
    .header__nav-mobile-top,
    .header__nav-mobile-bottom {
        display: none !important;
    }

    /* Restaurar visualización horizontal para enlaces de la barra de navegación */
    .header__nav-links {
        flex-direction: row;
        width: auto;
        margin: 0;
    }

    .header__container {
        position: relative;
        z-index: 10;
    }

    .header__nav {
        display: flex;
        flex: 1;
        justify-content: center;
        gap: 2rem;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 20;
        /* Siempre visible en desktop — sobreescribe el estado cerrado móvil */
        opacity: 1;
        pointer-events: auto;
        transition: none;
        background-color: transparent;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        flex-direction: row;
    }

    /* is-open no afecta posición en desktop; el nav está siempre visible */
    .header__nav.is-open {
        flex-direction: row;
    }
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-main);
    position: relative;
    padding-bottom: 0.25rem;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.header__nav-link:hover {
    color: var(--color-accent);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}

.header__nav-link--active {
    color: var(--color-accent);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__whatsapp {
    height: 2.5rem;
    /* 40px */
    font-size: 0.875rem;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__whatsapp-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    /* Hereda el texto en blanco del botón */
}

.header__whatsapp-text {
    display: none;
}

@media (min-width: 640px) {
    .header__whatsapp-text {
        display: inline;
    }
}

.header__menu-btn {
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* z-index mayor que el nav (9999) para que la X quede siempre encima */
    z-index: 10001;
    position: relative;
}

.header__menu-btn .icon {
    font-size: 2.25rem;
    /* 75% de 3rem */
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 48;
    transition: transform 0.2s ease;
}

/* Ocultar el botón hamburguesa cuando el overlay está abierto */
.header.is-menu-open .header__menu-btn {
    display: none;
}

@media (min-width: 1024px) {
    .header__menu-btn {
        display: none;
    }
}

/* Botón X dentro del overlay móvil */
.header__nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    z-index: 10002;
    transition: color 0.2s ease, transform 0.2s ease;
}

.header__nav-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.header__nav-close .icon {
    font-size: 2rem;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

@media (min-width: 1024px) {
    .header__nav-close {
        display: none;
    }
}


/* ==========================================================================
   HERO SLIDER SECTION
   ========================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 500px;
    height: auto;
    /* Cambiado de fijo a auto para mobile */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    background-color: var(--color-bg-light);
}

@media (min-width: 1024px) {
    .hero-slider {
        height: calc(100vh - 75px);
        /* Altura fija solo en desktop */
    }
}

.hero-slider__slide {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    padding: 3rem 0 6rem 0;
    /* Aumentado padding para dar espacio a controls */
    width: 100%;
}

.hero-slider__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Animaciones sutiles de entrada (Efecto escalonado) */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider__slide.active .badge {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-slider__slide.active .hero__title {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.hero-slider__slide.active .hero__text {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-slider__slide.active .hero__actions {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
    opacity: 0;
}

.hero-slider__slide.active .hero__image-wrapper {
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-slider__slide.active .floating-card {
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

@media (min-width: 1024px) {
    .hero-slider__slide {
        padding: 2rem 0;
        /* Reducido de 6rem a 2rem para no empujar el contenido abajo */
    }
}

.hero__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reducido de 2.5rem */
    width: 100%;
}

@media (min-width: 1024px) {
    .hero__container {
        flex-direction: row;
        align-items: center;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* Reducido ligeramente de 1.5rem */
}

@media (min-width: 1024px) {
    .hero__content {
        width: 50%;
    }
}

.hero__title {
    font-size: 2rem;
    /* Reducido de 2.25rem */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
        /* Reducido de 3rem */
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3.25rem;
        /* Reducido de 3.75rem */
    }
}

.hero__text {
    font-size: 1rem;
    /* Reducido de 1.125rem */
}

@media (min-width: 768px) {
    .hero__text {
        max-width: 90%;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.5rem;
}

.hero__visual {
    position: relative;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .hero__visual {
        width: 50%;
        margin-top: 0;
    }
}

.hero__image-wrapper {
    width: 100%;
    aspect-ratio: 3/2;
    /* Más horizontal en mobile para no ocupar tanto alto */
    overflow: hidden;
    border-radius: 1rem;
    background-color: #f3f4f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--color-bg-white);
}

.hero__image-wrapper--principal {
    aspect-ratio: 1134 / 755;
}

@media (min-width: 1024px) {
    .hero__image-wrapper {
        aspect-ratio: 1/1;
    }
    
    .hero__image-wrapper--principal {
        aspect-ratio: 1134 / 755;
    }
}

.hero__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.floating-card {
    display: none;
    position: absolute;
    bottom: -1.5rem;
    left: -1rem;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(38, 55, 23, 0.12);
    border: 1px solid rgba(38, 55, 23, 0.1);
}

@media (min-width: 768px) {
    .floating-card {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .floating-card {
        bottom: 2.5rem;
        left: -3rem;
    }
}

.floating-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(143, 158, 101, 0.2);
    color: var(--color-primary);
}

.floating-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.floating-card__desc {
    font-size: 0.75rem;
    color: var(--color-text-body);
}

/* Slider Controls */
.hero-slider__controls {
    position: absolute;
    bottom: 0px;
    /* Movido al final de la pantalla */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    background-color: var(--color-bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* Solo esquinas superiores */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    /* Sombra hacia arriba */
    border: 1px solid var(--color-border);
    border-bottom: none;
}

@media (min-width: 1024px) {
    .hero-slider__controls {
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-slider__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    transition: var(--transition);
}

.hero-slider__btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

.hero-slider__dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0.5rem;
}

.hero-slider__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: rgba(38, 55, 23, 0.2);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    border: none;
}

.hero-slider__dot.active {
    background-color: var(--color-accent);
    width: 1.5rem;
    border-radius: 1rem;
}


/* ==========================================================================
   NUESTRA FILOSOFIA
   ========================================================================== */
.philosophy__grid {
    display: grid;
    gap: 1.5rem;
}

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

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(143, 158, 101, 0.15);
    background-color: var(--color-bg-white);
    padding: 2.5rem 2rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--color-accent);
    transition: height 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(143, 158, 101, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: var(--color-bg-light);
    color: var(--color-accent);
    border: 1px solid rgba(143, 158, 101, 0.2);
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.feature-card__icon-wrapper .icon {
    font-size: 2rem;
}

.feature-card:hover .feature-card__icon-wrapper {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    transform: rotate(5deg);
}

.feature-card__title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.feature-card__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.feature-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #4b5563;
}

.feature-card__list li::before {
    content: '\e5cc';
    /* material-icons chevron_right */
    font-family: 'Material Symbols Outlined';
    color: var(--color-accent);
    font-size: 1.125rem;
    margin-top: -1px;
}

/* ==========================================================================
   NUESTROS PROFESIONALES
   ========================================================================== */
.team__slider-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 3rem;
}

.team__grid {
    display: flex;
    gap: 0;
    /* Gap zero for mobile to ensure 100% width alignment */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    /* Change to auto to allow JS-controlled smooth scroll without double-timing */
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    scrollbar-width: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Ocultar clones en desktop para no romper el grid de 3 columnas */
@media (min-width: 1024px) {
    .professional-card.is-cloned {
        display: none;
    }
}

.team__grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.professional-card {
    flex: 0 0 100%;
    /* 100% width for mobile centering */
    scroll-snap-align: center;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(143, 158, 101, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.professional-card__image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background-color: var(--color-bg-light);
}

.professional-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.professional-card:hover .professional-card__img {
    transform: scale(1.05);
}

.professional-card__content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.professional-card__name {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.professional-card__specialty {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.professional-card__bio {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #616e53;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.professional-card__btn {
    margin-top: auto;
}

@media (min-width: 768px) {
    .team__grid {
        gap: 1.5rem;
        /* Restore gap for tablet/desktop */
    }

    .professional-card {
        flex: 0 0 calc(50% - 0.75rem);
        scroll-snap-align: start;
    }
}

@media (min-width: 1024px) {
    .team__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 0;
        gap: 2rem;
        scroll-snap-type: none;
    }

    .professional-card {
        width: 100%;
    }

    .professional-card__bio {
        -webkit-line-clamp: none;
        line-clamp: none;
        overflow: visible;
    }
}

/* ==========================================================================
   ESPECIALIDADES CLINICAS
   ========================================================================== */
.specialties__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .specialties__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.specialty-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: var(--color-primary);
}

.specialty-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(38, 55, 23, 0.9) 0%, rgba(38, 55, 23, 0.3) 50%, transparent 100%);
    transition: opacity 0.3s ease;
}

.specialty-card:hover .specialty-card__overlay {
    opacity: 0.8;
}

.specialty-card__bg {
    height: 20rem;
    /* 320px */
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.specialty-card:hover .specialty-card__bg {
    transform: scale(1.05);
}

.specialty-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 20;
    padding: 1.5rem;
}

.specialty-card__icon {
    margin-bottom: 0.5rem;
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: rgba(143, 158, 101, 0.9);
    color: var(--color-bg-white);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.specialty-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-bg-white);
}

.specialty-card__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-bg-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialty-card:hover .specialty-card__desc {
    opacity: 1;
}


/* ==========================================================================
   POR QUE ELEGIR (WHY US)
   ========================================================================== */
.relative-overflow {
    position: relative;
    overflow: hidden;
    color: var(--color-bg-white);
}

.blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0.1;
    filter: blur(3rem);
}

.blob--top-right {
    top: -5rem;
    right: -5rem;
}

.blob--bottom-left {
    bottom: -5rem;
    left: -5rem;
}

.why-us__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .why-us__container {
        flex-direction: row;
        align-items: center;
    }
}

.why-us__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}

.features-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.features-list__icon .icon {
    font-size: 0.875rem;
    font-weight: 700;
}

.features-list__text {
    font-weight: 500;
    color: var(--color-bg-light);
}


.why-us__visuals {
    flex: 1;
    position: relative;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.why-us__image-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-us__image-col--down {
    padding-top: 2rem;
}

.why-us__image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(244, 239, 235, 0.2);
}

/* ==========================================================================
   FOOTER (BEM REFACTOR)
   ========================================================================== */
.footer {
    padding-top: 4rem;
    color: var(--color-bg-white);
    border-top: 1px solid rgba(38, 55, 23, 0.5);
}

.footer__grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

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

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

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer__logo {
    height: 2.9rem;
    /* +20% adicional para mobile */
    width: auto;
    object-fit: contain;
    margin-left: -5px;
    /* Compensación para alineación visual con el texto */
}

@media (min-width: 1024px) {
    .footer__logo {
        height: 2.4rem;
        /* +20% para desktop */
    }
}

.footer__desc {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__title {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--color-bg-light);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer__link {
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__list-item--icon {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.footer__contact-icon {
    color: var(--color-accent);
    font-size: 1.125rem;
}

.footer__list-item--flex {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.footer__bottom {
    border-top: 1px solid var(--color-primary);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================================================
   PÁGINA NOSOTROS (ABOUT)
   ========================================================================== */

/* Hero "Nosotros" */
.about-hero {
    background-color: var(--color-secondary);
    background-image: linear-gradient(to right, rgba(38, 55, 23, 0.9) 0%, rgba(38, 55, 23, 0.6) 100%), url('../img/nosotros/hero-nosotros.jpg');
    background-size: cover;
    background-position: center 20%;
    color: var(--color-bg-light);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    /* Removed radial pattern as we now have a photo background */
    display: none;
}

.about-hero__container {
    position: relative;
    z-index: 1;
}

.about-hero__content {
    max-width: 800px;
}

.about-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .about-hero__title {
        font-size: 3.5rem;
    }
}

.highlight-text {
    color: var(--color-primary);
}

.about-hero .highlight-text {
    color: var(--color-accent);
    /* Verde salvia para contrastar sobre el fondo oscuro */
}

.about-hero__text {
    font-size: 1.125rem;
    color: rgba(244, 239, 235, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Search Bar (Hero) */
.search-bar {
    background-color: var(--color-bg-white);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 500px;
}

@media (min-width: 640px) {
    .search-bar {
        flex-direction: row;
    }
}

.search-bar__input-wrapper {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    flex-grow: 1;
}

.search-bar__icon {
    color: rgba(143, 158, 101, 0.7);
    margin-right: 0.5rem;
}

.search-bar__input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--color-secondary);
    font-size: 0.875rem;
    outline: none;
}

.search-bar__input::placeholder {
    color: rgba(92, 102, 85, 0.6);
}

.search-bar__btn {
    width: 100%;
}

@media (min-width: 640px) {
    .search-bar__btn {
        width: auto;
    }
}

/* About Filters */
.about-filters {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid rgba(143, 158, 101, 0.1);
    position: sticky;
    top: 5rem;
    /* After header */
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.about-filters__container {
    padding: 1rem 0;
    display: flex;
    align-items: center;
}

.about-filters__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-right: 0.75rem;
    white-space: nowrap;
}

.about-filters__scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.about-filters__scroll::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: var(--color-bg-light);
    border: 1px solid rgba(143, 158, 101, 0.2);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--color-secondary);
    border-color: rgba(143, 158, 101, 0.5);
}

.filter-btn--active {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-btn--active:hover {
    color: var(--color-bg-white);
    border-color: var(--color-secondary);
}

.filter-btn .icon {
    font-size: 1.125rem;
}

/* About Team Grid Section */
.about-team {
    padding: 4rem 0;
    background-color: var(--color-bg-light);
}

.about-team__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .about-team__header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.about-team__count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.about-team__count-number {
    font-weight: 700;
    color: var(--color-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

/* Re-using .professional-card from index, but ensuring it stacks normally */
.about-grid .professional-card {
    flex: none;
    /* Override flex behavior from slider */
    width: 100%;
    margin: 0;
    transform: none;
    /* override translateZ if needed for static grid */
}

.about-grid .professional-card:hover {
    transform: translateY(-8px);
}

.professional-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(143, 158, 101, 0.9);
    color: var(--color-bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.professional-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(38, 55, 23, 0.8), transparent);
    z-index: 2;
}

.professional-card__tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(143, 158, 101, 0.2);
    background-color: rgba(38, 55, 23, 0.8);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    color: white;
    /* override for legibility */
}

.professional-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.professional-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.professional-card__feature .icon {
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.professional-card__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.professional-card__actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination__btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(143, 158, 101, 0.2);
    background-color: transparent;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination__btn:hover:not(:disabled) {
    background-color: rgba(143, 158, 101, 0.1);
}

.pagination__btn--active {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    border-color: var(--color-secondary);
    font-weight: 700;
}

.pagination__btn--active:hover {
    background-color: var(--color-secondary);
}

.pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* About Values */
/* ==========================================================================
   ABOUT VALUES - Premium Redesign (dark forest-green bg)
   ========================================================================== */

.about-values {
    background-color: var(--color-primary-dark);
    /* #1a2610 - deep forest green */
    color: #ffffff;
    padding: 5rem 0;
    overflow: hidden;
}

/* Two-column grid: headline left, features right */
.about-values__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 900px) {
    .about-values__container {
        grid-template-columns: 1fr 1.35fr;
        gap: 5rem;
        align-items: center;
    }
}

/* ---- Left: headline block ---- */
.about-values__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
}

.about-values__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(143, 158, 101, 0.5);
    border-radius: 100px;
}

.about-values__heading {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

@media (min-width: 768px) {
    .about-values__heading {
        font-size: 2.8rem;
    }
}

.about-values__subtext {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 34ch;
}

.about-values__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.85rem;
    border: 1.5px solid rgba(143, 158, 101, 0.7);
    border-radius: 100px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    background-color: transparent;
}

.about-values__cta:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
}

/* ---- Right: feature rows ---- */
.about-values__features {
    display: flex;
    flex-direction: column;
}

.about-values__feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}

.about-values__feature:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-values__feature:hover {
    background-color: rgba(255, 255, 255, 0.025);
}

/* Number label */
.about-values__feature-num {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    min-width: 22px;
    padding-top: 0.2rem;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Icon circle */
.about-values__feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(143, 158, 101, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
    transition: background-color 0.25s ease;
}

.about-values__feature:hover .about-values__feature-icon-wrap {
    background-color: rgba(143, 158, 101, 0.32);
}

/* Text */
.about-values__feature-body {
    flex: 1;
}

.about-values__feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.about-values__feature-text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .about-values {
        padding: 3.5rem 0;
    }

    .about-values__heading {
        font-size: 1.9rem;
    }

    .about-values__feature {
        padding: 1.35rem 0;
    }

    .about-values__subtext {
        max-width: 100%;
    }
}

.footer__legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer__legal-link {
    transition: color 0.3s ease;
}

.footer__legal-link:hover {
    color: var(--color-bg-white);
}

.footer__copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer__separator {
    display: none;
}

@media (min-width: 768px) {
    .footer__copyright {
        flex-direction: row;
        gap: 0;
        align-items: center;
    }

    .footer__separator {
        display: inline;
    }
}

/* Crédito de diseño */
.footer__credit-link {
    color: rgba(255, 255, 255, 0.45);
    font-size: inherit;
    transition: color 0.3s ease;
}

/* ==========================================================================
   TEAM SECTION PROFILE LIST (nosotros.html)
   ========================================================================== */

.team-section {
    padding: 5rem 0 4rem;
    background-color: var(--color-bg-light);
}

.team-section__intro {
    text-align: center;
    margin-bottom: 4rem;
}

/* Specialty Group */
.team-specialty {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(143, 158, 101, 0.2);
}

.team-specialty:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.team-specialty__header {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--color-accent);
}

.team-specialty__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.team-specialty__desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Individual Profile Row */
.team-specialty__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-profile {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(143, 158, 101, 0.12);
    transition: box-shadow 0.25s ease;
}

.team-profile:hover {
    box-shadow: 0 6px 24px rgba(38, 55, 23, 0.08);
}

/* Photo */
.team-profile__photo-wrapper {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-bg-light);
    border: 3px solid rgba(143, 158, 101, 0.25);
}

.team-profile__photo-wrapper--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-profile__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Bio Area */
.team-profile__info {
    flex: 1;
    min-width: 0;
}

.team-profile__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.2rem;
}

.team-profile__role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.team-profile__credentials {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.team-profile__bio {
    font-size: 0.875rem;
    color: var(--color-text-main);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.team-profile__cta {
    display: inline-flex;
    text-decoration: none;
}


/* ==========================================================================
   ESPECIALIDADES PAGE (especialidades.html)
   ========================================================================== */

/* ---- Hero ---- */
.esp-hero {
    background-color: var(--color-primary);
    background-image:
        linear-gradient(160deg, rgba(14, 22, 8, 0.75) 0%, rgba(38, 55, 23, 0.55) 100%),
        url('../img/especialidades/hero-especialidades.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    color: #ffffff;
    padding: 8rem 0 6rem;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.esp-hero__container {
    /* usa el ancho completo del container — el contenido queda a la izquierda */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Limitar el bloque de texto para que la foto se vea a la derecha */
.esp-hero__label,
.esp-hero__title,
.esp-hero__text,
.esp-hero__actions {
    max-width: 580px;
    width: 100%;
}


.esp-hero__label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(143, 158, 101, 0.5);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.esp-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .esp-hero__title {
        font-size: 3.5rem;
    }
}

.esp-hero__text {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin-bottom: 2rem;
}

.esp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- Lista de especialidades ---- */
.esp-lista {
    padding: 5rem 0;
    background-color: var(--color-bg-light);
}

.esp-lista__intro {
    text-align: center;
    margin-bottom: 3.5rem;
}

.esp-lista__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .esp-lista__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Especialidad Card ---- */
.esp-card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(143, 158, 101, 0.15);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.esp-card:hover {
    box-shadow: 0 12px 40px rgba(38, 55, 23, 0.1);
    transform: translateY(-3px);
}

.esp-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background-color: rgba(143, 158, 101, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}

.esp-card:hover .esp-card__icon-wrap {
    background-color: var(--color-primary);
}

.esp-card__icon {
    font-size: 1.75rem;
    color: var(--color-primary);
    transition: color 0.25s ease;
}

.esp-card:hover .esp-card__icon {
    color: #ffffff;
}

.esp-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.esp-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.esp-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.esp-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.esp-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.esp-card__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-main, #374151);
    line-height: 1.5;
}

.esp-card__check {
    font-size: 1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.esp-card__cta {
    align-self: flex-start;
    text-decoration: none;
}

/* ---- Enfoque / Metodología ---- */
.esp-enfoque {
    padding: 5rem 0;
    background-color: var(--color-bg-white);
}

.esp-enfoque__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .esp-enfoque__container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 5rem;
    }
}

.esp-enfoque__label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.esp-enfoque__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .esp-enfoque__title {
        font-size: 2.5rem;
    }
}

.esp-enfoque__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 2rem;
}

.esp-enfoque__pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esp-enfoque__pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.esp-enfoque__pillar-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.esp-enfoque__pillar strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.esp-enfoque__pillar p {
    font-size: 0.875rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.55;
    margin: 0;
}

/* Stats panel */
.esp-enfoque__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.esp-enfoque__stat {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(143, 158, 101, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.esp-enfoque__stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.esp-enfoque__stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.4;
}

/* ---- CTA Final ---- */
.esp-cta {
    background-color: var(--color-primary-dark);
    padding: 5rem 0;
    text-align: center;
}

.esp-cta__container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.esp-cta__title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .esp-cta__title {
        font-size: 2.5rem;
    }
}

.esp-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    max-width: 50ch;
}

.esp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn--outline-dark {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background-color: transparent;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn--outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Mobile adjustments para esp- (todas las secciones de especialidades.html) */
@media (max-width: 767px) {

    /* Hero */
    .esp-hero {
        padding: 5.5rem 0 4rem;
        min-height: auto;
        align-items: flex-start;
    }

    .esp-hero__title {
        font-size: 2rem;
    }

    .esp-hero__text {
        font-size: 0.95rem;
    }

    .esp-hero__actions {
        flex-direction: column;
    }

    .esp-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Nav anclada: 2 columnas en mobile */
    .esp-nav {
        top: 60px;
    }

    .esp-nav__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow-x: visible;
    }

    .esp-nav__link {
        padding: 0.85rem 1rem;
        font-size: 0.78rem;
        justify-content: flex-start;
        border-bottom: 2px solid transparent;
    }

    .esp-nav__link--urgencia {
        margin-left: 0;
    }

    /* Secciones de especialidad */
    .esp-seccion {
        padding: 3rem 0;
    }

    .esp-seccion__title {
        font-size: 1.6rem;
    }

    /* El body de cada sección: columna única */
    .esp-seccion__body {
        grid-template-columns: 1fr;
    }

    /* El sidebar baja debajo del main */
    .esp-seccion__sidebar {
        order: 2;
    }

    .esp-seccion__main {
        order: 1;
    }

    /* Bloques de contenido */
    .esp-about {
        padding: 1.25rem;
    }

    .esp-condiciones {
        padding: 1.25rem;
    }

    .esp-condiciones__lista {
        grid-template-columns: 1fr;
    }

    .esp-proceso {
        padding: 1.25rem;
    }

    /* FAQ */
    .esp-faq {
        padding: 1.25rem;
    }

    /* Urgencias */
    .esp-urgencias {
        padding: 3rem 0;
    }

    .esp-urgencias__title {
        font-size: 1.7rem;
    }

    .esp-urgencias__body {
        grid-template-columns: 1fr;
    }

    .esp-urgencias__cta {
        width: 100%;
        justify-content: center;
    }

    /* CTA final (si existe) */
    .esp-cta {
        padding: 3rem 0;
    }

    .esp-cta__title {
        font-size: 1.7rem;
    }

    .esp-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .esp-cta__btn {
        text-align: center;
        justify-content: center;
    }
}


/* ==========================================================================
   ESPECIALIDADES PAGE — Extended Content CSS
   ========================================================================== */

/* ---- Anchor nav ---- */
.esp-nav {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid rgba(143, 158, 101, 0.15);
    position: sticky;
    top: 70px;
    /* debajo del header fijo */
    z-index: 40;
    box-shadow: 0 2px 12px rgba(38, 55, 23, 0.06);
}

.esp-nav__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow-x: hidden;
    scrollbar-width: none;
}

@media (min-width: 768px) {
    .esp-nav__container {
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
    }
}

.esp-nav__container::-webkit-scrollbar {
    display: none;
}

.esp-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
    .esp-nav__link {
        flex-direction: row;
        white-space: nowrap;
        padding: 0.9rem 1.25rem;
    }
}

.esp-nav__link:hover,
.esp-nav__link.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.esp-nav__link--urgencia {
    color: #b91c1c;
}

@media (min-width: 768px) {
    .esp-nav__link--urgencia {
        margin-left: auto;
    }
}

.esp-nav__link--urgencia:hover {
    color: #991b1b;
    border-bottom-color: #b91c1c;
}

/* ---- Sección por especialidad ---- */
.esp-seccion {
    padding: 5rem 0;
    background-color: var(--color-bg-light);
}

.esp-seccion--alt {
    background-color: var(--color-bg-white);
}

.esp-seccion__container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Header de sección */
.esp-seccion__header {
    max-width: 760px;
}

.esp-seccion__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    background-color: rgba(143, 158, 101, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
}

.esp-seccion__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .esp-seccion__title {
        font-size: 2.4rem;
    }
}

.esp-seccion__intro {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
}

/* Body: 2 columnas en desktop */
.esp-seccion__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .esp-seccion__body {
        grid-template-columns: 1.35fr 1fr;
        gap: 4rem;
    }
}

.esp-seccion__main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.esp-seccion__cta {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    text-decoration: none;
}

/* ---- Bloque "Sobre el servicio" ---- */
.esp-about {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(38, 55, 23, 0.05);
}

.esp-seccion--alt .esp-about {
    background-color: var(--color-bg-light);
}

.esp-about--familias {
    border-left-color: var(--color-primary);
}

.esp-about__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background-color: rgba(38, 55, 23, 0.07);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.esp-about__title {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.esp-about__icon {
    color: var(--color-accent);
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.esp-about__text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.esp-about__text:last-child {
    margin-bottom: 0;
}

/* ---- Lista de condiciones ---- */
.esp-condiciones {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(38, 55, 23, 0.05);
}

.esp-seccion--alt .esp-condiciones {
    background-color: var(--color-bg-light);
}

.esp-condiciones__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.esp-condiciones__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 600px) {
    .esp-condiciones__lista {
        grid-template-columns: 1fr 1fr;
    }
}

.esp-condiciones__lista li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.esp-condiciones__lista .icon {
    font-size: 1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.esp-condiciones__nota {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background-color: rgba(143, 158, 101, 0.08);
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.55;
}

.esp-condiciones__nota .icon {
    font-size: 1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ---- Bloque de enfoque (texto simple) ---- */
.esp-enfoque-bloque {
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-xl);
    background-color: rgba(143, 158, 101, 0.07);
    border: 1px solid rgba(143, 158, 101, 0.2);
}

.esp-enfoque-bloque__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.esp-enfoque-bloque__text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ---- Proceso TCC - 3 pasos ---- */
.esp-proceso {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(38, 55, 23, 0.05);
}

.esp-proceso__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.esp-proceso__pasos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.esp-proceso__paso {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.esp-proceso__num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.8;
    line-height: 1;
    min-width: 32px;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.esp-proceso__info {
    flex: 1;
}

.esp-proceso__paso-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.esp-proceso__info p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ---- FAQ Acordeón ---- */
.esp-seccion__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esp-faq {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(38, 55, 23, 0.06);
    border: 1px solid rgba(143, 158, 101, 0.1);
}

.esp-seccion--alt .esp-faq {
    background-color: var(--color-bg-light);
}

.esp-faq__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.esp-faq__item {
    border-bottom: 1px solid rgba(38, 55, 23, 0.07);
}

.esp-faq__item:last-child {
    border-bottom: none;
}

.esp-faq__pregunta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.esp-faq__pregunta:hover {
    color: var(--color-accent);
}

.esp-faq__icono {
    font-size: 1.1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.esp-faq__pregunta--activo .esp-faq__icono {
    transform: rotate(180deg);
}

.esp-faq__respuesta {
    padding-bottom: 1rem;
}

.esp-faq__respuesta p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

/* FAQ variante oscura (urgencias) */
.esp-faq--dark {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.esp-faq--dark .esp-faq__title,
.esp-faq--dark .esp-faq__pregunta {
    color: #ffffff;
}

.esp-faq--dark .esp-faq__item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.esp-faq--dark .esp-faq__respuesta p {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Divisor entre especialidades ---- */
.esp-divisor {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(143, 158, 101, 0.3) 20%, rgba(143, 158, 101, 0.3) 80%, transparent);
    margin: 0;
}

/* ---- Sección Urgencias ---- */
.esp-urgencias {
    background-color: var(--color-primary-dark);
    padding: 5rem 0;
    color: #ffffff;
}

.esp-urgencias__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.esp-urgencias__alerta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.esp-urgencias__title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .esp-urgencias__title {
        font-size: 2.5rem;
    }
}

.esp-urgencias__intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 0.5rem;
}

.esp-urgencias__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .esp-urgencias__body {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.esp-urgencias__sub {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.esp-urgencias__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.esp-urgencias__lista li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.esp-urgencias__lista .icon {
    font-size: 1rem;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.esp-urgencias__info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.esp-urgencias__visitas {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.esp-urgencias__visitas-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.esp-urgencias__visitas strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.esp-urgencias__visitas p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

.esp-urgencias__aviso {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
}

.esp-urgencias__aviso .icon {
    font-size: 1rem;
    color: #f87171;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.esp-urgencias__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Mobile tweaks urgencias */
@media (max-width: 600px) {
    .esp-urgencias {
        padding: 3.5rem 0;
    }

    .esp-urgencias__title {
        font-size: 1.75rem;
    }

    .esp-seccion {
        padding: 3rem 0;
    }

    .esp-seccion__title {
        font-size: 1.7rem;
    }

    .esp-nav {
        top: 60px;
    }

    .esp-condiciones__lista {
        grid-template-columns: 1fr;
    }
}

/* Keyframe: slide de derecha a izquierda (solo mobile) */
@keyframes teamSlideIn {
    from {
        transform: translateX(60%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Horizontal Slider (767px max) - JS-driven */
@media (max-width: 767px) {

    .team-section {
        padding: 3.5rem 0 3rem;
    }

    .team-specialty {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .team-specialty__header {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .team-specialty__list {
        flex-direction: column;
        overflow: hidden;
        /* Clip la card que entra desde la derecha */
        gap: 0;
        padding: 0.5rem 1.25rem 0.5rem;
        position: relative;
    }

    /* All cards hidden by default on mobile; JS adds .is-active */
    .team-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: var(--radius-lg);
        background-color: var(--color-bg-white);
        box-shadow: 0 4px 20px rgba(38, 55, 23, 0.08);
        border: 1px solid rgba(143, 158, 101, 0.15);
        display: none;
    }

    .team-profile.is-active {
        display: flex;
        /* Animación de entrada: desliza desde la derecha */
        animation: teamSlideIn 0.5s ease-out both;
    }

    .team-profile__photo-wrapper {
        width: 105px;
        height: 105px;
        margin-bottom: 1rem;
    }

    .team-profile__cta {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Dot indicators injected by JS */
    .team-slider-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-bottom: 0.25rem;
    }

    .team-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(143, 158, 101, 0.3);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .team-slider-dot.is-active {
        background-color: var(--color-primary);
        transform: scale(1.35);
    }
}

.footer__credit-link:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

/* ==========================================================================
   BLOG PAGE (blog.html)
   ========================================================================== */

/* ---- Contenedor principal ---- */
.blog-main {
    padding: 2.5rem 0 5rem;
    background-color: var(--color-bg-light);
    min-height: 70vh;
}

.blog-main__inner {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ---- Hero del artículo ---- */
/* ==========================================================================
   BLOG PAGE (blog.html)
   ========================================================================== */

/* ---- Página ---- */
.blog-main {
    padding: 2.5rem 0 4rem;
    background-color: var(--color-bg-light);
}

/* ---- Hero ---- */
.blog-hero {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 21 / 7;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(38, 55, 23, 0.12);
}

@media (max-width: 767px) {
    .blog-hero {
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-lg);
        margin-bottom: 1.5rem;
    }
}

.blog-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
}

.blog-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .blog-hero__content {
        padding: 1rem 1.25rem;
    }
}

.blog-hero__tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 100px;
}

.blog-hero__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    max-width: 760px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

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

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

/* ---- Layout: sidebar + artículo ---- */
/* CRÍTICO: flex sin min-width:0 en hijos causa overflow */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    /* Fix para prevenir glitch de renderizado (smearing) con sticky en Chrome */
    transform: translateZ(0);
    will-change: transform;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 900px) {
    .blog-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

/* ---- Sidebar ---- */
.blog-sidebar {
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
}

@media (min-width: 900px) {
    .blog-sidebar {
        width: 240px;
        position: sticky;
        top: 90px;
        transform: translateZ(0);
        will-change: transform;
        z-index: 10;
    }
}

.blog-sidebar__card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(143, 158, 101, 0.12);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 2px 16px rgba(38, 55, 23, 0.05);
}

.blog-sidebar__divider {
    height: 1px;
    background-color: rgba(38, 55, 23, 0.08);
}

/* Autor */
.blog-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .blog-author {
        flex-direction: column;
        align-items: flex-start;
    }
}

.blog-author__photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .blog-author__photo {
        width: 72px;
        height: 72px;
    }
}

.blog-author__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.blog-author__role {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Meta */
.blog-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.blog-meta__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-meta__icon {
    font-size: 0.95rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Compartir */
.blog-share__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.blog-share__buttons {
    display: flex;
    gap: 0.4rem;
}

.blog-share__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: rgba(38, 55, 23, 0.06);
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-share__btn:hover {
    background-color: rgba(143, 158, 101, 0.2);
}

.blog-share__btn .icon {
    font-size: 0.95rem;
}

/* ---- Artículo principal ---- */
/* min-width: 0 es ESENCIAL para que flex no desborde */
.blog-article {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

.blog-article__lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.blog-article__h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 2.25rem 0 1rem;
    line-height: 1.2;
}

.blog-article__h2-icon {
    font-size: 1.6rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.blog-article__h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.75rem 0 0.85rem;
}

.blog-article__p {
    font-size: 0.96rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.15rem;
}

.blog-article__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.blog-article__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.6;
}

.blog-article__check {
    font-size: 1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Cita destacada */
.blog-quote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 1.75rem 1.5rem 2rem;
    background-color: var(--color-bg-white);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-sizing: border-box;
}

.blog-quote__icon {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 2.2rem;
    color: rgba(143, 158, 101, 0.15);
    line-height: 1;
}

.blog-quote__text {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.6;
    margin: 0 0 0.65rem;
}

.blog-quote__author {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* Galería */
/* width: 100% + box-sizing evita desbordamiento del flex padre */
.blog-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 1.75rem 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .blog-gallery {
        grid-template-columns: 1fr;
    }
}

.blog-gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 200px;
}

.blog-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-gallery__item:hover .blog-gallery__img {
    transform: scale(1.05);
}

/* CTA dentro del artículo */
.blog-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.75rem;
    background-color: rgba(143, 158, 101, 0.08);
    border: 1px solid rgba(143, 158, 101, 0.25);
    border-radius: var(--radius-xl);
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 600px) {
    .blog-cta {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

.blog-cta__icon-wrap {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(38, 55, 23, 0.08);
}

.blog-cta__icon {
    font-size: 1.6rem;
    color: var(--color-accent);
}

.blog-cta__body {
    flex: 1;
    min-width: 0;
}

.blog-cta__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.blog-cta__text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.blog-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
}

/* ---- Artículos relacionados ---- */
.blog-relacionados {
    padding-top: 2.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(38, 55, 23, 0.1);
}

.blog-relacionados__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-relacionados__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.blog-relacionados__title .icon {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.blog-relacionados__ver-todo {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.blog-relacionados__ver-todo:hover {
    color: var(--color-primary);
}

/* ---- Grid de cards ---- */
.blog-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 580px) {
    .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .blog-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(143, 158, 101, 0.1);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    min-width: 0;
    /* Chrome glitch rendering fix on hover scale */
    transform: translateZ(0);
    will-change: transform;
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(38, 55, 23, 0.1);
    transform: translateY(-3px);
    border-color: rgba(143, 158, 101, 0.3);
}

.blog-card__img-wrap {
    height: 172px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__cat {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    backdrop-filter: blur(4px);
}

.blog-card__body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.blog-card__date {
    font-size: 0.73rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.blog-card__title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card__title {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
}

.blog-card__author-photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-card__author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    background-color: rgba(143, 158, 101, 0.15);
    color: var(--color-primary);
    flex-shrink: 0;
}

.blog-card__author-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6b7280;
}

/* Mobile extra */
@media (max-width: 767px) {
    .blog-main {
        padding: 1.25rem 0 3rem;
    }

    .blog-article__h2 {
        font-size: 1.35rem;
    }

    .blog-article__lead {
        font-size: 0.97rem;
    }

    .blog-gallery__item {
        height: 155px;
    }

    .blog-cta {
        padding: 1.25rem;
    }

    .blog-quote {
        padding: 1.1rem 1.1rem 1.1rem 1.4rem;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-lg);
    }
}

.blog-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
}

.blog-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2.5rem;
}

@media (max-width: 767px) {
    .blog-hero__content {
        padding: 1.25rem 1.25rem;
    }
}

.blog-hero__tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 100px;
}

.blog-hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    max-width: 820px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

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

/* ---- Layout sidebar + artículo ---- */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .blog-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3.5rem;
    }
}

/* ---- Sidebar ---- */
.blog-sidebar {
    width: 100%;
    order: 2;
}

@media (min-width: 900px) {
    .blog-sidebar {
        width: 260px;
        flex-shrink: 0;
        order: 1;
        position: sticky;
        top: 100px;
    }
}

.blog-sidebar__card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(143, 158, 101, 0.12);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 2px 16px rgba(38, 55, 23, 0.05);
}

.blog-sidebar__divider {
    height: 1px;
    background-color: rgba(38, 55, 23, 0.08);
}

/* Autor */
.blog-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

@media (min-width: 900px) {
    .blog-author {
        flex-direction: column;
        align-items: flex-start;
    }
}

.blog-author__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .blog-author__photo {
        width: 80px;
        height: 80px;
    }
}

.blog-author__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

.blog-author__role {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 0.15rem;
}

/* Meta */
.blog-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-meta__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.blog-meta__icon {
    font-size: 1rem;
    color: var(--color-accent);
}

/* Compartir */
.blog-share__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.6rem;
}

.blog-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.blog-share__btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: rgba(38, 55, 23, 0.06);
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-share__btn:hover {
    background-color: rgba(143, 158, 101, 0.2);
}

.blog-share__btn .icon {
    font-size: 1rem;
}

/* ---- Artículo principal ---- */
.blog-article {
    flex: 1;
    order: 1;
    max-width: 720px;
}

@media (min-width: 900px) {
    .blog-article {
        order: 2;
    }
}

.blog-article__lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.blog-article__h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 2.5rem 0 1.25rem;
    line-height: 1.2;
}

.blog-article__h2-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
}

.blog-article__h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}

.blog-article__p {
    font-size: 0.975rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-article__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-article__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.blog-article__check {
    font-size: 1.05rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Cita destacada */
.blog-quote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.75rem 2rem 1.75rem 2.25rem;
    background-color: var(--color-bg-white);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.blog-quote__icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 2.5rem;
    color: rgba(143, 158, 101, 0.15);
    line-height: 1;
}

.blog-quote__text {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.blog-quote__author {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* Galería */
.blog-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (max-width: 480px) {
    .blog-gallery {
        grid-template-columns: 1fr;
    }
}

.blog-gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
}

.blog-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-gallery__item:hover .blog-gallery__img {
    transform: scale(1.05);
}

/* CTA dentro del artículo */
.blog-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(143, 158, 101, 0.08);
    border: 1px solid rgba(143, 158, 101, 0.25);
    border-radius: var(--radius-xl);
    text-align: center;
}

@media (min-width: 600px) {
    .blog-cta {
        flex-direction: row;
        text-align: left;
    }
}

.blog-cta__icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(38, 55, 23, 0.08);
}

.blog-cta__icon {
    font-size: 1.75rem;
    color: var(--color-accent);
}

.blog-cta__body {
    flex: 1;
}

.blog-cta__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.blog-cta__text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.blog-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
}

/* ---- Artículos relacionados ---- */
.blog-relacionados {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(38, 55, 23, 0.1);
}

.blog-relacionados__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-relacionados__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
}

.blog-relacionados__title .icon {
    color: var(--color-accent);
}

.blog-relacionados__ver-todo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-relacionados__ver-todo:hover {
    color: var(--color-primary);
}

/* Grid de cards */
.blog-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .blog-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(143, 158, 101, 0.1);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(38, 55, 23, 0.1);
    transform: translateY(-3px);
    border-color: rgba(143, 158, 101, 0.3);
}

.blog-card__img-wrap {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__cat {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    backdrop-filter: blur(4px);
}

.blog-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__date {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card__title {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-card__author-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card__author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    background-color: rgba(143, 158, 101, 0.15);
    color: var(--color-primary);
}

.blog-card__author-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
}

/* Mobile extra adjustments */
@media (max-width: 767px) {
    .blog-main {
        padding: 1.5rem 0 3rem;
    }

    .blog-article__h2 {
        font-size: 1.4rem;
    }

    .blog-article__lead {
        font-size: 1rem;
    }

    .blog-gallery__item {
        height: 160px;
    }

    .blog-cta {
        padding: 1.5rem;
    }

    .blog-quote {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    }
}

/* ==========================================================================
   CONTACTO PAGE (contacto.html)
   ========================================================================== */

/* ---- Página general ---- */
.contacto-main {
    background-color: var(--color-bg-light);
}

/* ---- Intro / Hero ---- */
.contacto-intro {
    padding: 3.5rem 0 2rem;
}

.contacto-intro__container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.contacto-intro__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

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

.contacto-intro__desc {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 560px;
    line-height: 1.65;
}

.contacto-intro__deco {
    flex-shrink: 0;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .contacto-intro__deco {
        display: none;
    }

    .contacto-intro__title {
        font-size: 2.5rem;
    }
}

/* ---- Body: formulario + info (grid 2 col) ---- */
.contacto-body {
    padding: 2rem 0 4rem;
}

.contacto-body__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .contacto-body__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ---- Formulario wrap ---- */
.contacto-form-wrap {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(38, 55, 23, 0.06);
    padding: 2.25rem;
    box-shadow: 0 2px 20px rgba(38, 55, 23, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-form-wrap__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.contacto-form-wrap__sub {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Formulario */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contacto-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 500px) {
    .contacto-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.contacto-form__label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contacto-form__label-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contacto-form__input,
.contacto-form__select,
.contacto-form__textarea {
    width: 100%;
    border: 1px solid rgba(38, 55, 23, 0.2);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-light);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.contacto-form__input:focus,
.contacto-form__select:focus,
.contacto-form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(143, 158, 101, 0.15);
}

.contacto-form__input::placeholder,
.contacto-form__textarea::placeholder {
    color: #9ca3af;
}

.contacto-form__textarea {
    resize: vertical;
    min-height: 110px;
}

/* Select con icono personalizado */
.contacto-form__select-wrap {
    position: relative;
}

.contacto-form__select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contacto-form__select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.1rem;
    color: #9ca3af;
}

/* Botón submit */
.contacto-form__submit {
    margin-top: 0.25rem;
    align-self: flex-start;
    min-width: 180px;
}

@media (max-width: 480px) {
    .contacto-form__submit {
        width: 100%;
        justify-content: center;
    }
}

/* Feedback de estado */
.contacto-form__feedback {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    margin: 0;
}

.contacto-form__feedback--ok {
    background-color: rgba(143, 158, 101, 0.12);
    color: #2d5a1e;
    border: 1px solid rgba(143, 158, 101, 0.3);
}

.contacto-form__feedback--error {
    background-color: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---- Columna de información ---- */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: flex-start;
}

.contacto-info__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.contacto-info__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contacto-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.contacto-info__icono-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(143, 158, 101, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-info__icono {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.contacto-info__item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.contacto-info__item-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

.contacto-info__item-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* CTA WhatsApp */
.contacto-wa {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(38, 55, 23, 0.08);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.contacto-wa__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.contacto-wa__text {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contacto-wa__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.contacto-wa__btn:hover {
    background-color: #1ebe5a;
    transform: translateY(-1px);
}

/* ---- Mapa ---- */
.contacto-mapa {
    position: relative;
    width: 100%;
    height: 420px;
    background-color: #e5e7eb;
}

@media (max-width: 640px) {
    .contacto-mapa {
        height: 280px;
    }
}

.contacto-mapa__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(25%);
}

.contacto-mapa__card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(38, 55, 23, 0.08);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(38, 55, 23, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 240px;
    z-index: 10;
}

@media (min-width: 768px) {
    .contacto-mapa__card {
        bottom: 2.5rem;
        left: 2.5rem;
    }
}

.contacto-mapa__card-logo {
    width: 32px;
    height: 32px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.contacto-mapa__card-logo .icon {
    font-size: 1rem;
    color: #ffffff;
}

.contacto-mapa__card-nombre {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.contacto-mapa__card-distrito {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.contacto-mapa__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contacto-mapa__card-link:hover {
    color: var(--color-primary);
}

.contacto-mapa__card-link .icon {
    font-size: 0.8rem;
}

/* Mobile: intro + form wrap padding reduction */
@media (max-width: 767px) {
    .contacto-intro {
        padding: 2rem 0 1rem;
    }

    .contacto-body {
        padding: 1.5rem 0 3rem;
    }

    .contacto-form-wrap {
        padding: 1.5rem;
    }

    .contacto-info {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   FOOTER — Libro de Reclamaciones link modifier
   ========================================================================== */
.footer__legal-link--reclamaciones {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer__legal-link--reclamaciones:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================================================
   LIBRO DE RECLAMACIONES PAGE (libro_reclamaciones.html)
   ========================================================================== */

.reclamaciones-main {
    background-color: var(--color-bg-light);
    padding: 2.5rem 0 5rem;
    min-height: 70vh;
}

.reclamaciones-main__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ---- Intro / Header ---- */
.reclamaciones-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.reclamaciones-intro__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

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

.reclamaciones-intro__desc {
    font-size: 1rem;
    color: #4b5563;
    max-width: 640px;
    line-height: 1.7;
    margin: 0;
}

.reclamaciones-intro__icono-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    background-color: rgba(143, 158, 101, 0.1);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .reclamaciones-intro__icono-wrap {
        display: flex;
    }
}

.reclamaciones-intro__icono {
    font-size: 3rem;
    color: var(--color-accent);
}

/* ---- Formulario principal ---- */
.reclamaciones-form {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(143, 158, 101, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 32px rgba(38, 55, 23, 0.08);
    overflow: hidden;
}

.reclamaciones-form__seccion {
    padding: 2rem;
    border-bottom: 1px solid rgba(38, 55, 23, 0.07);
}

@media (min-width: 768px) {
    .reclamaciones-form__seccion {
        padding: 2.25rem 2.5rem;
    }
}

.reclamaciones-form__seccion--alt {
    background-color: rgba(143, 158, 101, 0.04);
}

.reclamaciones-form__seccion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.reclamaciones-form__seccion-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.reclamaciones-form__seccion-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

/* Grid helpers */
.reclamaciones-form__grid {
    display: grid;
    gap: 1.25rem;
}

.reclamaciones-form__grid--1 {
    grid-template-columns: 1fr;
}

.reclamaciones-form__grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .reclamaciones-form__grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Labels y campos */
.reclamaciones-form__label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reclamaciones-form__label--full {
    grid-column: 1 / -1;
}

.reclamaciones-form__label-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
}

.reclamaciones-form__input,
.reclamaciones-form__select,
.reclamaciones-form__textarea {
    width: 100%;
    border: 1px solid rgba(38, 55, 23, 0.2);
    border-radius: var(--radius-lg);
    background-color: rgba(244, 239, 235, 0.5);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reclamaciones-form__input:focus,
.reclamaciones-form__select:focus,
.reclamaciones-form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(143, 158, 101, 0.15);
}

.reclamaciones-form__input::placeholder,
.reclamaciones-form__textarea::placeholder {
    color: #9ca3af;
}

.reclamaciones-form__input {
    height: 48px;
}

.reclamaciones-form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Input con icono */
.reclamaciones-form__input-icon-wrap {
    position: relative;
}

.reclamaciones-form__input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #9ca3af;
    pointer-events: none;
}

.reclamaciones-form__input--icon {
    padding-left: 2.75rem;
}

/* Select con icono */
.reclamaciones-form__select-wrap {
    position: relative;
}

.reclamaciones-form__select {
    appearance: none;
    height: 48px;
    padding-right: 2.5rem;
    cursor: pointer;
    background-color: var(--color-bg-white);
}

.reclamaciones-form__select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.1rem;
    color: #9ca3af;
}

/* Radio buttons */
.reclamaciones-form__radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reclamaciones-form__radios {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.reclamaciones-form__radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.reclamaciones-form__radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

/* Aviso informativo */
.reclamaciones-aviso {
    display: flex;
    gap: 0.75rem;
    background-color: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.reclamaciones-aviso__icono {
    font-size: 1.25rem;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.reclamaciones-aviso__titulo {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 0.4rem;
}

.reclamaciones-aviso__lista {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.82rem;
    color: #1e40af;
    line-height: 1.65;
}

.reclamaciones-aviso__lista li+li {
    margin-top: 0.25rem;
}

/* Adjuntos */
.reclamaciones-form__adjunto-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reclamaciones-adjunto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 2px dashed rgba(143, 158, 101, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    cursor: pointer;
    background-color: rgba(244, 239, 235, 0.3);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.reclamaciones-adjunto:hover {
    background-color: rgba(244, 239, 235, 0.7);
    border-color: var(--color-accent);
}

.reclamaciones-adjunto__icono {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}

.reclamaciones-adjunto__texto {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.reclamaciones-adjunto__link {
    font-weight: 600;
    color: var(--color-accent);
}

.reclamaciones-adjunto__sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.reclamaciones-adjunto__input {
    display: none;
}

.reclamaciones-adjunto__nombre {
    font-size: 0.82rem;
    color: var(--color-accent);
    font-weight: 600;
    margin: 0;
}

/* Acciones finales */
.reclamaciones-form__acciones {
    padding: 1.5rem 2rem;
    background-color: rgba(244, 239, 235, 0.5);
    border-top: 1px solid rgba(38, 55, 23, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .reclamaciones-form__acciones {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2.5rem;
    }
}

.reclamaciones-form__check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

.reclamaciones-form__check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.reclamaciones-form__btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reclamaciones-form__enviar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Feedback message */
.reclamaciones-form__feedback {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    width: 100%;
    margin: 0;
}

.reclamaciones-form__feedback--ok {
    background-color: rgba(143, 158, 101, 0.12);
    color: #2d5a1e;
    border: 1px solid rgba(143, 158, 101, 0.3);
}

.reclamaciones-form__feedback--error {
    background-color: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .reclamaciones-main {
        padding: 1.5rem 0 3rem;
    }

    .reclamaciones-intro__title {
        font-size: 1.75rem;
    }

    .reclamaciones-form__seccion {
        padding: 1.25rem;
    }

    .reclamaciones-form__acciones {
        padding: 1.25rem;
    }

    .reclamaciones-form__btns {
        width: 100%;
        justify-content: stretch;
    }

    .reclamaciones-form__btns .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   POLÍTICAS INSTITUCIONALES MENTALIS
   ========================================================================== */

.politicas-main {
    background-color: var(--color-bg-light);
    min-height: 60vh;
}

/* ---- Intro Section ---- */
.politicas-intro {
    padding: 4rem 0 3rem;
    text-align: center;
}

.politicas-intro__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.politicas-intro__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(143, 158, 101, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.politicas-intro__badge .icon {
    font-size: 1.1rem;
    color: var(--color-accent);
}

.politicas-intro__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
    margin: 0;
}

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

.politicas-intro__desc {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
}

/* ---- Content Section ---- */
.politicas-content {
    padding-bottom: 5rem;
}

.politicas-content__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.politicas-card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(143, 158, 101, 0.15);
    box-shadow: 0 4px 32px rgba(38, 55, 23, 0.06);
    padding: 1rem 0;
}

/* Items */
.politicas-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.25rem;
    border-bottom: 1px solid rgba(38, 55, 23, 0.08);
    transition: background-color 0.3s ease;
}

.politicas-item:hover {
    background-color: rgba(143, 158, 101, 0.03);
}

.politicas-item--last {
    border-bottom: none;
}

@media (min-width: 768px) {
    .politicas-item {
        gap: 2rem;
        padding: 2.5rem 3rem;
    }
}

.politicas-item__icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: rgba(143, 158, 101, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.politicas-item:hover .politicas-item__icon-wrap {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.politicas-item__icon {
    font-size: 2rem;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.politicas-item:hover .politicas-item__icon {
    color: #ffffff;
}

.politicas-item__body {
    flex: 1;
}

.politicas-item__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.politicas-item__text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.politicas-item__text p {
    margin-bottom: 0.85rem;
}

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

.text-primary-bold {
    color: var(--color-primary);
    font-weight: 700;
}

/* Lista dentro del contenido */
.politicas-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.politicas-list li {
    position: relative;
    padding-left: 1.5rem;
}

.politicas-list li::before {
    content: "•";
    position: absolute;
    left: 0.4rem;
    top: -0.1rem;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ---- Acciones finales ---- */
.politicas-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .politicas-intro {
        padding: 3rem 0 2rem;
    }

    .politicas-item {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.75rem;
    }

    .politicas-item__icon-wrap {
        width: 48px;
        height: 48px;
    }

    .politicas-item__icon {
        font-size: 1.5rem;
    }

    .politicas-item__title {
        font-size: 1.25rem;
    }
}