/* =====================================================
   LA GRUPERA - Estilos CSS
   Diseño Rosa Fuego + Colores Oscuros Modernos
   ===================================================== */

/* Variables de Color */
:root {
    --rosa-fuego: #FF006E;
    --rosa-fuego-hover: #FF4D8F;
    --oscuro-principal: #0a0a0a;
    --oscuro-secundario: #1a1a1a;
    --oscuro-terciario: #2d2d2d;
    --texto-principal: #ffffff;
    --texto-secundario: #cccccc;
}

/* Reset y Fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, var(--oscuro-principal) 0%, var(--oscuro-secundario) 100%);
    color: var(--texto-principal);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================================== 
   PÁGINA DE LOGIN
   ===================================================== */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--oscuro-secundario);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(255, 0, 110, 0.3);
    border: 2px solid var(--oscuro-terciario);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--rosa-fuego);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.logo p {
    color: var(--texto-secundario);
    font-size: 1rem;
}

/* Mensajes */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
}

.message.info {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid #007bff;
}

.message.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
}

/* ===================================================== 
   OPCIONES PRINCIPALES (Teléfono, Google, Email)
   ===================================================== */

.main-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-large {
    padding: 20px 30px !important;
    font-size: 1.1rem !important;
    font-weight: bold;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-large i {
    font-size: 1.5rem;
}

.btn-large span {
    flex: 1;
    text-align: center;
}

/* Botón de Teléfono */
.btn-phone {
    background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-phone:hover {
    background: linear-gradient(135deg, #2ee473 0%, #25d366 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Botón de Google */
.btn-google {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
}

.btn-google:hover {
    background: linear-gradient(135deg, #5a95f5 0%, #4285f4 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(66, 133, 244, 0.5);
}

/* Botón de Email */
.btn-email {
    background: linear-gradient(135deg, var(--rosa-fuego) 0%, var(--rosa-fuego-hover) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

.btn-email:hover {
    background: linear-gradient(135deg, var(--rosa-fuego-hover) 0%, var(--rosa-fuego) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 0, 110, 0.5);
}

/* ===================================================== 
   FORMULARIO DE EMAIL
   ===================================================== */

.email-form {
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-back {
    background: transparent;
    border: 1px solid var(--oscuro-terciario);
    color: var(--texto-secundario);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-back:hover {
    background: var(--oscuro-terciario);
    color: var(--texto-principal);
    border-color: var(--rosa-fuego);
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field {
    padding: 15px;
    background: var(--oscuro-principal);
    border: 2px solid var(--oscuro-terciario);
    border-radius: 10px;
    color: var(--texto-principal);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--rosa-fuego);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

.input-field::placeholder {
    color: var(--texto-secundario);
}

/* Botones */
.btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--rosa-fuego);
    color: white;
}

.btn-primary:hover {
    background: var(--rosa-fuego-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
}

.btn-secondary {
    background: var(--oscuro-terciario);
    color: white;
}

.btn-secondary:hover {
    background: #3d3d3d;
    transform: translateY(-2px);
}

/* Footer del Login */
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--texto-secundario);
    font-size: 0.9rem;
}

/* ===================================================== 
   MODAL DE LOGIN CON TELÉFONO
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content-login {
    background: var(--oscuro-secundario);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 50px rgba(255, 0, 110, 0.5);
    border: 2px solid var(--oscuro-terciario);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content-login h2 {
    color: var(--rosa-fuego);
    margin-bottom: 10px;
    text-align: center;
}

.modal-content-login p {
    color: var(--texto-secundario);
    text-align: center;
    margin-bottom: 20px;
}

.modal-content-login small {
    display: block;
    margin-top: 5px;
    margin-bottom: 15px;
}

.phone-step {
    display: flex;
    flex-direction: column;
}

#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--rosa-fuego);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--rosa-fuego-hover);
    transform: scale(1.1);
}

/* ===================================================== 
   PÁGINA DEL PLAYER
   ===================================================== */

.player-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header del Player */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--oscuro-secundario);
    border-bottom: 2px solid var(--oscuro-terciario);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--texto-principal);
}

.user-info i {
    font-size: 1.5rem;
    color: var(--rosa-fuego);
}

.btn-logout {
    padding: 10px 20px;
    background: var(--oscuro-terciario);
    border: 2px solid var(--rosa-fuego);
    border-radius: 10px;
    color: var(--texto-principal);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--rosa-fuego);
    transform: translateY(-2px);
}

/* Contenedor del Player */
.player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

.player-logo h1 {
    font-size: 2rem;
    color: var(--rosa-fuego);
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

/* Botón Principal Play/Pause */
.main-control {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-play {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rosa-fuego) 0%, #ff1a7a 100%);
    border: 5px solid var(--oscuro-terciario);
    color: white;
    font-size: 5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 50px rgba(255, 0, 110, 0.5);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 60px rgba(255, 0, 110, 0.7);
}

.btn-play:active {
    transform: scale(0.95);
}

/* Controles Secundarios */
.secondary-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.control-item i {
    color: var(--rosa-fuego);
    font-size: 1.5rem;
}

.volume-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: var(--oscuro-terciario);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rosa-fuego);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rosa-fuego);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.btn-control {
    padding: 15px 30px;
    background: var(--oscuro-terciario);
    border: 2px solid var(--rosa-fuego);
    border-radius: 10px;
    color: var(--texto-principal);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-control:hover {
    background: var(--rosa-fuego);
    transform: translateY(-2px);
}

/* Más Opciones */
.more-options {
    margin-top: 20px;
}

.btn-more {
    padding: 15px 30px;
    background: var(--oscuro-terciario);
    border: 2px solid var(--oscuro-terciario);
    border-radius: 10px;
    color: var(--texto-secundario);
    font-size: 1rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal de Portada */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(255, 0, 110, 0.5);
}

/* Footer del Player */
.player-footer {
    text-align: center;
    padding: 20px;
    color: var(--texto-secundario);
    font-size: 0.9rem;
    background: var(--oscuro-secundario);
    border-top: 2px solid var(--oscuro-terciario);
}

/* ===================================================== 
   RESPONSIVE - iOS y Mobile
   ===================================================== */

@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 18px 25px !important;
        font-size: 1rem !important;
    }
    
    .btn-large i {
        font-size: 1.3rem;
    }
    
    .btn-play {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }
    
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 16px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .btn-play {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    .modal-content-login {
        padding: 30px 20px;
    }
}