/* =================================================================== */
/* ESTILOS GENERALES Y RESET                                          */
/* =================================================================== */
/*Fuente*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display: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                                     */
/* Aquí puedes cambiar la imagen de fondo y sus propiedades           */
/* =================================================================== */
body {
    /* IMAGEN DE FONDO - Cambia esta URL por la imagen que desees */
    background: url('30215.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed; /* CORRIGE EL PROBLEMA DE LA IMAGEN PARTIDA */
    
    /* CONFIGURACIÓN BÁSICA DEL LAYOUT */
    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                                         */
/* Esta capa mejora la legibilidad del texto sobre la imagen          */
/* =================================================================== */
body::before {
    content: '';
    position: fixed; /* CAMBIADO DE ABSOLUTE A FIXED para cubrir toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Opacidad uniforme en toda la pantalla */
    z-index: -1;
    pointer-events: none;
}

/* Añade esto después del selector body::before */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Busca en Google "subtle lines pattern transparent" para encontrar una imagen */
    background-image: url('https://www.toptal.com/designers/subtlepatterns/uploads/carbon-fibre-v2.png');
    background-repeat: repeat;
    opacity: 0.05; /* Muy sutil para que no moleste */
    z-index: -1;
}

/* =================================================================== */
/* CONTENEDOR PRINCIPAL CENTRADO                                      */
/* Este contenedor se centra automáticamente en cualquier pantalla    */
/* =================================================================== */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto; /* CENTRADO HORIZONTAL AUTOMÁTICO */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px); /* Compatibilidad Safari */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

/* =================================================================== */
/* SECCIÓN DEL LOGO                                                   */
/* El logo se centra y mantiene proporciones en todas las pantallas   */
/* =================================================================== */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    animation: bounce 4s infinite;
}

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

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

/* =================================================================== */
/* TEXTOS PRINCIPALES                                                 */
/* Títulos y párrafos con diseño responsivo                           */
/* =================================================================== */
h1 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #F5F5DC;
    line-height: 1.2;
}

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

/* =================================================================== */
/* SISTEMA DE CALIFICACIÓN POR ESTRELLAS CENTRADO                    */
/* Las estrellas se centran perfectamente en cualquier dispositivo    */
/* =================================================================== */
.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Permite que las estrellas se ajusten en pantallas pequeñas */
    margin: 30px 0;
    direction: rtl;
    gap: 5px; /* Espaciado consistente entre estrellas */
}

.rating input {
    display: none;
}

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

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    background: #D4AF37;
    color: #333;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

/* =================================================================== */
/* FORMULARIO RESPONSIVO                                              */
/* Los campos del formulario se adaptan a cualquier tamaño de pantalla */
/* =================================================================== */
.form-group {
    margin-bottom: 25px;
    width: 100%;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    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;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

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

/* =================================================================== */
/* BOTÓN 3D CENTRADO Y RESPONSIVO                                     */
/* El botón se centra automáticamente y se adapta a pantallas pequeñas */
/* =================================================================== */
.btn-3d {
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: #8B0000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 0 #4C0000, 0 15px 20px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 30px auto 0;
    margin-bottom: 20px;
    width: fit-content;
    min-width: 200px;
    text-align: center;
}

.btn-3d:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #4C0000, 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-3d:hover {
    background: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #4C0000, 0 20px 25px rgba(0, 0, 0, 0.6);
}

/* =================================================================== */
/* MENÚ DE PERFIL/GERENTE (ESQUINA SUPERIOR DERECHA)                 */
/* El menú se mantiene fijo en la esquina superior derecha            */
/* =================================================================== */
.google-menu {
    position: fixed; /* CAMBIADO A FIXED para que siempre esté visible */
    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 {
    color: #ffcc00;
    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.95);
    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;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 204, 0, 0.8);
    color: #000;
}

.show {
    display: block;
}

/* =================================================================== */
/* ELEMENTOS FLOTANTES ANIMADOS DE FONDO                             */
/* Estos elementos dan vida a la página con animaciones suaves        */
/* =================================================================== */
.floating-elements {
    position: fixed; /* CAMBIADO A FIXED para que cubra toda la pantalla */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

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

/* POSICIONES Y COLORES DE LOS ELEMENTOS FLOTANTES */
.floating-element:nth-child(1) { 
    top: 10%; 
    left: 5%; 
    animation-delay: 0s; 
    color: #F5F5DC; 
}

.floating-element:nth-child(2) { 
    top: 20%; 
    right: 10%; 
    animation-delay: 1s; 
    color: #8B0000; 
}

.floating-element:nth-child(3) { 
    top: 60%; 
    left: 8%; 
    animation-delay: 2s; 
    color: #FFFFFF; 
}

.floating-element:nth-child(4) { 
    top: 40%; 
    right: 5%; 
    animation-delay: 3s; 
    color: #A9A9A9; 
}

.floating-element:nth-child(5) { 
    top: 70%; 
    right: 15%; 
    animation-delay: 4s; 
    color: #D4AF37; 
}

/* =================================================================== */
/* ANIMACIONES MEJORADAS                                              */
/* Todas las animaciones funcionan correctamente en cualquier dispositivo */
/* =================================================================== */
@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) scale(1); 
    }
    33% { 
        transform: translateY(-20px) rotate(5deg) scale(1.1); 
    }
    66% { 
        transform: translateY(-10px) rotate(-3deg) scale(0.9); 
    }
    100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
}

/* =================================================================== */
/* DISEÑO RESPONSIVO PARA TABLETS (768px y menores)                  */
/* =================================================================== */
@media (max-width: 768px) {
    body {
        padding: 15px;
        background-attachment: scroll; /* Mejora el rendimiento en móviles */
    }
    
    .container { 
        padding: 20px;
        margin: 10px auto;
        max-width: 95%;
    }
    
    h1 { 
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .logo { 
        width: 120px; 
        height: 120px; 
    }
    
    .rating {
        gap: 3px;
    }
    
    .rating label { 
        width: 35px; 
        height: 35px; 
        font-size: 20px; 
    }
    
    .btn-3d {
        min-width: 180px;
        padding: 14px 30px;
    }
    
    .floating-element { 
        font-size: 20px; 
    }
    
    .google-menu {
        top: 15px;
        right: 15px;
    }
}

/* =================================================================== */
/* DISEÑO RESPONSIVO PARA MÓVILES (480px y menores)                  */
/* =================================================================== */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        margin: 5px auto;
        max-width: 98%;
        border-radius: 15px;
    }
    
    h1 { 
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .logo { 
        width: 150px; 
        height: 150px;
        border-radius: 10px;
    }
    
    .rating {
        margin: 20px 0;
        gap: 2px;
    }
    
    .rating label { 
        width: 30px; 
        height: 30px; 
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Evita el zoom en iOS */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .btn-3d { 
        width: 100%;
        min-width: unset;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* OCULTAR ELEMENTOS FLOTANTES EN MÓVILES para mejor rendimiento */
    .floating-elements {
        display: none;
    }
    
    .google-menu {
        top: 10px;
        right: 10px;
    }
    
    .profile-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* =================================================================== */
/* CONFIGURACIÓN PARA PANTALLAS MUY PEQUEÑAS (320px y menores)       */
/* =================================================================== */
@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 12px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .rating label {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .btn-3d {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* =================================================================== */
/* CONFIGURACIÓN PARA PANTALLAS GRANDES (1200px y mayores)           */
/* =================================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 700px;
        padding: 40px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .logo {
        width: 200px;
        height: 200px;
    }
    
    .rating label {
        width: 45px;
        height: 45px;
        font-size: 26px;
    }
    
    .floating-element {
        font-size: 28px;
    }
}/* =================================================================== */
/* NUEVOS ESTILOS: MODAL DE 5 ESTRELLAS                               */
/* Estos estilos controlan la notificación emergente.                 */
/* =================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Cambiará a 'flex' con JavaScript */
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Asegura que esté por encima de todo */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInModal 0.5s ease-out;
}

.modal-content {
    background: rgba(40, 40, 40, 0.8);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #fff;
    transform: scale(0.9);
    animation: zoomInModal 0.5s ease-out forwards;
}

.modal-icon {
    font-size: 5rem;
    color: #28a745; /* Verde de éxito */
    margin-bottom: 20px;
    animation: popIn 0.5s ease-out 0.3s backwards;
}

.modal-content h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    background-color: #ffcc00;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-button:hover {
    background-color: #ffd633;
    transform: scale(1.05);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.2);
}

/* Animaciones para el Modal */
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomInModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

