:root {
    --desktop-navbar-height: 80px;
    --zoom-navbar-height: 60px;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    background: transparent;
}

body {
    height: 100%;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #fff;
    background: url("../img/background-home.webp") center/cover no-repeat fixed;
}

/* Asegurar que todos los contenedores sean transparentes */
main, .container, .content-wrapper {
    background: transparent !important;
}

/* Resetear padding del main en homepage */
body:has(#home) main {
    padding-top: 0 !important;
    margin: 0 !important;
}

/* --- HEADER --- */
header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 1em 2em;
}

nav {
    font-weight: 500;
}
footer {
    display: none;
}

/* --- HERO / HOME --- */
#home {
    position: relative;
    z-index: 5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#home .content h1 {
    font-size: 5.5em;
    margin-bottom: 0.4em;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

#home .content h3 {
    font-size: 2.6em;
    margin-bottom: 0.3em;
    font-weight: 500;
}

#home .content h5 {
    font-size: 1.5em;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
    opacity: 0.9;
}

/* --- HOME BUTTONS --- */
.home-buttons {
    margin: 30px 0;
    display: flex;
    gap: 30px;
    justify-content: center;
    padding-bottom: 40px;
    font-weight: 600;
}

.home-buttons .btn {
    font-size: 1.4em;
    padding: 18px 40px 20px 40px;
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 1024px) {
    #home { padding: 0 1.5rem; }
    #home .content h1 { font-size: 4em; }
    #home .content h3 { font-size: 2em; }
    #home .content h5 { font-size: 1.2em; max-width: 700px; }
    .home-buttons .btn { font-size: 1.2em; padding: 15px 30px 25px 30px; }
}

@media (max-width: 768px) {
    #home { padding: 0 1rem; }
    #home .content h1 { font-size: 3em; }
    #home .content h3 { font-size: 1.6em; }
    #home .content h5 { font-size: 1em; max-width: 500px; }
    .home-buttons { flex-direction: column; gap: 20px; align-items: center;}
    .home-buttons .btn { width: 70%; font-size: 1.1em; padding: 14px 20px 24px 20px; }
}

@media (max-width: 480px) {
    #home .content h1 { font-size: 2.2em; }
    #home .content h3 { font-size: 1.4em; }
    #home .content h5 { font-size: 0.95em; max-width: 100%; }
    .home-buttons .btn { font-size: 1em; padding: 12px 18px 20px 18px; }
}

/* ===== SECCIONES: HECHOS + COLECCIONES ===== */
#hechos, #colecciones {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: transparent;
}

section h2 {
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    color: white;
}

.scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.cards-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 2rem;
    margin: 0 6rem;
    gap: 2.5rem;
    scrollbar-width: none;
    border-radius: 28px;
    border: none;
}

.cards-row::-webkit-scrollbar { display: none; }

/* ===== CARDS TRANSPARENTES NEGRAS (MÁS GRANDES) ===== */
.card {
    min-width: 380px;
    max-width: 380px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(50, 50, 50, 0.8));
    color: rgba(255, 255, 255, 0.4);
    font-size: 3rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-category,
.card-location {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-category i,
.card-location i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- SCROLL BUTTONS --- */
.scroll-btn {
    position: absolute;
    background: rgba(23, 70, 210, 0.8);
    backdrop-filter: blur(5px);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: rgba(15, 44, 130, 0.9);
    box-shadow: 0 4px 15px rgba(23, 70, 210, 0.4);
}

.scroll-btn.left { left: 5px; }
.scroll-btn.right { right: 5px; }

@media (max-width: 768px) {
    .card {
        min-width: 320px;
        max-width: 320px;
    }

    section h2 {
        font-size: 2.5em;
    }
}

#mi-boton {
    position: relative;
    z-index: 10;
}

/* ===== ESTILOS PARA COLECCIONES ===== */
.card-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Icono específico para colecciones en placeholder */
.card-placeholder .fa-layer-group {
    font-size: 3.5rem;
}