/* Mobile-first, dark mode */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Evitar que el contenido se superponga al bottom nav */
}

/* Degradado con el nuevo tema rosa y fucsia */
header {
    background: linear-gradient(135deg, #C2185B 0%, #FFC5D3 100%);
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.25);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.app-content {
    padding: 0 1.25rem 2rem;
}

/* --- TABS SYSTEM --- */
.tab-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SETLIST (SECCIÓN 1) --- */
.setlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.song-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-label {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    padding: 1.25rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    flex-grow: 1;
}

.song-label:active {
    transform: scale(0.98);
}

.song-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 1.25rem;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
    background-color: transparent;
}

.song-checkbox:checked {
    background-color: #C2185B;
    border-color: #C2185B;
}

.song-checkbox:checked::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 4px;
    left: 9px;
    transform: rotate(45deg);
}

.song-name {
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    position: relative;
}

.song-checkbox:checked + .song-name {
    color: #666;
    text-decoration: line-through;
}

/* Animación Confeti */
.song-name::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.song-checkbox:checked + .song-name::after {
    animation: confetti-explosion 0.6s ease-out forwards;
}

@keyframes confetti-explosion {
    0% {
        opacity: 1;
        box-shadow: 
            0 0 0 0px #FFC5D3, 
            0 0 0 0px #ffd700, 
            0 0 0 0px #4cd964, 
            0 0 0 0px #C2185B,
            0 0 0 0px #5ac8fa,
            0 0 0 0px #ff9500;
    }
    100% {
        opacity: 0;
        box-shadow: 
            -35px -35px 0 1px #FFC5D3, 
            35px -35px 0 2px #ffd700, 
            -35px 35px 0 1px #4cd964, 
            35px 35px 0 2px #C2185B,
            0 -45px 0 1.5px #5ac8fa,
            0 45px 0 1.5px #ff9500;
    }
}

/* Área de Notas */
.toggle-note-btn {
    background-color: #2c2c2c;
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.toggle-note-btn:active {
    background-color: #444;
}

.song-note {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.song-note:focus {
    outline: none;
    border-color: #FFC5D3;
}

.hidden {
    display: none !important;
}

/* --- CÁMARA (SECCIÓN 2) --- */
.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
}

.camera-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.camera-container p {
    color: #aaa;
    margin-bottom: 3rem;
}

.camera-btn {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #FFC5D3 0%, #C2185B 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.camera-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.4);
}

.hidden-input {
    display: none;
}

#upload-progress {
    margin-top: 2rem;
    width: 100%;
    max-width: 300px;
}

.progress-bar {
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #FFC5D3;
    transition: width 0.3s ease;
}

.upload-action-btn {
    margin-top: 1.5rem;
    background-color: #C2185B;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.upload-action-btn:active {
    transform: scale(0.95);
    background-color: #9c1349;
}

.upload-progress-text {
    margin-top: 1rem;
    color: #FFC5D3;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- KIT DE SUPERVIVENCIA (SECCIÓN 3) --- */
.kit-container {
    padding: 1rem 0;
}

.kit-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.checklist {
    list-style: none;
    margin-bottom: 3rem;
}

.checklist li {
    background-color: #1e1e1e;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.checklist label {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.checklist input {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    accent-color: #FFC5D3;
}

.sos-btn {
    width: 100%;
    background-color: #C2185B;
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.2rem;
    border-radius: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.3);
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sos-btn:active {
    transform: scale(0.98);
    background-color: #9c1349;
}

.sos-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    min-height: 20px;
}

/* --- CÁPSULA (SECCIÓN 4) --- */
.capsule-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.capsule-icon {
    font-size: 5rem;
    color: #FFC5D3;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 197, 211, 0.3));
}

.capsule-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.capsule-container p {
    color: #aaa;
    margin-bottom: 2rem;
}

.countdown {
    font-size: 2.8rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    background: #1e1e1e;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    letter-spacing: 2px;
    color: #FFC5D3;
    border: 2px solid #333;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* --- BOTTOM NAVIGATION BAR --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    border-top: 1px solid #333;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 25%;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item.active {
    color: #FFC5D3;
}

.nav-item.active i {
    transform: translateY(-3px);
}