/* ===== RAECY - Tema Real / Moderno (Webflow Inspired) ===== */
:root {
    --primary: #020873;       /* Azul Marino Institucional */
    --primary-hover: #00004d;
    --accent: #C5A059;        /* Dorado Institucional */
    --accent-hover: #b38f4d;
    --navy: #1a1b1f;          /* Gris muy oscuro/negro del texto */
    --white: #ffffff;
    --surface: #fcf9f8;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-900: #1a1b1f;
    --font-main: 'Montserrat', sans-serif;
    --max-width: 1200px;
    --radius: 0px;            /* Estilo flat moderno */
    --shadow: 0 1px 3px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--navy);
    line-height: 1.75;
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: 0.2s opacity; }
a:hover { opacity: 0.8; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ===== Header (Flotante) ===== */
.site-header {
    background: var(--surface);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Header transparente para la Home */
.home-page .site-header {
    position: fixed;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    width: 100%;
    transition: all 0.3s ease;
}

.home-page .site-header.scrolled {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.home-page .nav-links a,
.home-page .dropbtn {
    color: var(--white);
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.home-page .site-header.scrolled .nav-links a,
.home-page .site-header.scrolled .dropbtn {
    color: var(--navy);
    text-shadow: none;
}

.home-page .dropdown-content a {
    color: var(--navy);
}

.home-page .nav-toggle span {
    background: var(--white);
    transition: background 0.3s ease;
}

.home-page .site-header.scrolled .nav-toggle span {
    background: var(--primary);
}

/* ===== Header transparente para paginas con cabecera azul ===== */
.transparent-header-page .site-header {
    position: fixed;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    width: 100%;
    transition: all 0.3s ease;
}

.transparent-header-page .site-header.scrolled {
    background: rgba(252, 249, 248, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.transparent-header-page .nav-links a,
.transparent-header-page .dropbtn {
    color: var(--white);
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.transparent-header-page .site-header.scrolled .nav-links a,
.transparent-header-page .site-header.scrolled .dropbtn {
    color: var(--navy);
    text-shadow: none;
}

.transparent-header-page .dropdown-content a {
    color: var(--navy);
}

.transparent-header-page .nav-links .btn-socio {
    background: var(--accent);
    color: var(--white) !important;
}

.transparent-header-page .nav-toggle span {
    background: var(--white);
    transition: background 0.3s ease;
}

.transparent-header-page .site-header.scrolled .nav-toggle span {
    background: var(--primary);
}


.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo-img { height: 60px; width: auto; }

.nav-toggle { display: none; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 250px;
    box-shadow: 0px 8px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    border-top: 4px solid var(--accent);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--navy);
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
    letter-spacing: 0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
    color: var(--primary);
    opacity: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-links .btn-socio {
    background: var(--accent);
    color: var(--white) !important;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 50%;
    padding: 0 !important;
    font-size: 1.35rem !important;
    line-height: 1;
}

.nav-search-link span {
    transform: translateY(-1px);
}

/* ===== Footer (Estilo Webflow/Original) ===== */
.site-footer {
    background: #111;
    color: var(--white);
    padding: 50px 0 0;
    font-size: 0.9rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 2rem;
    filter: brightness(1.2);
}

.slogan {
    font-style: italic;
    color: #999;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.4;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #bbb;
    transition: 0.3s;
}

.social-item img {
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
}

.social-item:hover {
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: #999;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 25px 0;
    color: #666;
    font-size: 0.8rem;
}

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

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #666;
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* responsive footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .social-links { align-items: center; }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===== Responsive Navigation (Hamburguer) ===== */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary);
        transition: 0.3s;
    }
    
    .nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: calc(100vh - 90px);
        background: var(--surface);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        gap: 0;
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.1rem;
        width: 100%;
        color: var(--navy) !important;
        text-shadow: none !important;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        display: none;
        transform: none;
        box-shadow: none;
        padding-left: 1.5rem;
        background: #fdfdfd;
        border-top: none;
        border-left: 3px solid var(--accent);
    }
    
    .dropdown.open .dropdown-content {
        display: block;
    }
    
    .dropdown .dropbtn::after {
        content: '+';
        float: right;
        font-weight: 300;
        color: var(--accent);
    }
    
    .dropdown.open .dropbtn::after { content: '-'; }

    .nav-links .btn-socio {
        background: var(--accent);
        text-align: center;
        margin: 2rem 0;
        border-radius: 4px;
        padding: 1.2rem;
    }

    .nav-search-link {
        width: 100%;
        height: auto;
        border: none;
        justify-content: flex-start;
        font-size: 1.35rem !important;
    }
    
    body.no-scroll { overflow: hidden; }
}
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(2, 8, 115, 0.7), rgba(2, 8, 115, 0.7)), url('/static/images/hero-poster.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Video Hero */
.video-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy); /* Fallback */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-hero .hero-overlay {
    background: linear-gradient(rgba(2, 8, 115, 0.4), rgba(2, 8, 115, 0.6));
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: none;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* btn-hero: alias de .btn.btn-accent.btn-lg para el hero de la home */
.btn-hero {
    background: var(--accent);
    color: var(--white);
    padding: 18px 40px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-hero:hover {
    background: var(--accent-hover);
    opacity: 1;
}

/* ===== Secciones ===== */
.section { 
    background: var(--surface);
    padding: 100px 0; 
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* ===== Post Cards ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.post-card {
    background: var(--white);
    border: 1px solid #efefef;
}
.post-card:hover { border-color: var(--primary); }

.post-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.post-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 1.5rem;
}
.post-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    line-height: 1.3;
    font-weight: 800;
}

.post-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 4px solid var(--accent);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-col h4 {
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    .section { padding: 60px 0; }
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

/* ===== Sistema de Botones =============================================
 *  .btn          — base compartida (font, uppercase, letter-spacing)
 *  .btn-outline  — fondo plano/claro: borde navy, sin relleno → relleno al hover
 *  .btn-accent   — acción especial/CTA: relleno dorado (hazte socio, cookies, enviar…)
 * ================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
    padding: 10px 30px; /* compensa el borde de 2px */
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    opacity: 1;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--white);
    opacity: 1;
}

/* ===== Search Page ===== */
.search-page-header {
    background: var(--primary);
    min-height: 260px;
    padding-top: 120px;
    border-bottom: 4px solid var(--accent);
    color: var(--white);
}

.search-page-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.search-page-header p {
    max-width: 720px;
    color: rgba(255,255,255,0.86);
}

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

.site-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.site-search-form input {
    width: 100%;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-main);
    font-size: 1.05rem;
    padding: 0.95rem 1.1rem;
    outline: none;
}

.site-search-form input:focus {
    border-color: var(--primary);
}

.search-results-header {
    max-width: 820px;
    margin: 0 auto 1.5rem;
    color: var(--gray-500);
}

.search-results {
    display: grid;
    gap: 1.25rem;
    max-width: 920px;
    margin: 0 auto;
    min-width: 0;
}

.search-result {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 1.75rem;
    min-width: 0;
    overflow: hidden;
}

.search-result h2 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 0.75rem 0;
    color: var(--primary);
    overflow-wrap: anywhere;
}

.search-result p {
    color: #4a5568;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.search-result-link {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.search-message {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .search-page-header h1 {
        font-size: 2.1rem;
    }

    .site-search-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .search-section {
        padding-top: 2.5rem;
    }

    .search-result {
        padding: 1.2rem;
        width: 100%;
    }

    .search-result h2 {
        font-size: 1.05rem;
        margin: 0.55rem 0;
    }

    .search-result p {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

/* Modificadores de tamaño */
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Nuevas Secciones Visuales */
.home-section-subtitle {
    text-align: center;
    max-width: 680px;
    margin: -1rem auto 3rem;
    color: #5a6278;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Grids de la Home (Socios y Memorias) ===== */
.benefits-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.benefit-visual-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border: 1px solid #efefef;
    border-top: 4px solid var(--accent);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-visual-item:hover {
    border-color: var(--primary);
    border-top-color: var(--accent);
}

.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid #efefef;
}

.benefit-visual-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-visual-item p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Memorias - tarjetas verticales con imagen grande */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.memory-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #efefef;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.memory-card:hover {
    border-color: var(--primary);
}

.memory-thumb-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.memory-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.memory-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 3px solid var(--accent);
}

.memory-card h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.memory-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent);
    align-self: flex-start;
}

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

/* Responsividad mejorada para grids */
@media (max-width: 1100px) {
    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .benefits-visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-visual-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .home-section-subtitle {
        margin-bottom: 2rem;
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Ocultar elementos sobrantes en móvil para ligereza */
    .post-card:nth-child(n+4), 
    .memory-card:nth-child(n+3),
    .benefit-visual-item:nth-child(n+5) { 
        display: none; 
    }
    
    .memory-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== News Carousel ===== */
.news-carousel-container {
    position: relative;
    margin-top: 3rem;
}

.news-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .news-carousel-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .news-carousel-header .section-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .carousel-arrows {
        display: none !important;
    }
}

.carousel-arrows {
    display: flex;
    gap: 1rem;
}

.carousel-arrow {
    background: var(--navy);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.carousel-arrow:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.carousel-track {
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .carousel-item {
        flex: 0 0 33.333%;
    }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 27, 31, 0.98);
    color: white;
    padding: 1.5rem 0;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease;
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.cookie-content p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}
.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
}
/* btn-cookie: variante compacta de .btn-accent sobre fondo oscuro */
.btn-cookie {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    font-family: var(--font-main);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.btn-cookie-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-cookie-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}
.btn-cookie:hover {
    background: var(--accent-hover);
}
@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 1.2rem; }
    .cookie-banner { padding: 2rem 1rem; }
}
