/* --- Variables Tech AWS UG Morelos --- */
:root {
    --bg-dark: #0f0c1b;       /* Fondo oscuro profundo */
    --card-bg: #1a1625;       /* Fondo de tarjeta */
    --primary-purple: #7b2cbf; /* Morado User Group */
    --accent-glow: #9d4edd;    /* Morado neón para brillos */
    --aws-orange: #FF9900;     /* Naranja AWS */
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --success-green: #00ff88;
}

/* --- Base --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Fuente Tech */
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, #240046 0%, var(--bg-dark) 70%); /* Luz morada arriba */
}

/* --- Tipografía --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header { margin-bottom: 40px; margin-top: 20px; }

.logo-monogram {
    font-weight: 900;
    font-size: 2rem;
    color: var(--aws-orange);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
    border: 2px solid var(--aws-orange);
    padding: 10px 15px;
    border-radius: 8px;
}

h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    background: linear-gradient(90deg, #fff, var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 10px;
    font-weight: 300;
    border-bottom: 1px solid rgba(123, 44, 191, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

/* --- Tarjetas (Card Tech) --- */
.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 30px 0;
    border: 1px solid rgba(123, 44, 191, 0.3); /* Borde morado sutil */
    position: relative;
}

.card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.2);
    transition: 0.3s;
}

.upload-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.description { color: var(--text-gray); margin-bottom: 30px; }

/* --- Inputs y Botones --- */
.upload-area {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed var(--text-gray);
}

input[type="file"] { display: none; }

.file-label {
    display: block;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--primary-purple);
    color: var(--text-white);
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.file-label:hover {
    background: var(--primary-purple);
    box-shadow: 0 0 15px var(--primary-purple);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-glow));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(157, 78, 221, 0.5);
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

#statusMessage { margin-top: 15px; font-weight: 500; }

/* --- Navegación Secundaria --- */
.navigation { margin-top: 40px; }

.btn-secondary, .back-link {
    display: inline-block;
    text-decoration: none;
    padding: 10px 30px;
    background: transparent; 
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover, .back-link:hover {
    border-color: var(--aws-orange);
    color: var(--aws-orange);
    background: rgba(255, 153, 0, 0.1);
}

/* =========================================
   ESTILOS: CARRUSEL / GALERÍA
   ========================================= */

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.collage-header { margin-bottom: 30px; }

/* Escenario Principal */
.main-stage {
    position: relative;
    width: 100%;
    height: 60vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    margin-bottom: 20px;
    border: 1px solid #333;
    display: flex; justify-content: center; align-items: center;
}

.media-container img, .media-container video {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}

.fade-element { opacity: 0; transition: opacity 0.5s ease-in-out; }
.fade-element.visible { opacity: 1; }

/* Botones Navegación */
.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(123, 44, 191, 0.3); /* Morado transparente */
    border: none; color: white;
    font-size: 2rem; padding: 10px 15px;
    cursor: pointer; border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}
.prev { left: 15px; } .next { right: 15px; }
.nav-btn:hover { background: var(--primary-purple); }

.photo-counter {
    position: absolute; top: 15px; right: 20px;
    background: rgba(0,0,0,0.7); color: var(--aws-orange);
    padding: 5px 12px; border-radius: 20px;
    font-weight: bold; font-size: 0.9rem;
}

/* Miniaturas */
.film-strip-container { width: 100%; overflow: hidden; padding: 10px 0; }
.film-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.film-strip::-webkit-scrollbar { height: 4px; }
.film-strip::-webkit-scrollbar-thumb { background: var(--primary-purple); border-radius: 2px; }

.thumb-item {
    min-width: 90px; height: 70px;
    cursor: pointer; opacity: 0.5;
    transition: 0.3s;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #222;
}
.thumb-item img, .thumb-item video { width: 100%; height: 100%; object-fit: cover; }
.thumb-item:hover { opacity: 1; }
.thumb-item.active {
    opacity: 1; border-color: var(--aws-orange);
    transform: scale(1.05);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex; justify-content: center; align-items: center;
    z-index: 3000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-content { width: 90%; height: 90%; display: flex; justify-content: center; align-items: center; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 100%; }
.close-lightbox {
    position: absolute; top: 20px; right: 20px;
    color: var(--aws-orange); font-size: 3rem;
    background: none; border: none; cursor: pointer; z-index: 3001;
}
.expand-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7); color: white;
    border: 1px solid var(--aws-orange);
    border-radius: 50%; width: 50px; height: 50px;
    font-size: 1.5rem; cursor: pointer; opacity: 0; transition: 0.3s;
}
.main-stage:hover .expand-btn { opacity: 1; }