* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Quicksand', sans-serif; }
body { background-color: #D1E9FF; min-height: 100vh; color: #2C4E6A; }

/* Barra Superior */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: #FFFFFF; box-shadow: 0 4px 15px rgba(44, 78, 106, 0.08); display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; z-index: 1000; }
.navbar-spacer { width: 40px; }
.navbar h2 { font-size: 1.6rem; color: #2C4E6A; text-align: center; flex-grow: 1; margin: 0; }

/* Menú Hamburguesa y Dropdown */
.menu-container { position: relative; width: 40px; text-align: right; }
.btn-menu { background: none; border: none; font-size: 1.8rem; color: #2C4E6A; cursor: pointer; transition: color 0.3s; }
.btn-menu:hover { color: #3A9D82; }

.dropdown-oculto { display: none; }
.dropdown-visible { 
    display: flex; flex-direction: column; position: absolute; top: 40px; right: 0; 
    background-color: #FFFFFF; min-width: 160px; box-shadow: 0 10px 25px rgba(44,78,106,0.2); 
    border-radius: 12px; padding: 8px 0; overflow: hidden; animation: fadeIn 0.2s ease; 
}
.menu-item { background: none; border: none; padding: 12px 20px; text-align: left; font-size: 1rem; font-weight: 600; color: #617789; cursor: pointer; transition: background 0.2s; width: 100%; }
.menu-item:hover { background-color: #F5F8FF; color: #4A90E2; }
.menu-item.active { color: #4A90E2; border-left: 4px solid #4A90E2; background-color: #F5F8FF; }
.dropdown-visible hr { border: none; border-top: 1px solid #F5F8FF; margin: 4px 0; }
.btn-salir { color: #E6C23F; }

/* Contenedor Principal y Secciones */
.muro-body { padding-top: 100px; display: flex; justify-content: center; align-items: flex-start; }
.muro-container { width: 100%; max-width: 700px; padding: 20px; }

/* Ocultar todo lo que no esté activo */
.seccion { display: none; animation: fadeIn 0.4s ease-in-out; }
.seccion.active { display: block; }

/* Sliders Elegantes */
.slider-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 10px; scrollbar-width: none; }
.slider-container::-webkit-scrollbar { display: none; }
.slide { 
    min-width: 100%; scroll-snap-align: center; padding: 60px 40px; 
    border-radius: 20px; text-align: center; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; min-height: 380px; 
    box-shadow: 0 15px 35px rgba(44, 78, 106, 0.15); 
}
.slide h3 { font-size: 2rem; margin-bottom: 20px; }
.slide p { font-size: 1.1rem; line-height: 1.6; }
.slider-indicador { text-align: center; font-size: 0.9rem; color: #617789; margin-top: 15px; opacity: 0.8; }

.slide-azul { background-color: #4A90E2; color: #FFFFFF; }
.slide-oro { background-color: #E6C23F; color: #FFFFFF; }
.slide-verde { background-color: #228B22; color: #FFFFFF; }
.slide-rojo { background-color: #9f2e22; color: #FFFFFF; }
.slide-azul2 { background-color: #0a19a1; color: #FFFFFF; }
/* Tarjetas Genéricas y Mensajes */
.tarjeta-generica, .create-post, .post-card { 
    background-color: #FFFFFF; padding: 30px; border-radius: 20px; 
    box-shadow: 0 5px 20px rgba(44, 78, 106, 0.08); margin-bottom: 25px; text-align: center;
}
.create-post h3, .tarjeta-generica h3 { font-size: 1.3rem; color: #2C4E6A; margin-bottom: 15px; }
.tarjeta-generica p { color: #617789; margin-bottom: 15px; }

textarea, .tarjeta-generica input { 
    width: 100%; padding: 15px; border: 2px solid #F5F8FF; border-radius: 12px; 
    font-size: 1rem; color: #2C4E6A; background-color: #F5F8FF; outline: none; margin-bottom: 15px;
}
.btn-publish { background-color: #3A9D82; color: #FFFFFF; border: none; padding: 12px 25px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-publish:hover { background-color: #2c7a65; }
.post-actions { text-align: right; }

.post-header { display: flex; align-items: center; margin-bottom: 15px; }
.author-avatar { width: 40px; height: 40px; color: #FFFFFF; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 600; margin-right: 15px; }
.post-content { text-align: left; color: #2C4E6A; line-height: 1.5; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* =========================================
   ESTILOS PARA EDITAR Y BORRAR
   ========================================= */
.post-opciones {
    margin-left: auto; /* Empuja los botones a la derecha */
    display: flex;
    gap: 12px;
}

.btn-opcion {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.btn-opcion:hover {
    opacity: 1;
    transform: scale(1.1);
}

.caja-edicion {
    width: 100%;
    padding: 10px;
    border: 2px solid #4A90E2;
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #2C4E6A;
    resize: none;
    margin-top: 10px;
}

.btn-guardar-edicion {
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    margin-top: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-guardar-edicion:hover {
    background-color: #357ABD;
}
/* =========================================
   ESTILOS DEL MÓDULO DE MÚSICA
   ========================================= */
.panel-musica {
    background-color: #FFFFFF; padding: 25px; border-radius: 20px; 
    box-shadow: 0 5px 20px rgba(44, 78, 106, 0.08); margin-bottom: 25px;
}

.spotify-status {
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid #F5F8FF; padding-bottom: 15px; margin-bottom: 15px;
}

.spotify-info h3 { font-size: 1.2rem; color: #2C4E6A; margin-bottom: 5px; }
.spotify-info p { font-size: 0.9rem; color: #617789; }

.btn-spotify {
    background-color: #1DB954; color: #FFFFFF; border: none; padding: 10px 20px; 
    border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-spotify:hover { background-color: #1aa34a; transform: scale(1.05); }

/* Interruptor (Toggle Switch) estilo Airbuds */
.toggle-container {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; color: #2C4E6A;
}

.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #ccc; transition: .4s;
}
.slider-toggle:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; 
    background-color: white; transition: .4s;
}
input:checked + .slider-toggle { background-color: #1DB954; }
input:checked + .slider-toggle:before { transform: translateX(24px); }
.slider-toggle.round { border-radius: 34px; }
.slider-toggle.round:before { border-radius: 50%; }

/* Tarjetas de Música */
.post-musica .track-info {
    display: flex; align-items: center; padding: 15px 20px; 
    background-color: #F5F8FF; border-radius: 12px; margin: 0 20px 20px 20px;
}
.track-cover {
    width: 60px; height: 60px; border-radius: 10px; display: flex; 
    justify-content: center; align-items: center; font-size: 1.5rem; margin-right: 15px;
}
.track-details h4 { color: #2C4E6A; font-size: 1.1rem; margin-bottom: 5px; }
.track-details p { color: #617789; font-size: 0.9rem; }
.etiqueta-vivo { margin-left: auto; font-size: 0.8rem; color: #1DB954; font-weight: 600; }

/* Botón Explicación */
.btn-explicacion {
    background: none; border: none; color: #a0b3c6; font-size: 0.9rem; 
    text-decoration: underline; cursor: pointer; transition: 0.3s;
}
.btn-explicacion:hover { color: #4A90E2; }
/* =========================================
   BOTÓN EXPLICACIÓN DISCRETO (Esquina Inferior Derecha)
   ========================================= */
.btn-explicacion-esquina {
    position: fixed;
    bottom: 20px;
    right: 25px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #8fa4b8;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(44, 78, 106, 0.08);
    transition: all 0.3s ease;
    z-index: 99;
}

.btn-explicacion-esquina:hover {
    background-color: #FFFFFF;
    color: #4A90E2;
    transform: translateY(-2px);
}
/* Resultados del buscador de Spotify */
.resultados-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #FFFFFF; border: 2px solid #F5F8FF; border-radius: 0 0 12px 12px;
    max-height: 250px; overflow-y: auto; z-index: 100;
    box-shadow: 0 10px 20px rgba(44, 78, 106, 0.1); margin-top: -15px;
}
.resultado-item {
    display: flex; align-items: center; padding: 10px 15px;
    cursor: pointer; border-bottom: 1px solid #F5F8FF; transition: 0.2s;
}
.resultado-item:hover { background-color: #F5F8FF; }
.resultado-item img { width: 40px; height: 40px; border-radius: 5px; margin-right: 15px; }
.resultado-info h5 { color: #2C4E6A; font-size: 0.95rem; margin-bottom: 2px; }
.resultado-info p { color: #617789; font-size: 0.8rem; }
.resultado-item.seleccionado { background-color: #e8f7ed; border-left: 4px solid #1DB954; }
/* =========================================
   ESTILOS PARA EL LOGIN (INDEX.HTML)
   ========================================= */
/* Reemplaza .tu-clase-actual con el nombre exacto que tenga la caja en tu HTML */
.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 78, 106, 0.12);
    text-align: center;
}

.input-group label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #2C4E6A;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #F5F8FF;
    border-radius: 10px;
    background-color: #F5F8FF;
    outline: none;
    color: #2C4E6A;
}

.btn-login {
    width: 100%;
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #357ABD;
}

.login-container h2 {
    color: #2C4E6A;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-container p {
    color: #617789;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.login-container input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #F5F8FF;
    border-radius: 12px;
    background-color: #F5F8FF;
    color: #2C4E6A;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.login-container input:focus {
    border-color: #4A90E2;
}

.login-container button {
    width: 100%;
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.login-container button:hover {
    background-color: #357ABD;
}