/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff5c0 0%, #ffe4a0 100%);
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezados */
h1, h2, h3 {
    margin-bottom: 20px;
}

/* Formularios - Euforia Brand */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #271200;
    font-family: 'Poppins', sans-serif;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #eb8f1c;
    box-shadow: 0 0 0 3px rgba(235, 143, 28, 0.1);
}

button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #eb8f1c 0%, #d67a00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 143, 28, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tablas - Euforia Brand */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(120, 54, 28, 0.1);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

table th {
    background: linear-gradient(135deg, #046871 0%, #034d54 100%);
    color: white;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #fff9e6;
}

/* Tarjeta de fidelización - Euforia Brand */
.tarjeta-container {
    text-align: center;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #fff5c0 0%, #ffe4a0 100%);
    font-family: 'Poppins', sans-serif;
}

.tarjeta-titulo {
    font-size: 28px;
    margin-bottom: 10px;
    color: #271200;
    font-weight: 700;
    text-shadow: 2px 2px 0px rgba(235, 143, 28, 0.3);
    font-family: 'Fredoka', cursive;
}

.tarjeta-subtitulo {
    font-size: 16px;
    color: #78361c;
    margin-bottom: 30px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.tarjeta-imagen {
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(120, 54, 28, 0.2);
    transition: transform 0.3s ease;
}

.tarjeta-imagen:hover {
    transform: scale(1.02);
}

.tarjeta-imagen img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
}

.condiciones-compra {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid #046871;
    box-shadow: 0 4px 12px rgba(4, 104, 113, 0.1);
}

.condiciones-titulo {
    color: #271200;
    font-family: 'Fredoka', cursive;
    font-size: 20px;
    margin-bottom: 15px;
}

.condiciones-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #78361c;
    line-height: 1.8;
}

.condiciones-lista li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.condiciones-lista li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

.historial-reclamaciones {
    margin-top: 40px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(120, 54, 28, 0.1);
}

.historial-titulo {
    font-size: 22px;
    margin-bottom: 20px;
    color: #271200;
    font-weight: 700;
    font-family: 'Fredoka', cursive;
}

/* Tabla de historial con estilo Euforia */
.historial-reclamaciones table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

.historial-reclamaciones table th {
    background: linear-gradient(135deg, #046871 0%, #034d54 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}

.historial-reclamaciones table th:first-child {
    border-radius: 10px 0 0 0;
}

.historial-reclamaciones table th:last-child {
    border-radius: 0 10px 0 0;
}

.historial-reclamaciones table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #78361c;
    font-family: 'Poppins', sans-serif;
}

.historial-reclamaciones table tr:last-child td {
    border-bottom: none;
}

.historial-reclamaciones table tr:hover {
    background-color: #fff9e6;
}

/* Mensaje de celebración */
.mensaje-ganador {
    background: linear-gradient(135deg, #eb8f1c 0%, #d67a00 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(235, 143, 28, 0.4);
    animation: pulse 2s infinite;
    font-family: 'Fredoka', cursive;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Progreso visual */
.progreso-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(120, 54, 28, 0.1);
}

.progreso-texto {
    font-size: 16px;
    color: #78361c;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.progreso-barra {
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progreso-lleno {
    height: 100%;
    background: linear-gradient(90deg, #eb8f1c 0%, #046871 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Footer de tarjeta */
.tarjeta-footer {
    margin-top: 50px;
    padding: 20px;
    color: #78361c;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.tarjeta-footer strong {
    color: #271200;
    font-weight: 600;
}

/* Panel de administración - Euforia Brand */
.admin-panel {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(120, 54, 28, 0.1);
    font-family: 'Poppins', sans-serif;
}

.admin-header h1 {
    color: #271200;
    font-family: 'Fredoka', cursive;
    font-size: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fff5c0;
}

.admin-nav a {
    margin-right: 20px;
    color: #046871;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.admin-nav a:hover {
    color: #eb8f1c;
    text-decoration: none;
}

.logout-btn {
    background-color: #eb8f1c;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #d67a00;
    color: white;
}

/* Búsqueda de usuarios - Euforia Brand */
.search-box {
    margin-bottom: 20px;
}

.search-box label {
    font-weight: 600;
    color: #271200;
    font-family: 'Poppins', sans-serif;
}

.search-results {
    margin-top: 20px;
}

.user-item {
    padding: 15px;
    background-color: white;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(120, 54, 28, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.user-item:hover {
    background-color: #fff9e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 54, 28, 0.15);
}

.user-item.selected {
    background-color: #fff9e6;
    border: 2px solid #eb8f1c;
    box-shadow: 0 4px 12px rgba(235, 143, 28, 0.2);
}

/* Mensajes de error/éxito - Euforia Brand */
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.message.success {
    background: linear-gradient(135deg, #046871 0%, #034d54 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(4, 104, 113, 0.2);
}

.message.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Login - Euforia Brand */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(120, 54, 28, 0.1);
    font-family: 'Poppins', sans-serif;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #271200;
    font-family: 'Fredoka', cursive;
    font-size: 28px;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-nav {
        margin-top: 15px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
    
    /* Tarjeta responsive */
    .tarjeta-titulo {
        font-size: 24px;
    }
    
    .tarjeta-subtitulo {
        font-size: 14px;
    }
    
    .tarjeta-imagen img {
        max-width: 350px;
    }
    
    .condiciones-compra {
        padding: 15px;
        margin: 20px 0;
    }
    
    .condiciones-titulo {
        font-size: 18px;
    }
    
    .condiciones-lista {
        font-size: 14px;
    }
    
    .mensaje-ganador {
        font-size: 16px;
        padding: 15px;
    }
    
    .historial-reclamaciones {
        padding: 15px;
    }
    
    .historial-titulo {
        font-size: 18px;
    }
    
    .historial-reclamaciones table th,
    .historial-reclamaciones table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .progreso-container {
        padding: 15px;
    }
    
    .tarjeta-footer {
        font-size: 12px;
        padding: 15px;
    }
}
