/* ==========================================================================
   COMMUNITY.CSS - FEED DE ALTO RENDIMIENTO (OPTIMIZADO)
========================================================================== */

:root {
    --bg-color: #050507;
    --card-bg: rgba(13, 13, 17, 0.8);
    --text-main: #ffffff;
    --accent: #ed7114;
    --border-color: rgba(255, 255, 255, 0.05);
}

/* 1. CONTROL DE PANTALLA TOTAL */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100dvh;
    width: 100dvw;
    overflow: hidden; /* Bloqueo total de scroll */
    position: fixed;
}

body {
    background-color: var(--bg-color);
    background-image: url('/Img/background-atmosphere.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    font-family: "Oswald", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 2. ESTRUCTURA DE SECCIÓN */
.community-section {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.sticky-nav {
    position: sticky;
    top: 0;
    padding: 15px 24px;
    z-index: 100;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);

    display: flex;
    justify-content: space-between; /* Separa los botones a los extremos */
    align-items: center;
}

.btn-back, .btn-reviews {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
}


/* Opcional: un toque de color para diferenciar reviews */
.btn-reviews {
    color: var(--accent);
}

/* 3. TIPOGRAFÍA Y CONTENEDORES */
h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(50px, 8vw, 45px);
    color: var(--accent);
    text-align: center;
    margin: 10px 0;
    text-transform: uppercase;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* 4. CARRUSEL SWIPER */
.swiper {
    padding-top: 40px;
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.masonry-grid {
    display: flex;
    flex-direction: column;
    padding: 0 10px; /* Reducido para mayor aprovechamiento */
    gap: 10px;       /* Reducido para acercar elementos */
    width: 100%;
}



/* FOTOS Y VIDEOS: Uniformidad vertical */
.photo-card img {
    filter: grayscale(1%);
    width: 100%;
    height: 70dvh;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* NUEVO: Contenedor para que el video no se rompa */
.photo-card .video-wrapper {
    width: 100%;
    height: 70dvh;
    border-radius: 12px;
    overflow: hidden; /* Esto es lo que recorta los bordes */
    border: 1px solid var(--border-color);
    position: relative;
}

.photo-card .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Esto ayuda a que llene el espacio lo mejor posible */
    /* Esta es la clave: el video no "toca" nada, solo se ve */
    pointer-events: none;
}

/* 5. BOTÓN CTA FIJO */
.btn-cta {
    background-color: var(--accent);
    display: block;
    margin: 10px 20px;
    padding: 18px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 60dvh;
    overflow: hidden;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Se pone encima del video */
    background: transparent;
    cursor: grab; /* Indica al usuario que puede arrastrar */
    touch-action: pan-y;
}






@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(237, 113, 20, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(237, 113, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(237, 113, 20, 0); }
}