* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: rgb(60, 180, 255);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo {
    width: 200px;
    height: 160px;
    background-image: url('https://comedoramelia.com/survey_stars/amelia.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h1 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 24px;
}

p {
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.5;
}

.config-info {
    background-color: #e8f5e8;
    border: 1px solid #4CAF50;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.db-info {
    background-color: #e8f4fd;
    border: 1px solid #2196F3;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #0d47a1;
}

/* Áreas de calificación */
.rating-area {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.rating-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.area-header {
    text-align: center;
    margin-bottom: 20px;
}

.area-header i {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}

.area-header h2 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 22px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.area-subtitle {
    color: #e0f7fa;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    display: block;
}

/* Colores específicos para cada área */
.food-area .area-header i { color: #ff6b6b; }
.drink-area .area-header i { color: #4ecdc4; }
.service-area .area-header i { color: #ffe66d; }

.selected-rating {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #e0f7fa;
    font-weight: 500;
    min-height: 20px;
}

/* Estrellas */
.stars {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.star {
    font-size: 2.5em;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    margin: 0 8px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
}

.star:hover {
    transform: scale(1.2);
    color: #ffd700;
}

.star.active {
    color: #ffe600;
    text-shadow: 0 0 10px rgba(255,230,0,0.5);
}

.stars.disabled .star {
    cursor: not-allowed;
    opacity: 0.7;
}

.stars.disabled .star:hover {
    color: inherit !important;
    transform: none;
}

/* Observaciones */
.observation-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    border-left: 4px solid #ffe600;
    animation: slideDown 0.3s ease;
}

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

.observation-container label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.observation-container label i {
    color: #ffe600;
    margin-right: 8px;
}

.observation-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 16px;
    height: 80px;
    resize: vertical;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.observation-container textarea:focus {
    outline: none;
    border-color: #ffe600;
    box-shadow: 0 0 0 2px rgba(255,230,0,0.2);
    background: white;
}

.observation-container textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Formulario */
.form-container {
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

input:disabled, textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea {
    height: 100px;
    resize: vertical;
}

/* Botones */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button i {
    margin-right: 8px;
}

.google-btn {
    background-color: #4285F4;
    margin-top: 15px;
}

.google-btn:hover {
    background-color: #3367D6;
}

.new-survey-btn {
    background-color: #FF9800;
    margin-top: 15px;
    width: auto;
    padding: 10px 20px;
    display: inline-block;
}

.new-survey-btn:hover {
    background-color: #F57C00;
}

/* Mensajes */
.message {
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
}

.success {
    background-color: #fff563;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message h3 i {
    margin-right: 10px;
}

.success h3 i { color: #4CAF50; }
.info h3 i { color: #2196F3; }
.warning h3 i { color: #FF9800; }

/* Contador de encuesta */
.survey-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transition: opacity 0.3s;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

/* Iconos en formulario */
.form-group label i {
    color: #4CAF50;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Iconos en información del sistema */
.config-info i {
    color: #4CAF50;
    margin-right: 8px;
}

.db-info i {
    color: #2196F3;
    margin-right: 8px;
}

/* ============================================= */
/* MEJORAS PARA INVITACIÓN GOOGLE MAPS */
/* ============================================= */

/* Estilos mejorados para la invitación a Google */
.success-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

.success-header i {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 10px;
    display: block;
}

.success-header h3 {
    color: #2E7D32;
    font-size: 1.5em;
    margin: 0;
}

.google-invitation {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #e8f5e8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.google-header {
    text-align: center;
    margin-bottom: 15px;
}

.google-header i {
    font-size: 2.5em;
    color: #4285F4;
    margin-bottom: 10px;
    display: block;
}

.google-header h4 {
    color: #1a73e8;
    font-size: 1.3em;
    margin: 0;
}

.google-benefits {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.benefit i {
    font-size: 2em;
    color: #34A853;
    margin-bottom: 8px;
    background: rgba(52, 168, 83, 0.1);
    padding: 12px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit span {
    font-size: 0.9em;
    color: #5f6368;
    font-weight: 500;
}

.google-btn.primary {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.google-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #3367D6 0%, #2E8B57 100%);
}

.google-btn.primary:active {
    transform: translateY(0);
}

.google-btn.primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.google-btn.primary:hover::after {
    left: 100%;
}

.alternative-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.alternative-text {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.new-survey-btn.secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    width: auto;
    margin-top: 0;
}

.new-survey-btn.secondary:hover {
    background: #f5f5f5;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .star {
        font-size: 2em;
        margin: 0 5px;
    }
    
    .area-header i {
        font-size: 2em;
    }
    
    .area-header h2 {
        font-size: 18px;
    }
    
    .area-subtitle {
        font-size: 12px;
    }
    
    .survey-counter {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 15px;
        display: inline-block;
    }
    
    /* Responsive para beneficios */
    .google-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .google-btn.primary {
        padding: 14px 20px;
        font-size: 1em;
    }
}