
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --slider-width: 500px;
    --slider-aspect: 4/3;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

.header p {
    color: #666;
}

/* Slider Core */
.slider-3d {
    position: relative;
    width: 100%;
    height: 600px; /* Aumentado para dar espacio al texto inferior */
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Cambiado a visible para que el texto inferior no se corte */
    touch-action: pan-y;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.slider-track:active {
    cursor: grabbing;
}

.slide {
    position: absolute;
    width: var(--slider-width);
    aspect-ratio: var(--slider-aspect);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    user-select: none;
    pointer-events: none;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #eee;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Estilos de Texto Configurables */
.slide-info {
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 20;
}

/* Opción: Texto SOBRE la foto */
.text-overlay .slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 0 0 16px 16px;
    opacity: 0;
    transform: translateY(20px);
    text-align: left;
}

.text-overlay .slide-info h3 { color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.text-overlay .slide-info p { color: rgba(255, 255, 255, 0.8) !important; }

/* Opción: Texto DEBAJO de la foto */
.text-below .slide-info {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 120%;
    text-align: center;
    opacity: 0;
}

.text-below .slide-info h3 { color: #000000; }
.text-below .slide-info p { color: #666666; }

.slide.active .slide-info {
    opacity: 1;
    transform: var(--active-transform, translateY(0));
    pointer-events: auto; 
}

.text-below .slide.active .slide-info {
    --active-transform: translateX(-50%) translateY(0);
}

.text-overlay .slide.active .slide-info {
    --active-transform: translateY(0);
}

.slide-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    max-width: 600px;
    font-weight: 700;
}

.slide-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

.slide-info a {
    text-decoration: none;
    color: inherit;
}

.slide-info a:hover h3 {
    text-decoration: underline;
}

/* Controles */
.controls {
    margin-top: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.indicators {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 30px;
    background: var(--accent-color);
}

/* Estilos para Filtros */
.filters-container {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.filters-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 8px;
}

.filters-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #ffcc80; /* Naranja muy bajito */
    border-radius: 2px;
}

.filters-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}



.filter-btn {
    background: #f8f8f8;
    border: 1px solid rgba(0,0,0,0.08);
    color: #555;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-btn:hover {
    background: #fff3e0; /* Naranja bajito */
    color: #b7042c;
    border-color: #ffe0b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.15);
}

.filter-btn.active {
    background: #b7042c; /* Naranja intenso para el activo */
    color: #fff;
    border-color: #b7042c;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.config-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.8);
    color: #000;
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.config-panel label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    :root {
        --slider-width: 280px; /* Tamaño mucho más pequeño para móviles */
    }
    .slider-3d {
        height: 450px; /* Menos altura en móvil */
        perspective: 1000px; /* Perspectiva más cerrada para móvil */
    }
    .slide-info h3 {
        font-size: 1.1rem; /* Texto más pequeño */
    }
    .slide-info p {
        font-size: 0.8rem;
        max-width: 240px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .nav-btn {
        width: 40px;
        height: 40px;
    }
}