/* =================================================================== */
/* ESTILOS GENERALES Y RESET                                          */
/* =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Montserrat:wght@400;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =================================================================== */
/* CONFIGURACIÓN DEL BODY Y FONDO                                     */
/* =================================================================== */
body {
    /* CAMBIO VISUAL: Imagen de fondo cambiada a una escena de playa/mariscos. */
    background: url('playa.webp') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* =================================================================== */
/* CAPA OSCURA SOBRE EL FONDO                                         */
/* =================================================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CAMBIO VISUAL: Tono oscuro para resaltar el color cian. */
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: none;
}

/* Textura sutil */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.toptal.com/designers/subtlepatterns/uploads/carbon-fibre-v2.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: -1;
}

/* =================================================================== */
/* CONTENEDOR PRINCIPAL CENTRADO                                      */
/* =================================================================== */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* CAMBIO VISUAL: Fondo oscuro translúcido para el efecto "cristal". */
    background: rgba(10, 25, 40, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 183, 241, 0.25);
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

/* =================================================================== */
/* SECCIÓN DEL LOGO                                                   */
/* =================================================================== */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
    animation: bounce 4s infinite;
}

.logo {
    max-width: 300px !important; 
    height: auto;
    display: flex;
    object-fit: cover;
    border: 0px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* =================================================================== */
/* TEXTOS PRINCIPALES                                                 */
/* =================================================================== */
h1 {
    /* CAMBIO VISUAL: Fuente y color adaptados al logo de "El Muchacho Alegre". */
    font-family: 'Poppins', sans-serif;
    color: #00B7F1; /* Cian del logo */
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 100%;
}

/* =================================================================== */
/* SISTEMA DE CALIFICACIÓN POR ESTRELLAS                               */
/* =================================================================== */
.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
    direction: rtl;
    gap: 8px;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    /* CAMBIO VISUAL: Color de las estrellas activas adaptado al cian del logo. */
    background: #00B7F1;
    color: #fff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 183, 241, 0.7);
}

/* =================================================================== */
/* FORMULARIO RESPONSIVO                                              */
/* =================================================================== */
.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    /* CAMBIO VISUAL: Efecto de foco adaptado al cian del logo. */
    box-shadow: 0 0 15px rgba(0, 183, 241, 0.8);
    border-color: #00B7F1;
    background: #fff;
}

.form-group textarea {
    min-height: 140px;
    font-family: inherit;
}

/* =================================================================== */
/* BOTÓN 3D                                                           */
/* =================================================================== */
.btn-3d {
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    /* CAMBIO VISUAL: Color de fondo y sombra adaptados al cian del logo. */
    background: #00B7F1;
    box-shadow: 0 6px 0 #008CBA, 0 12px 15px rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.2s ease;
    position: relative;
    display: block;
    margin: 30px auto 0;
    margin-bottom: 20px;
    width: fit-content;
    min-width: 200px;
    text-align: center;
}

.btn-3d:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #008CBA, 0 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-3d:hover {
    /* CAMBIO VISUAL: Color de hover más brillante. */
    background: #23ccff;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #008CBA, 0 16px 20px rgba(0, 0, 0, 0.4);
}

/* =================================================================== */
/* MENÚ DE PERFIL/GERENTE                                            */
/* =================================================================== */
.google-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.profile-icon {
    width: 40px;
    height: 40px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.profile-icon:hover {
    /* CAMBIO VISUAL: Color de hover adaptado al cian del logo. */
    color: #00B7F1;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    /* CAMBIO VISUAL: Color de hover adaptado al cian del logo. */
    background-color: #00B7F1;
    color: #fff;
}

.show {
    display: block;
}

/* =================================================================== */
/* ELEMENTOS FLOTANTES ANIMADOS DE FONDO                             */
/* =================================================================== */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    animation: float 8s ease-in-out infinite;
    opacity: 0.5;
    font-size: 24px;
    user-select: none;
    pointer-events: none;
}

/* CAMBIO VISUAL: Posiciones y colores de los iconos adaptados a la paleta de "El Muchacho Alegre". */
.floating-element:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; color: #00B7F1; } /* Cian */
.floating-element:nth-child(2) { top: 25%; right: 12%; animation-delay: 1.5s; color: #FFFFFF; } /* Blanco */
.floating-element:nth-child(3) { top: 65%; left: 10%; animation-delay: 3s; color: #88dff8; } /* Cian claro */
.floating-element:nth-child(4) { top: 45%; right: 8%; animation-delay: 4.5s; color: #00B7F1; } /* Cian */
.floating-element:nth-child(5) { top: 80%; left: 15%; animation-delay: 6s; color: #FFFFFF; } /* Blanco */


/* =================================================================== */
/* ANIMACIONES                                                        */
/* =================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* =================================================================== */
/* SECCIONES RESPONSIVAS                                               */
/* =================================================================== */
@media (max-width: 768px) {
    body { padding: 15px; background-attachment: scroll; }
    .container { padding: 25px; margin: 10px auto; max-width: 95%; }
    h1 { font-size: 2.2rem; }
    .logo { max-width: 250px !important; }
    .rating label { width: 40px; height: 40px; font-size: 22px; }
    .floating-element { font-size: 20px; }
    .google-menu { top: 15px; right: 15px; }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .container { padding: 20px 15px; border-radius: 15px; }
    h1 { font-size: 1.8rem; }
    p { font-size: 1rem; }
    .logo { max-width: 180px !important; }
    .rating label { width: 35px; height: 35px; font-size: 18px; }
    .form-group input, .form-group textarea { font-size: 16px; }
    .btn-3d { width: 100%; min-width: unset; }
    .google-menu { top: 10px; right: 10px; }
}



