/* CSS - Suárez 100% café - Cauca */

:root {
    --primary: #2d5a27;
    /* Verde institucional más profundo - Naturaleza */
    --primary-soft: #edf4ec;
    --accent: #ffc107;
    /* Amarillo/Dorado institucional - Calidez */
    --accent-soft: #fff8e1;
    --earth: #8d6e63;
    /* Tonos tierra - Café y Suelo */
    --earth-dark: #4e342e;
    --nature-green: #4caf50;
    --dark: #1a1a1a;
    --navy: #00251a;
    /* Verde muy oscuro para el footer/header */
    --light: #fdfdfb;
    /* Blanco cálido/hueso */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(0, 37, 26, 0.7);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-display: swap;
    color: #333333;
    line-height: 1.7;
    background-color: var(--light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold {
    font-family: 'Montserrat', sans-serif;
    font-display: swap;
    color: var(--navy);
}

.fw-extrabold {
    font-weight: 900 !important;
}

/* --- Global Image Rules --- */
img {
    height: auto;
    max-width: 100%;
}

/* --- Header & Navigation --- */
.navbar-custom {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    /* Slightly more space to prevent shifts */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 80px;
    /* Constant height for navbar */
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--navy) !important;
}

.nav-link {
    color: var(--navy) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    opacity: 0.75;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

/* --- Global Section Padding --- */
.section-padding {
    padding: 100px 0;
}

.section-alt {
    background: var(--primary-soft);
}

.bg-pattern-dots {
    background-image: radial-gradient(#2d5a2715 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-pattern-grid {
    background-image: linear-gradient(#2d5a2708 1px, transparent 1px), linear-gradient(90deg, #2d5a2708 1px, transparent 1px);
    background-size: 50px 50px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.glass-card-dark {
    background: var(--glass-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Decorative Backgrounds */
.bg-suarez-hero {
    background: linear-gradient(rgba(0, 37, 26, 0.3), rgba(0, 37, 26, 0.3)), url('../img/paisaje_hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.bg-texture-culture {
    background-image: url('../img/textura_cultura.webp');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.05;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ornament-cafe {
    background-image: url('../img/cafe_ornament.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    box-shadow: var(--shadow-medium);
}

.bg-comunidades-hero {
    background: linear-gradient(rgba(0, 37, 26, 0.4), rgba(0, 37, 26, 0.4)), url('../img/comunidades_hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.bg-documentos {
    background: linear-gradient(rgba(0, 37, 26, 0.4), rgba(0, 37, 26, 0.2)), url('../img/documentos_background_oscura.jpg');
    background-size: cover;
    background-position: center;
}

.bg-contacto {
    background: linear-gradient(rgba(0, 37, 26, 0.15), rgba(0, 37, 26, 0.05)), url('../img/contacto_background5.jpg');
    background-size: cover;
    background-position: center;
}

/* User-uploaded backgrounds */
.bg-caficultores {
    background: linear-gradient(rgba(45, 90, 39, 0.4), rgba(45, 90, 39, 0.4)), url('../img/cafeterasfondo.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.bg-rio-suarez {
    background: linear-gradient(rgba(0, 68, 102, 0.3), rgba(0, 68, 102, 0.3)), url('../img/rio suarez.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.bg-amanecer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/amanecer.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 5px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 5px;
}

/* --- Footer --- */
.footer-premium {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-premium .footer-gov-logo {
    height: 40px;
    width: auto;
    max-width: none;
}

.footer-premium h5 {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--navy);
    transform: translateY(-5px);
}

/* --- Hero Section --- */
.hero-institution {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    color: white;
}

.hero-bg-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 37, 26, 0.6), rgba(0, 37, 26, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* --- Shape Divider --- */
.hero-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    pointer-events: none;
    z-index: 10;
}

.hero-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 30px;
}

.hero-divider .shape-fill {
    fill: var(--light);
}

/* Adjustments for content background consistency */
.bg-pattern-dots {
    background-image:
        radial-gradient(var(--primary-soft) 1px, transparent 1px);
    background-size: 30px 30px;
}

.btn-premium {
    background: var(--accent);
    color: var(--navy);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
    background: var(--white);
    color: var(--navy);
}

/* --- Stats & Layout Helpers --- */
.stat-card {
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 700;
    color: var(--earth);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.row-alternate:nth-child(even) {
    flex-direction: row-reverse;
}

.gallery-item-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    aspect-ratio: 1/1;
    /* Reserved space */
    box-shadow: var(--shadow-soft);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    /* Reserved space */
    transition: transform 0.8s ease;
}

.gallery-item-wrapper:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 37, 26, 0.85));
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item-wrapper:hover .gallery-caption-overlay {
    opacity: 1;
}

/* --- Carousel Galería --- */
.carousel-gallery-row {
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.carousel-gallery-item {
    flex: 0 0 calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
}

@media (max-width: 992px) {
    .carousel-gallery-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    border: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) sepia(100%) saturate(500%) hue-rotate(60deg) brightness(0.4);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

/* --- Immersive Coffee Experience --- */

.bg-parchment {
    background-color: #fcf9f2;
    background-image: url("https://www.transparenttextures.com/patterns/papyrus.png");
    position: relative;
}

.bg-parchment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--light), transparent);
}

/* Cinematic Hero for Coffee */
.hero-coffee {
    min-height: 70vh;
    padding-top: 160px;
    /* Increased to avoid navbar overlap */
    padding-bottom: 120px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: linear-gradient(rgba(0, 37, 26, 0.8), rgba(0, 0, 0, 0.1)), var(--hero-bg, url('../img/cafeterasfondo.webp'));
    display: flex;
    align-items: center;
    position: relative;
}


/* Container adjustment */
.hero-coffee>.container {
    position: relative;
    z-index: 2;
}

.rounded-5 {
    border-radius: 2rem !important;
}

.shadow-premium {
    box-shadow: var(--shadow-medium);
}

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

.bg-accent {
    background-color: var(--accent) !important;
}

.animate-fade {
    animation: fadeIn 1s ease-out;
}

/* Static fade-in to avoid CLS on above-the-fold elements */
.animate-fade-static {
    animation: fadeInStatic 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInStatic {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* New Floating Content Cards for Experiences */
.card-experience-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.card-experience-item {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    top: 0;
}

.glass-readability {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-shadow-strong {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.card-experience-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-experience-image {
    width: 100%;
    padding-top: 65%;
    /* Aspect ratio 16:9 for image area */
    aspect-ratio: 16/9;
    /* Reserved space */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 5px solid var(--accent-soft);
}

.card-experience-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--navy);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-experience-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-experience-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-experience-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Allows description to take up available space */
}

.card-experience-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-soft);
}

.card-experience-button {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-experience-button i {
    transition: transform 0.3s ease;
}

.card-experience-link:hover .card-experience-button {
    color: var(--accent);
}

.card-experience-link:hover .card-experience-button i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-experience-item {
        flex-direction: row;
        height: auto;
    }

    .card-experience-image {
        width: 40%;
        padding-top: 0;
        height: 150px;
        /* Fixed height for mobile image */
        aspect-ratio: 4/3;
        /* Adjust if needed */
        border-bottom: none;
        border-right: 5px solid var(--accent-soft);
    }

    .card-experience-content {
        width: 60%;
        padding: 1rem;
    }

    .card-experience-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .card-experience-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .card-experience-footer {
        padding-top: 0.5rem;
    }

    .card-experience-button {
        font-size: 0.8rem;
    }
}

/* Styles for section images */
.section-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    background-color: var(--primary-soft);
    /* Placeholder color while loading */
}

@media (min-width: 992px) {
    .section-image {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .section-image {
        height: 300px;
        /* Altura más pequeña para tablets */
    }
}

@media (max-width: 768px) {
    .section-image {
        height: 250px;
        /* Altura para móviles */
        margin-bottom: 1.5rem;
        /* Espacio debajo de la imagen en móvil */
    }
}

/* Accessibility Widget Styles */
:root {
    --acc-btn-size: 50px;
    --acc-btn-bg: #003366;
    /* Navy Blue */
    --acc-btn-color: #ffffff;
    --acc-panel-width: 300px;
    --acc-z-index: 10000;
}

/* Floating Button */
#acc-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: var(--acc-btn-size);
    height: var(--acc-btn-size);
    background-color: var(--acc-btn-bg);
    color: var(--acc-btn-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: var(--acc-z-index);
    transition: transform 0.3s ease;
    border: 2px solid #fff;
}

#acc-widget-btn:hover {
    transform: scale(1.1);
}

#acc-widget-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Accessibility Panel */
#acc-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: var(--acc-panel-width);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: var(--acc-z-index);
    display: none;
    border: 1px solid #e0e0e0;
    font-family: system-ui, -apple-system, sans-serif !important;
}

#acc-panel.visible {
    display: block;
    animation: accFadeIn 0.3s ease;
}

@keyframes accFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.acc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.acc-panel-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.acc-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.acc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acc-option-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.2s;
}

.acc-option-btn:hover {
    background-color: #e9ecef;
}

.acc-option-btn.active {
    background-color: #003366;
    color: #ffffff;
    border-color: #003366;
}

.acc-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-reset-btn {
    margin-top: 15px;
    width: 100%;
    padding: 8px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Accessibility Modes (Applied to body) */

/* 1. Large Text */
body.acc-text-large {
    font-size: 120% !important;
}

/* 2. High Contrast */
body.acc-high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.acc-high-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.acc-high-contrast img {
    filter: grayscale(100%) contrast(120%);
}

/* 3. Dark Mode (Softer than High Contrast) */
body.acc-dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.acc-dark-mode .card,
body.acc-dark-mode .navbar,
body.acc-dark-mode .footer-premium,
body.acc-dark-mode .bg-white,
body.acc-dark-mode .bg-light {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

body.acc-dark-mode .text-navy,
body.acc-dark-mode .text-primary,
body.acc-dark-mode .text-muted {
    color: #a0a0a0 !important;
}

body.acc-dark-mode a {
    color: #64b5f6 !important;
}

body.acc-dark-mode .btn-primary,
body.acc-dark-mode .bg-primary {
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
}

/* 4. Grayscale */
body.acc-grayscale {
    filter: grayscale(100%);
}

/* 4. Readable Font */
body.acc-readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.acc-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* 5. Highlight Links */
body.acc-links a {
    text-decoration: underline !important;
    font-weight: bold !important;
    background-color: rgba(255, 255, 0, 0.2) !important;
}

/* Lite YouTube Embeds */
.lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

@supports not (aspect-ratio: 16 / 9) {
    .lite-youtube {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.lite-youtube::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    height: 80px;
    width: 100%;
    z-index: 1;
}

.lite-youtube .lty-playbtn {
    width: 75px;
    height: 52px;
    position: absolute;
    cursor: pointer;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    left: 50%;
    z-index: 2;
    background-color: #ff0000;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.lite-youtube:hover .lty-playbtn {
    transform: translate3d(-50%, -50%, 0) scale(1.1);
    background-color: #e60000;
}

.lite-youtube .lty-playbtn::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.lite-youtube iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    z-index: 3;
}

/* ========================================
   INLINE STYLES FROM TEMPLATES (CONSOLIDATED)
   ======================================== */

/* Critical CSS from base.html (for above-the-fold content) */
/* Note: These are duplicates of existing rules but kept for performance */
.navbar-brand img {
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
}

.hero-bg-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

/* Historia page styles (from inicio/historia.html) */
.content-rich p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #4a4a4a;
    line-height: 1.8;
}

.breadcrumb-item a {
    color: var(--primary);
}

.leading-relaxed {
    line-height: 1.8;
}

/* Comunidades detalle page styles (from comunidades/detalle.html) */
.cursor-pointer {
    cursor: pointer;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    transition: var(--transition);
}

.content-text {
    color: var(--text-main);
    line-height: 1.8;
}

/* Footer logo hover effects */
.transition-hover {
    transition: var(--transition);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Hover effect for internal link cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}