/* BG1.CSS - Estilos modernizados para BG Barbería */

/* Reseteo y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

body {
    background-color: #f8f8f8;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Cabecera con gradiente */
header {
    background: linear-gradient(135deg, #FF4D4D 0%, #990000 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out;
}

/* Contenedores */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 1.8rem;
    margin-bottom: 2rem;
    border-left: 4px solid #FF4D4D;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Login Panel */
#login-panel {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
    border-top: 4px solid #FF4D4D;
}

#login-panel h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.error-message {
    color: #FF4D4D;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

/* Botones */
.btn, .btn-principal, .btn-secundario {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    margin: 10px 5px;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after, .btn-principal::after, .btn-secundario::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after, .btn-principal:hover::after, .btn-secundario:hover::after {
    width: 300px;
    height: 300px;
}

.btn-red, .btn-principal {
    background-color: #FF4D4D;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.btn-blue {
    background-color: #007BFF;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-secundario {
    background-color: #333;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover, .btn-principal:hover, .btn-secundario:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-red:hover, .btn-principal:hover {
    background-color: #e63939;
}

.btn-blue:hover {
    background-color: #0062cc;
}

.btn-secundario:hover {
    background-color: #222;
}

.btn:disabled, .btn-principal:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Peluqueros botones */
.btn-peluquero {
    padding: 15px 30px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-peluquero-rojo {
    background-color: #FF4D4D;
}

.btn-peluquero-azul {
    background-color: #007BFF;
}

.btn-peluquero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.seleccionado {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.seleccionado::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Formularios */
form {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FF4D4D;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.25);
    background-color: #fff;
}

/* Secciones específicas */
section {
    margin: 30px 0;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #FF4D4D, #990000);
    border-radius: 3px;
}

/* Tabla de historial */
.tabla-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #FFFFFF;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f0f0f0;
}

.peluquero-rojo {
    position: relative;
    font-weight: 600;
    color: #FF4D4D;
}

.peluquero-azul {
    position: relative;
    font-weight: 600;
    color: #007BFF;
}

.btn-eliminar {
    background-color: #FF4D4D;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-eliminar:hover {
    background-color: #e63939;
    transform: scale(1.05);
}

/* Configuración y detalles */
.config-container, .detalles-precio {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .config-container, .detalles-precio {
        grid-template-columns: 1fr;
    }
}

.config-item {
    margin-bottom: 15px;
}

.precio-container, .ganancia-peluquero, .ganancia-dueno {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Ocultar contador y recordatorios cuando la configuración está abierta */
details[open] ~ .contador-cortes,
details[open] ~ .recordatorios-container {
    display: none;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Ajustes responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    .btn, .btn-principal, .btn-secundario {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header h2 {
        font-size: 1rem;
    }
    
    section h3 {
        font-size: 1.3rem;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .btn-peluquero {
        padding: 12px 20px;
        font-size: 1rem;
    }
}