* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import de fuente secundaria para dar personalidad (solo en títulos de categoría) */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0edfc 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e2b37;
    position: relative;
}

/* Fondo con imagen real ultra sutil  */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('tu-foto-de-fondo.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    filter: blur(8px) grayscale(100%);
    pointer-events: none;
    z-index: -1;
}

/* Textura de líneas (se mantiene como respaldo, ahora combinada con la imagen) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(44, 124, 176, 0.02) 0px,
            rgba(44, 124, 176, 0.02) 2px,
            transparent 2px,
            transparent 8px);
    pointer-events: none;
    z-index: -1;
}

/* Header con más presencia y borde inferior dinámico */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    color: #1e2b37;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 4px solid #2c7cb0;
    position: relative;
    transition: background 0.5s ease;
}

/* Clase para header según hora (se activa con JS) */
body.atardecer header {
    background: rgba(255, 240, 230, 0.92);
}
body.noche header {
    background: rgba(220, 230, 240, 0.92);
}

/* Línea brillante superior */
header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
}

/* Ambiente: frase del día y clima */
.ambiente {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #4a627a;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.8;
}
.ambiente span i {
    margin-right: 5px;
    color: #2c7cb0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}
.logo-icon {
    font-size: 2.2rem;
    color: #2c7cb0;
    filter: drop-shadow(0 4px 8px rgba(44, 124, 176, 0.2));
    transition: transform 0.5s ease, filter 0.3s;
}
.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 6px 12px rgba(44, 124, 176, 0.3));
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c7cb0, #1f5a7e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
header h1 {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: #1e2b37;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Main con efecto vidrio más profundo */
main {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 36px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Secciones con transiciones suaves y efecto reveal (se activa con JS) */
section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    /* backdrop-filter: blur(4px); */ /* eliminado para rendimiento */
    border-radius: 28px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(44, 124, 176, 0.05);
    position: relative;
}
section:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

h2 {
    margin-bottom: 1.5rem;
    color: #1e2b37;
    font-weight: 600;
    font-size: 1.5rem;
    border-left: 5px solid #2c7cb0;
    padding-left: 1rem;
}

/*  CATEGORÍAS Y SERVICIOS  */
.categorias-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.categoria {
    background: rgba(255, 255, 255, 0.8);
    /* backdrop-filter: blur(4px); */ /* eliminado para rendimiento */
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(44, 124, 176, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.categoria h3 {
    margin-bottom: 1rem;
    color: #1e2b37;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    border-left: 5px solid #2c7cb0;
    padding-left: 1rem;
    font-family: 'Caveat', cursive;
}
.categoria h3 i {
    color: #2c7cb0;
    font-size: 2rem;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}
.servicio-item {
    background: white;
    border: none;
    border-radius: 24px;
    padding: 1.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(44, 124, 176, 0.06);
    border: 1px solid rgba(44, 124, 176, 0.1);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.02 0"/></filter><rect width="100" height="100" filter="url(%23noise)"/></svg>');
    background-size: 150px;
}
.servicio-item i {
    font-size: 2.2rem;
    color: #2c7cb0;
    margin-bottom: 0.5rem;
    transition: transform 0.2s;
}
.servicio-item span {
    display: block;
    font-weight: 600;
    color: #1e2b37;
}
.servicio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    border-color: #2c7cb0;
}
.servicio-item:hover i {
    transform: scale(1.05);
}
.servicio-item.seleccionado {
    background: linear-gradient(135deg, #e8f2fa, #d6e8f5);
    border: 2px solid #2c7cb0;
    box-shadow: 0 12px 25px rgba(44, 124, 176, 0.2);
}

/* CALENDARIO */
.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.mes-navegacion {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-mes {
    background: linear-gradient(135deg, #2c7cb0, #1f5a7e);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(44, 124, 176, 0.25);
}
.btn-mes:hover {
    background: linear-gradient(135deg, #1f5a7e, #164a67);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 25px rgba(44, 124, 176, 0.35);
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
    margin: 1rem 0;
}
th, td {
    padding: 15px 10px;
    text-align: center;
    border: none;
    border-radius: 18px;
    background: white;
    box-shadow: 0 4px 10px rgba(44, 124, 176, 0.04);
    transition: all 0.2s ease;
}
th {
    background: linear-gradient(135deg, #2c7cb0, #1f5a7e);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(44, 124, 176, 0.2);
}
td {
    cursor: pointer;
    font-weight: 500;
}
td:hover:not(.no-disponible) {
    transform: scale(1.02);
    box-shadow: 0 12px 20px rgba(44, 124, 176, 0.15);
    background: #f0f9ff;
}
td.disponible {
    background: #e2f3e4;
    color: #1f5a3a;
    font-weight: 600;
}
td.no-disponible {
    background: #f8e1de;
    color: #8b3a2c;
    cursor: not-allowed;
    opacity: 0.7;
}

/* HORAS */
#lista-horas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}
.hora-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(44, 124, 176, 0.04);
}
.hora-item:hover {
    border-color: #2c7cb0;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(44, 124, 176, 0.15);
}
.hora-item.seleccionada {
    background: linear-gradient(135deg, #2c7cb0, #1f5a7e);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(44, 124, 176, 0.3);
}

/* FORMULARIO */
.anticipo-info {
    background: #f0f9ff;
    border-radius: 24px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid #2c7cb0;
    box-shadow: 0 5px 15px rgba(44, 124, 176, 0.08);
}
.anticipo-info label {
    font-weight: 600;
    color: #1e2b37;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.anticipo-info p {
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0;
}
select, input, button {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 6px rgba(44, 124, 176, 0.02);
}
select:focus, input:focus {
    outline: none;
    border-color: #2c7cb0;
    box-shadow: 0 0 0 4px rgba(44, 124, 176, 0.15);
}
input[data-categoria="barberia"]:focus {
    border-color: #E67E22;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
}
input[data-categoria="estetica"]:focus {
    border-color: #E84342;
    box-shadow: 0 0 0 4px rgba(232, 67, 66, 0.15);
}
input[data-categoria="salud"]:focus {
    border-color: #27AE60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}
input[data-categoria="fotografia"]:focus {
    border-color: #9B59B6;
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.15);
}
input[data-categoria="spa"]:focus {
    border-color: #1ABC9C;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.15);
}
button {
    background: linear-gradient(135deg, #2c7cb0, #1f5a7e);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}
button:hover {
    background: linear-gradient(135deg, #1f5a7e, #164a67);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(44, 124, 176, 0.35);
}
.terminos-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    font-size: 0.95rem;
}
.terminos-checkbox input {
    width: auto;
    margin-bottom: 0;
}
.terminos-checkbox a {
    color: #2c7cb0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.terminos-checkbox a:hover {
    color: #1f5a7e;
    text-decoration: underline;
}

/* MENSAJES */
.mensaje-exito, .mensaje-error {
    padding: 1rem 1.8rem;
    border-radius: 50px;
    margin: 1rem 0;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 8px 20px rgba(44, 124, 176, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}
.mensaje-exito {
    background: #e2f3e4;
    color: #1f5a3a;
    border-left: 5px solid #2ecc71;
}
.mensaje-error {
    background: #f8e1de;
    color: #8b3a2c;
    border-left: 5px solid #e74c3c;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TESTIMONIOS con borde irregular y textura de papel */
.testimonios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 1.5rem;
}
.testimonio-item {
    background: white;
    border-radius: 30px 20px 30px 20px;
    padding: 1.8rem;
    box-shadow: 0 10px 25px rgba(44, 124, 176, 0.06);
    transition: all 0.2s ease;
    border: 1px solid rgba(44, 124, 176, 0.1);
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.02 0"/></filter><rect width="100" height="100" filter="url(%23noise)"/></svg>');
    background-size: 150px;
}
.testimonio-item::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dashed rgba(44, 124, 176, 0.1);
    border-radius: 32px 22px 32px 22px;
    pointer-events: none;
}
.testimonio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(44, 124, 176, 0.12);
    border-color: #2c7cb0;
}
.testimonio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.testimonio-header i {
    font-size: 2.2rem;
    color: #2c7cb0;
}
.testimonio-header .nombre {
    font-weight: 700;
    color: #1e2b37;
    font-size: 1.1rem;
}
.testimonio-estrellas {
    color: #f39c12;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}
.testimonio-comentario {
    color: #2c3e50;
    font-style: italic;
    line-height: 1.6;
}
.testimonio-comentario::before {
    content: '"';
    font-size: 1.2rem;
    color: #2c7cb0;
    margin-right: 2px;
}
.testimonio-comentario::after {
    content: '"';
    font-size: 1.2rem;
    color: #2c7cb0;
    margin-left: 2px;
}

.loader {
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2c7cb0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: white;
    margin: 5vh auto;
    padding: 2rem;
    border-radius: 36px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 30px 55px rgba(44, 124, 176, 0.2);
    animation: slideDown 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal h3 {
    margin-bottom: 1.5rem;
    color: #1e2b37;
    font-weight: 600;
    border-left: 5px solid #2c7cb0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal p {
    margin: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
}
.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}
.modal-buttons button {
    width: auto;
    margin: 0;
    padding: 12px 24px;
}
.modal-buttons #modal-cancelar {
    background: #95a5a6;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.2);
}
.modal-buttons #modal-cancelar:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(127, 140, 141, 0.3);
}

/* FOOTER */
footer {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(44, 124, 176, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c7cb0;
}
.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: #1e2b37;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-weight: 500;
}
.footer-links a:hover {
    color: #2c7cb0;
    transform: translateY(-2px);
}
.footer-copyright {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    th, td {
        padding: 10px 5px;
        font-size: 14px;
    }
    .hora-item {
        padding: 10px 18px;
        font-size: 14px;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .stats {
        flex-direction: column;
    }
    .stat-item {
        min-width: auto;
    }
}

/* VALORACIONES */
.valoracion-container {
    text-align: center;
    padding: 1rem;
}
.estrellas {
    font-size: 2.5rem;
    color: #e0e0e0;
    cursor: pointer;
    margin-bottom: 1rem;
    display: inline-block;
}
.estrellas .estrella {
    display: inline-block;
    transition: all 0.2s;
    margin: 0 2px;
}
.estrellas .estrella:hover,
.estrellas .estrella.seleccionada {
    color: #f39c12;
    transform: scale(1.15);
    text-shadow: 0 0 12px rgba(243, 156, 18, 0.3);
}
.valoracion-container select {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    display: block;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
}
.valoracion-skip {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.valoracion-skip a {
    color: #2c7cb0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.valoracion-skip a:hover {
    color: #1f5a7e;
    text-decoration: underline;
}

/* ESTADÍSTICAS ADMIN */
.stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 28px;
    border: 1px solid rgba(44, 124, 176, 0.2);
}
.stat-item {
    background: white;
    padding: 1rem;
    border-radius: 24px;
    flex: 1;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(44, 124, 176, 0.06);
    border: 1px solid rgba(44, 124, 176, 0.1);
}
.stat-item .numero {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c7cb0;
}
.stat-item .etiqueta {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

/*  BOTÓN CANCELAR ADMIN  */
.btn-cancelar {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 12px rgba(231, 76, 60, 0.2);
}
.btn-cancelar:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(192, 57, 43, 0.3);
}
.cancelada {
    opacity: 0.7;
    text-decoration: line-through;
    background: #f8f9fa;
}
.cliente-link {
    color: #2c7cb0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.cliente-link:hover {
    text-decoration: underline;
    color: #1f5a7e;
}

/* MENÚ HAMBURGUESA Y PANEL LATERAL */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.menu-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: #2c7cb0;
    cursor: pointer;
    width: auto;
    margin: 0;
    padding: 0 10px;
    box-shadow: none;
    transition: transform 0.3s, color 0.2s;
}
.menu-toggle:hover {
    background: none;
    transform: scale(1.15);
    box-shadow: none;
    color: #1f5a7e;
}
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 30px rgba(44, 124, 176, 0.15);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(44, 124, 176, 0.2);
}
.side-menu.open {
    right: 0;
}

/* MEJORA: Botón de cierre más elegante */
.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}
.side-menu-header h2 {
    margin: 0;
    font-size: 1.3rem;
    border-left: none;
    padding-left: 0;
    color: #1e2b37;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.close-menu {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    color: #5a6e7c;
    border: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.close-menu:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    color: #1e2b37;
}
@media (max-width: 480px) {
    .close-menu {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    .side-menu-header h2 {
        font-size: 1.1rem;
        white-space: normal;
    }
}
/* Fin mejora botón cierre */

.side-menu-content {
    padding: 1.2rem;
    overflow-y: auto;
    flex: 1;
}
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 1500;
}
.menu-overlay.active {
    display: block;
}

/* MEJORA: Botón de administración dentro del menú lateral */
.btn-admin-access {
    background: #2c7cb0;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
}
.btn-admin-access:hover {
    background: #1f5a7e;
    transform: translateY(-2px);
}
/* Fin mejora botón admin */

/* CONSULTA DE CITAS DEL CLIENTE */
.consulta-cita {
    margin-bottom: 1.5rem;
}
.consulta-cita label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #1e2b37;
}
.consulta-cita input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}
.consulta-cita input:focus {
    border-color: #2c7cb0;
    box-shadow: 0 0 0 4px rgba(44, 124, 176, 0.1);
    outline: none;
}
.consulta-cita button {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #2c7cb0, #1f5a7e);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(44, 124, 176, 0.25);
}
.consulta-cita button:hover {
    background: linear-gradient(135deg, #1f5a7e, #164a67);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(44, 124, 176, 0.35);
}
.mis-citas-lista {
    margin-top: 1rem;
}
.cita-cliente-item {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 5px solid #2c7cb0;
    box-shadow: 0 5px 15px rgba(44, 124, 176, 0.04);
    transition: all 0.3s;
}
.cita-cliente-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(44, 124, 176, 0.1);
}
.cita-cliente-item.cancelada {
    opacity: 0.7;
    text-decoration: line-through;
    border-left-color: #e74c3c;
}
.cita-cliente-item .fecha-hora {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1e2b37;
}
.cita-cliente-item .servicio {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.cita-cliente-item .estado {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}
.btn-cancelar-cliente {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 12px rgba(231, 76, 60, 0.2);
}
.btn-cancelar-cliente:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(192, 57, 43, 0.3);
}
.btn-cancelar-cliente:disabled {
    background: #bdc3c7;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.filtros {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filtros input {
    flex: 1 1 200px;
    min-width: 150px;
}

/* BOTONES DE ACCIÓN EN ADMIN */
.admin-acciones {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-editar, .btn-ver, .btn-cancelar, .btn-pagar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    border: none;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.04);
}
.btn-ver {
    background: #2c7cb0;
    color: white;
    box-shadow: 0 5px 15px rgba(44, 124, 176, 0.25);
}
.btn-ver:hover {
    background: #1f5a7e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 124, 176, 0.35);
}
.btn-editar {
    background: #f39c12;
    color: white;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.25);
}
.btn-editar:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.35);
}
.btn-cancelar {
    background: #e74c3c;
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.25);
}
.btn-cancelar:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.35);
}
.btn-pagar {
    background: #27ae60;
    color: white;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.25);
}
.btn-pagar:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.35);
}
td .btn-ver, td .btn-editar, td .btn-cancelar, td .btn-pagar {
    margin: 2px;
}
@media (max-width: 768px) {
    .admin-acciones {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-ver, .btn-editar, .btn-cancelar, .btn-pagar {
        width: 100%;
        justify-content: center;
    }
}

/* MEJORAS PARA HORARIOS EN ADMIN */
.horario-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(44, 124, 176, 0.1);
}
.horario-row label {
    min-width: 80px;
    font-weight: 600;
    color: #1e2b37;
}
.horario-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.1);
}
.horario-row input[type="time"] {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    transition: border-color 0.3s;
}
.horario-row input[type="time"]:focus {
    border-color: #2c7cb0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 124, 176, 0.1);
}
@media (max-width: 640px) {
    .horario-row {
        flex-direction: column;
        align-items: stretch;
    }
    .horario-row label {
        text-align: center;
    }
    .horario-row input[type="time"] {
        width: 100%;
    }
}

/* COLORES POR CATEGORÍA */
.categoria[data-categoria="barberia"] h3 {
    border-left-color: #E67E22;
}
.categoria[data-categoria="barberia"] h3 i {
    color: #E67E22;
}
.categoria[data-categoria="barberia"] .servicio-item:hover {
    border-color: #E67E22;
}
.categoria[data-categoria="barberia"] .servicio-item:hover i {
    color: #E67E22;
}
.categoria[data-categoria="estetica"] h3 {
    border-left-color: #E84342;
}
.categoria[data-categoria="estetica"] h3 i {
    color: #E84342;
}
.categoria[data-categoria="estetica"] .servicio-item:hover {
    border-color: #E84342;
}
.categoria[data-categoria="estetica"] .servicio-item:hover i {
    color: #E84342;
}
.categoria[data-categoria="salud"] h3 {
    border-left-color: #27AE60;
}
.categoria[data-categoria="salud"] h3 i {
    color: #27AE60;
}
.categoria[data-categoria="salud"] .servicio-item:hover {
    border-color: #27AE60;
}
.categoria[data-categoria="salud"] .servicio-item:hover i {
    color: #27AE60;
}
.categoria[data-categoria="fotografia"] h3 {
    border-left-color: #9B59B6;
}
.categoria[data-categoria="fotografia"] h3 i {
    color: #9B59B6;
}
.categoria[data-categoria="fotografia"] .servicio-item:hover {
    border-color: #9B59B6;
}
.categoria[data-categoria="fotografia"] .servicio-item:hover i {
    color: #9B59B6;
}
.categoria[data-categoria="spa"] h3 {
    border-left-color: #1ABC9C;
}
.categoria[data-categoria="spa"] h3 i {
    color: #1ABC9C;
}
.categoria[data-categoria="spa"] .servicio-item:hover {
    border-color: #1ABC9C;
}
.categoria[data-categoria="spa"] .servicio-item:hover i {
    color: #1ABC9C;
}
body.pagina-barberia header {
    border-bottom-color: #E67E22;
}
body.pagina-estetica header {
    border-bottom-color: #E84342;
}
body.pagina-salud header {
    border-bottom-color: #27AE60;
}
body.pagina-fotografia header {
    border-bottom-color: #9B59B6;
}
body.pagina-spa header {
    border-bottom-color: #1ABC9C;
}

/* ANIMACIÓN DE ENTRADA REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MEJORA: Estilo para todos los enlaces (evita apariencia nativa) */
a {
    color: #2c7cb0;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #1f5a7e;
    text-decoration: underline;
}