/* =========================================================
   ANDRES BARBERÍA PROFESIONAL
   Hoja de estilos principal - versión organizada
   ========================================================= */

/* =========================================================
   1. RESET Y CONFIGURACIÓN GENERAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

/* Tienda pública de productos */
#hero.heroTiendaProductos {
    min-height: 245px;
    display: grid;
    place-items: center;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 17, 20, .94), rgba(14, 63, 68, .88));
}

#hero.heroTiendaProductos h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.12;
}

.tiendaProductos {
    width: min(1180px, calc(100% - 40px));
    margin: 56px auto 76px;
    color: #202729;
}

.tiendaProductos .introduccionTienda {
    margin-bottom: 28px;
    text-align: center;
}

.tiendaProductos .introduccionTienda h2 {
    margin: 0 0 9px;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.tiendaProductos .introduccionTienda p {
    margin: 0;
    color: #667174;
}

.tiendaProductos .botonesCategoriaTienda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 30px;
}

.tiendaProductos .filtroCategoria {
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid #d5dede;
    border-radius: 999px;
    background: #fff;
    color: #344144;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.tiendaProductos .filtroCategoria:hover:not(:disabled) {
    border-color: #167d82;
    color: #126a6e;
    transform: translateY(-1px);
}

.tiendaProductos .filtroCategoria[aria-pressed="true"] {
    border-color: #126f73;
    background: #126f73;
    color: #fff;
}

.tiendaProductos .filtroCategoria:focus-visible {
    outline: 3px solid rgba(22, 125, 130, .28);
    outline-offset: 2px;
}

.tiendaProductos .filtroCategoria:disabled {
    color: #8b9698;
    background: #f1f3f3;
    cursor: not-allowed;
}

.tiendaProductos .estadoCatalogoTienda {
    min-height: 28px;
    margin: 0 0 20px;
    color: #596568;
    text-align: center;
}

.tiendaProductos .cuadriculaProductosTienda {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.tiendaProductos .productoTiendaCard {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e6e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 39, 41, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tiendaProductos .productoTiendaCard:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20, 39, 41, .12);
}

.tiendaProductos .productoTiendaVisual {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f4f7f6, #e8efed);
    color: #748181;
}

.tiendaProductos .productoTiendaVisual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tiendaProductos .productoTiendaContenido {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.tiendaProductos .productoTiendaContenido .nombreProductoTienda {
    margin: 0 0 10px;
    color: #202729;
    font-size: 1.15rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tiendaProductos .descripcionProductoTienda {
    margin: 0 0 18px;
    color: #657174;
    line-height: 1.55;
}

.tiendaProductos .precioProductoTienda {
    margin: auto 0 10px;
    color: #126f73;
    font-size: 1.35rem;
    font-weight: 750;
}

.tiendaProductos .estadoStockTienda {
    margin: 0;
    color: #28724b;
    font-size: .92rem;
    font-weight: 650;
}

.tiendaProductos .estadoStockTienda.agotado {
    color: #a13d36;
}

.tiendaProductos .productoImagenPendiente {
    padding: 16px;
    color: #748181;
    font-size: .95rem;
}

.tiendaProductos .reintentarCatalogoTienda {
    margin-left: 8px;
    padding: 7px 12px;
    border: 1px solid #126f73;
    border-radius: 7px;
    background: #fff;
    color: #126f73;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.formularioProductoAdmin .campoImagenProductoAdmin {
    grid-column: 1 / -1;
}

.formularioProductoAdmin .campoImagenProductoAdmin input[type="file"] {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    border: 1px solid #d5dede;
    border-radius: 8px;
    background: #fff;
}

.formularioProductoAdmin .vistaPreviaImagenProducto {
    display: grid;
    width: min(100%, 300px);
    min-height: 150px;
    margin-top: 10px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #bac8c8;
    border-radius: 10px;
    background: #f4f7f6;
    color: #748181;
}

.formularioProductoAdmin .vistaPreviaImagenProducto img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.formularioProductoAdmin #mensajeImagenProducto {
    margin: 7px 0 0;
}

.formularioProductoAdmin .crearCategoriaDesdeProducto {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #d9e3e2;
    border-radius: 9px;
    background: #f8faf9;
}

.formularioProductoAdmin .crearCategoriaDesdeProducto[hidden] {
    display: none;
}

.formularioProductoAdmin .accionesCrearCategoriaProducto {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 7px;
}

.formularioProductoAdmin .accionesCrearCategoriaProducto input {
    flex: 1 1 190px;
    min-width: 0;
}

@media (max-width: 900px) {
    .tiendaProductos .cuadriculaProductosTienda {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #hero.heroTiendaProductos {
        min-height: 200px;
        padding: 38px 20px;
    }

    .tiendaProductos {
        width: min(100% - 28px, 480px);
        margin: 38px auto 54px;
    }

    .tiendaProductos .botonesCategoriaTienda {
        gap: 8px;
        margin-bottom: 22px;
    }

    .tiendaProductos .filtroCategoria {
        min-height: 40px;
        padding: 8px 13px;
        font-size: .92rem;
    }

    .tiendaProductos .cuadriculaProductosTienda {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: rgba(0, 217, 255, 0.788);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

button:hover,
button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.22);
    filter: brightness(1.06);
    outline: 2px solid rgba(0, 217, 255, 0.55);
    outline-offset: 3px;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================= */

header {
    width: 100%;
    padding: 10px 0;
    background-color: rgb(26, 25, 25);
}

header>nav,
header .contenedorHeader>nav,
header .container>nav {
    width: 100%;
    margin: 0 auto;
}

header>nav>ul,
header .contenedorHeader>nav>ul,
header .container>nav>ul {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav>ul>#marca {
    flex: 0 1 560px;
    min-width: 0;
    margin-right: 0;
}

#marca a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#marca img {
    width: 250px;
    border-radius: 50%;
}

#TituloLogo {
    padding-left: 20px;
    font-size: 40px;
}

header nav>ul>li:not(#marca):not(.menu-toggle) {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

header nav>ul>li:not(#marca):not(.menu-toggle) a,
nav a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    background-color: rgba(0, 217, 255, 0.18);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.22);
    outline: none;
}

nav a.active {
    background-color: rgba(0, 217, 255, 0.788);
    box-shadow: 0 3px 10px rgba(0, 217, 255, 0.28);
}

.menu-toggle {
    display: none;
    padding: 6px 10px;
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

/* =========================================================
   3. CONTENEDORES GENERALES
   ========================================================= */

.contenedor {
    width: min(100% - 40px, 1500px);
    margin: 0 auto;
}

.contenedorHeader {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* =========================================================
   4. HERO / INICIO
   ========================================================= */

#bodyInicio {
    margin: 0;
    background-color: rgb(199, 195, 195);
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 35px 15px;
    color: rgb(235, 229, 229);
    text-align: center;
    background-image:
        linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)),
        url("imagenes/barberia.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#tituloInicio {
    color: white;
    font-size: 60px;
    text-align: center;
}

#subtituloInicio {
    font-size: 40px;
    text-align: center;
}

#botonReservaInicio {
    width: 200px;
    height: 50px;
    color: white;
    font-size: 25px;
    background-color: rgba(0, 217, 255, 0.788);
    border: 0;
    border-radius: 10px;
}

#botonReservaInicio:hover {
    background-color: rgba(10, 181, 211, 0.788);
}

.contenedorBoton {
    text-align: center;
}

/* =========================================================
   5. TARJETA / FORMULARIO
   ========================================================= */

#tarjeta {
    width: min(600px, calc(100% - 40px));
    min-height: 600px;
    margin: 100px auto;
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 35px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.2);
}

#imagenTarjeta {
    width: 350px;
    max-width: 100%;
    padding: 0;
    border: 2px solid;
    border-radius: 60%;
}

#tituloTarjeta {
    margin: 20px 20px 10px;
    font-family: "Times New Roman", Times, serif;
    font-size: 65px;
    text-align: center;
}

#subtituloTarjeta {
    margin-top: 5px;
    color: #00000077;
    font-family: "Times New Roman", Times, serif;
    font-size: 25px;
    text-align: center;
}

.admin {
    width: min(500px, 100%);
    height: 50px;
    padding-left: 20px;
    font-size: 20px;
    border-radius: 10px;
}


/* botones de  tarjeta de servicios del modal */
.contenedorTitulo {
    display: flex;
    justify-content: space-between;
}

.servicioSeleccionado {
    display: flex;
    padding: 18px;
    border-radius: 10px;
    justify-content: space-between;
    background-color: white;
}

.servicioSeleccionadoActivo {
    background-color: #ecfeff;
    border: 2px solid #00cfe8;
    box-shadow: 0 0 0 2px rgba(0, 207, 232, 0.12);
    position: relative;
}

.servicioSeleccionadoActivo::after {
    content: "✓";
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 22px;
    height: 22px;
    border: 2px solid #00cfe8;
    border-radius: 50%;
    color: #00cfe8;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barberoSeleccionado {
    display: flex;
    padding: 18px;
    border-radius: 10px;
    background-color: white;
}

.listaBarberosReserva {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 14px;
    margin: 18px 0;
}

.listaBarberosReserva .barberoSeleccionado {
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 96px;
    border: 1px solid #dedede;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.listaBarberosReserva .barberoSeleccionado:hover,
.listaBarberosReserva .barberoSeleccionado.barberoReservaActivo {
    border-color: #00aebe;
    box-shadow: 0 0 0 2px rgba(0, 174, 190, .12);
}

.fotoBarberoReserva {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    object-fit: cover;
}

.datosBarberoReserva { display: flex; flex-direction: column; gap: 5px; }
.datosBarberoReserva .nombreBarberoSeleccionado { padding: 0; }
.especialidadBarberoReserva,.experienciaBarberoReserva { color: #687383; font-size: .9rem; }
.estadoBarberosReserva { grid-column: 1 / -1; margin: 10px 0; color: #687383; }
.estadoBarberosReserva.error { color: #a22b24; }

.nombreBarberoSeleccionado {
    font-size: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding-bottom: 10px;
}

.infoServicio {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 1px;
}

.nombreServicio {
    font-size: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding-bottom: 10px;
}

.duracion {
    color: #626266;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.especificacionAzul {
    color: rgb(0, 204, 255);
}

.precio {
    color: rgb(0, 204, 255);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
}


.cerrarModal {
    height: 20px;
}

/* estrutura para selecionar boton e fecha de calendario */
.navegacionCalendario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(243, 243, 239);
    padding: 25px;
    border-radius: 10px;
}

.mesAnterior,
.mesSiguiente {
    padding: 10px;
    width: 45px;
    font-size: 20px;

}

.navegacionCalendario .mesSiguiente:not(:disabled),
.navegacionCalendario .mesAnterior:not(:disabled) {
    background-color: white;
    color: #00cfe8;
    border: 1px solid #e1e1e1;
}


.mesActual,
.anioActual {
    color: #21242b;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;

}

.fechaActual {
    display: flex;
    gap: 15px;
}



.diasCalendario {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.casilla {
    padding: 4px;
    border-radius: 10px;



}

.diaSemana,
.mes {

    color: #323233;
    font-size: 18px;
}

.dia {
    font-size: 25px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}

.infoFecha {
    display: flex;
    flex-direction: column;
    align-items: center;


}

.fechaSeleccionada {
    background-color: aqua;
    color: white;
    border: 1px solid black;
}

.fechaCalendario {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Estructura para seleccionar tipo de barba */

.listaOpcionesBarba {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.opcionBarba {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d9d9d9;

    background-color: #ffffff;
}

.nombreOpcion {
    font-size: 18px;
    font-weight: bold;
}

.duracionOpcion {
    font-size: 14px;
}

.precioOpcion {
    font-size: 22px;
    font-weight: bold;
    color: #00bcd4;
}

.opcionBarbaSeleccionada {
    background-color: #ecfeff;
    border: 2px solid #00bcd4;
    color: #21242b;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.12);
}


/* estrutura para selecionar Horarios*/

.listaHorarios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.horarioDisponible {
    padding: 17px;
    border: 0;
    border-radius: 8px;
    background-color: #d1fae5;
    color: #008f4c;
}

.horarioOcupado {
    background-color: #fee2e2;
    color: #ef4444;
}

.horarioSeleccionado {
    background-color: #06b6d4;
    color: white;
}

.horarios {
    width: 100%;
    padding: 24px;
    background-color: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-sizing: border-box;
}

.iconoHorario {
    font-size: 14px;
}

.hora {
    font-size: 16px;
    font-weight: bold;
}

.horarioDisponible,
.horarioOcupado,
.horarioSeleccionado {
    width: 100%;
    min-height: 70px;
    padding: 10px;
    border: 0;
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pasoProgreso.completado {
    opacity: 1;
    transform: scale(1.05);
}

.pasoProgreso.completado span {
    animation: completarPaso 0.3s ease;
}

@keyframes completarPaso {
    0% {
        transform: scale(0.7);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.lineaProgreso {
    width: 40px;
    height: 2px;
    margin: 0 8px;
    background-color: #d1d5db;
    opacity: 0.5;

    transform: scaleX(0.4);
    transform-origin: left;

    transition:
        transform 0.4s ease,
        background-color 0.4s ease,
        opacity 0.4s ease;
}

.lineaProgreso.completada {
    background-color: #06b6d4;
    opacity: 1;
    transform: scaleX(1);
}

.leyendaHorarios {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.leyendaDisponible,
.leyendaOcupado,
.leyendaSeleccionado {
    display: flex;
    align-items: center;
    gap: 6px;
}

.indicadorDisponible,
.indicadorOcupado,
.indicadorSeleccionado {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 3px;
}

.indicadorDisponible {
    background-color: #d1fae5;
    border: 1px solid #86efac;
}

.indicadorOcupado {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}

.indicadorSeleccionado {
    background-color: #06b6d4;
    border: 1px solid #06b6d4;
}

.informacionHorario {
    margin: 5px 0 15px;
    font-size: 15px;
    color: #555;
}








/* ----------------------*/

.boton {
    width: min(530px, 100%);
    height: 50px;
    color: white;
    font-size: 25px;
    background-color: rgb(26, 25, 25);
    border-radius: 10px;
    border: 0;
}

.boton:hover {
    background-color: rgb(5, 5, 5);
}

.paso:not(.pasoOculto) {
    animation: aparecerPaso 0.5s ease;
}

@keyframes aparecerPaso {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progresoReserva {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin-bottom: 25px;
    padding: 12px 0;

    background-color: white;
}

.progresoReserva {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 10px 0 15px;

    background-color: white;
    z-index: 20;
}

.contenidoReserva {
    overflow-y: auto;
    min-height: 0;
    width: 100%;
}

.pasoProgreso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.pasoProgreso span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    font-weight: bold;
}

.pasoProgreso small {
    font-size: 11px;
    text-align: center;
}

.pasoProgreso.activo {
    opacity: 1;
    transform: scale(1.08);
}

.lineaProgreso {
    width: 40px;
    height: 2px;
    opacity: 0.3;
    margin: 0 8px;
}



/* ocultar pasos*/
.pasoOculto,
.subpasoOculto {
    display: none;
}

.modalContainers {
    animation: aparecerModal 0.35s ease;
}

@keyframes aparecerModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.modalOculto {
    display: none;
}

.paso1 {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paso1 .servicioSeleccionado {
    width: 100%;
    box-sizing: border-box;
}

.horarioDisponible {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.horarioDisponible:hover {
    transform: scale(1.03);
}

.horarioSeleccionado {
    transform: scale(1.05);
    animation: seleccionarHorario 0.25s ease;
}



@keyframes seleccionarHorario {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1.05);
    }
}

/* MÓVIL */
@media (max-width: 900px) {

    .listaHorarios {
        grid-template-columns: repeat(2, 1fr);
    }

    .leyendaHorarios {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
        width: 100%;
        box-sizing: border-box;
    }

}

/* MÓVIL */
@media (max-width: 600px) {

    .diasCalendario {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .casilla {
        padding: 4px;
        width: 70px;

    }

    .navegacionCalendario {
        padding: 12px 10px;
        gap: 8px;
    }

    .fechaCalendario {
        gap: 5px;
    }

    .mesActual,
    .anioActual {
        font-size: 16px;
    }

    .mesAnterior,
    .mesSiguiente {
        width: 36px;
        padding: 8px;
    }

    .listaOpcionesBarba {
        grid-template-columns: 1fr;
    }

    .opcionBarba {
        padding: 20px;
    }


}


/* =========================================================
   6. SERVICIOS
   ========================================================= */

.tituloTarjeta {
    padding-left: 20px;
    font-size: 40px;
}

.parrafoTarjeta {
    padding: 0 20px;
    font-size: 25px;
}

.carta h3 {
    padding-left: 30px;
}

.carta h1 {
    padding-left: 20px;
    color: rgb(7, 202, 202);
}

.carta {
    padding: 20px;
    background: rgb(230, 227, 227);
    border-radius: 12px;
    box-shadow: 8px 8px 10px rgba(48, 47, 47, 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.carta:hover {
    transform: translateY(-5px);
    box-shadow: 10px 14px 22px rgba(48, 47, 47, 0.28);
}

.contenedor1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: min(100% - 40px, 1500px);
    margin: 50px auto;
}

.nuestrosServicios1 .contenedor1 {
    align-items: stretch;
}

.nuestrosServicios1 .carta {
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.nuestrosServicios1 .carta .contendorImagen {
    flex: 0 0 260px;
    width: 100%;
    max-width: 100%;
    height: 260px;
    margin: 0;
    overflow: hidden;
}

.nuestrosServicios1 .carta .servicio {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.servicio {
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

/* Tarjeta de agendamiento y su paso a paso */


.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111bd;
    display: flex;
}

.modalContainers {
    margin: auto;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 600px;
    background-color: white;
    padding: 2em 2em;
    display: grid;
    gap: 1em;
    grid-auto-columns: 100%;

}

#tituloServicios {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}

.tituloPasos {
    color: #21242b;
}


.cerrarModal {
    padding: 0;
    border: 0;
    background-color: white;
    font-size: 20px;

}

/* ========================================= */
/* PASO 5: DATOS DE CONTACTO */
/* ========================================= */

.paso5 {
    width: 100%;
    padding-top: 10px;
}


.campoContacto {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}


.campoContacto label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: bold;
}


.iconoCampo {
    color: #00b6d4;
    font-size: 20px;
}


.campoContacto input {
    width: 100%;
    box-sizing: border-box;

    padding: 15px;

    border: 1px solid #d0d0d0;
    border-radius: 10px;

    font-size: 16px;
    outline: none;
}


.campoContacto input:focus {
    border-color: #00b6d4;
    box-shadow: 0 0 0 2px rgba(0, 182, 212, 0.12);
}

.autorizacionDatosReserva {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #ded7ce;
    border-radius: 10px;
    background: #faf8f5;
    color: #39332e;
    font-size: 14px;
    line-height: 1.55;
}

.opcionAutorizacionDatos {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.opcionAutorizacionDatos input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #754a2e;
}

.autorizacionDatosReserva p {
    margin: 10px 0 0 31px;
    color: #655d55;
    font-size: 13px;
}

.autorizacionDatosReserva a {
    color: #754a2e;
    font-weight: 600;
    text-decoration: underline;
}


.accionesReserva {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;

    margin-top: 30px;
}


.confirmarReserva {
    min-height: 52px;
    padding: 14px 24px;

    border: none;
    border-radius: 10px;

    background-color: #06b6d4;
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}


.cancelarReserva {
    min-height: 52px;
    padding: 14px 24px;

    border: 2px solid #d1d5db;
    border-radius: 10px;

    background-color: white;
    color: #333;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}


.confirmarReserva:hover {
    background-color: #05a6c2;
}

.confirmarReserva:disabled {
    background-color: #9aa2a4;
    cursor: not-allowed;
}


.cancelarReserva:hover {
    background-color: #f5f5f5;
}


@media (max-width: 600px) {

    .accionesReserva {
        grid-template-columns: 1fr;
    }

    .confirmarReserva,
    .cancelarReserva {
        width: 100%;
    }

}



@media (hover: hover) and (pointer: fine) {
    .nuestrosServicios1 .carta:hover .servicio {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    button,
    nav a,
    .carta,
    .servicio {
        transition: none;
    }
}

/* =========================================================
   7. ESPECIFICACIONES DE SERVICIO
   ========================================================= */

.espesificacion {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 12px;
    width: auto;
    max-width: 100%;
    margin: 0 20px 10px;
    padding: 0 0 0 25px;
    background-color: rgba(0, 255, 255, 0.089);
    border: 1px solid aqua;
    border-radius: 10px;
}

.espesificacion>*,
.carta h1,
.carta h3,
.carta h4,
.tituloTarjeta,
.parrafoTarjeta,
.carta ul {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* =========================================================
   8. INFORMACIÓN
   ========================================================= */

.informacion {
    padding: 40px 20px;
    background: #000000;
}

.contenedorInformacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.cartaInformacion {
    width: 100%;
    padding: 20px;
    color: white;
    text-align: center;
    background: #0f1117;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(48, 47, 47, 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cartaInformacion:hover {
    transform: translateY(-5px);
    box-shadow: 10px 14px 22px rgba(48, 47, 47, 0.28);
}

.cartaInformacion h1 {
    margin-bottom: 10px;
    font-size: 30px;
}

.datos {
    color: rgb(159, 159, 169);
    font-size: 20px;
    font-weight: normal;
}

/* =========================================================
   9. RESERVAS
   ========================================================= */

#botonReserva {
    width: min(100% - 40px, 1500px);
    margin: 40px auto 60px;
    padding: 0;
    text-align: center;
}

#reser {
    width: 400px;
    max-width: 100%;
    height: 60px;
    margin: 0;
    color: white;
    font-size: 25px;
    background-color: rgb(23, 182, 182);
    border: 0;
    border-radius: 8px;
    box-shadow: 1px 1px 5px rgba(97, 97, 97, 0.5);
}

#reser:hover {
    background-color: rgba(11, 123, 143, 0.788);
}

/* =========================================================
   10. COMENTARIOS
   ========================================================= */

.comentariosClientes h1 {
    margin-top: 50px;
    font-size: 50px;
    text-align: center;
}

.contenedorComentarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.comentario {
    width: 100%;
    min-height: 200px;
    margin: 0 0 20px;
    padding: 0;
    background-color: rgb(230, 227, 227);
    border-radius: 10px;
    box-shadow: 8px 8px 10px rgba(48, 47, 47, 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.comentario:hover {
    transform: translateY(-5px);
    box-shadow: 10px 14px 22px rgba(48, 47, 47, 0.28);
}

.comentario p {
    max-width: 100%;
    padding: 10px;
    font-size: 25px;
    overflow-wrap: anywhere;
}

.comentariosClientes .comentario {
    min-width: 0;
    padding: 14px 18px;
    box-sizing: border-box;
}

.comentariosClientes .comentario p {
    margin: 4px 0;
    padding: 7px 0;
    font-size: 18px;
    line-height: 1.55;
}

.comentariosClientes .calificacionOpinion {
    color: #a56b16;
    letter-spacing: 3px;
    font-size: 22px;
}

.comentariosClientes .estadoOpiniones {
    grid-column: 1 / -1;
    margin: 0;
    color: #555;
    text-align: center;
}

.formularioOpinionCliente {
    width: min(100% - 40px, 720px);
    margin: 32px auto 48px;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid #e3e0dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(48, 47, 47, 0.09);
    box-sizing: border-box;
}

.formularioOpinionCliente h2 {
    margin: 0 0 8px;
    color: #222;
    font-size: 24px;
}

.formularioOpinionCliente > p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.5;
}

.camposOpinionCliente {
    display: grid;
    gap: 8px;
}

.camposOpinionCliente label {
    margin-top: 8px;
    color: #333;
    font-weight: 600;
}

.camposOpinionCliente input,
.camposOpinionCliente select,
.camposOpinionCliente textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfcac3;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    box-sizing: border-box;
}

.camposOpinionCliente textarea {
    min-height: 110px;
    resize: vertical;
}

#enviarOpinionCliente {
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: #171719;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#enviarOpinionCliente:hover {
    background: #a56b16;
}

#enviarOpinionCliente:disabled {
    cursor: wait;
    opacity: .65;
}

.formularioOpinionCliente #mensajeOpinionCliente {
    margin: 12px 0 0;
}

#mensajeOpinionCliente.error {
    color: #a52b25;
}

#mensajeOpinionCliente.exito {
    color: #17683a;
}

/* =========================================================
   11. EQUIPO / BARBEROS
   ========================================================= */

#bodyNuestroEquipo {
    background-color: aliceblue;
}

#contenedorNuestroEquipo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    width: min(100% - 40px, 1500px);
    margin: 0 auto;
}

.InformacionBarbero {
    display: flex;
    justify-content: space-evenly;
    padding: 25px;
    background-color: aliceblue;
}

.contenedorBarbero {
    display: flex;
    width: 1300px;
    min-width: 0;
    height: 600px;
    background-color: rgb(245, 238, 238);
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(48, 47, 47, 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.contenedorBarbero:hover {
    transform: translateY(-5px);
    box-shadow: 10px 14px 22px rgba(48, 47, 47, 0.28);
}

.perfilBarbero {
    display: flex;
    width: 50%;
    height: 600px;
    min-width: 0;
}

.perfilBarbero img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.presentacionBarbero {
    width: 50%;
    min-width: 0;
    padding: 20px;
}

.nombreBarbero {
    padding-left: 15px;
    font-size: 50px;
}

.calificacion {
    padding-left: 20px;
}

.tiposCorte {
    margin: 0;
    color: darkcyan;
    font-size: 35px;
}

.descripcionHabilidades {
    margin: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 17px;
}

/* =========================================================
   12. FOOTER
   ========================================================= */

footer {
    padding: 5px 5px 20px;
    color: rgb(159, 159, 169);
    font-size: 25px;
    text-align: center;
    background-color: #000000;
}

footer p {
    padding: 20px;
}

/* =========================================================
   13. RESPONSIVE: HASTA 1200PX
   Menú hamburguesa + tarjetas en 2 columnas
   ========================================================= */

@media (max-width: 1200px) {

    header>nav,
    header .contenedorHeader>nav,
    header .container>nav {
        width: calc(100% - 32px);
    }

    header>nav>ul,
    header .contenedorHeader>nav>ul,
    header .container>nav>ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    header nav>ul>#marca {
        grid-column: 1;
        width: auto;
        margin-right: 0;
    }

    #marca a {
        justify-content: flex-start;
        max-width: 100%;
        overflow: hidden;
        white-space: normal;
    }

    #marca img {
        width: 100px;
        height: auto;
    }

    #TituloLogo {
        max-width: 100%;
        padding-left: 20px;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    header nav>ul>.menu-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
        margin-left: auto;
    }

    header nav>ul>li:not(#marca):not(.menu-toggle) {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) {
        display: block;
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        font-size: 18px;
        white-space: normal;
        overflow-wrap: anywhere;
        background-color: rgba(0, 217, 255, 0.18);
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a:hover,
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a:focus-visible,
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a.active {
        background-color: rgba(0, 217, 255, 0.788);
    }

    .contenedor1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 40px);
        margin: 50px auto;
        gap: 25px;
    }

    .nuestrosServicios1 .carta {
        width: 100%;
        margin: 0;
    }

    .nuestrosServicios1 .carta .contendorImagen {
        flex-basis: 230px;
        height: 230px;
    }

    .espesificacion {
        width: auto;
        max-width: calc(100% - 40px);
    }

    .contenedorInformacion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .contenedorComentarios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    #contenedorNuestroEquipo {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .contenedorBarbero {
        width: 100%;
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .perfilBarbero {
        width: 100%;
        height: auto;
    }

    .perfilBarbero img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 25px 25px 0 0;
    }

    .presentacionBarbero {
        width: 100%;
        padding: 0 25px 25px;
    }

    .calificacion {
        max-width: 100%;
        padding-left: 20px;
    }

    #tarjeta {
        width: calc(100% - 40px);
        max-width: 600px;
        height: auto;
        min-height: 600px;
    }

    .admin,
    .boton {
        width: 100%;
        max-width: 530px;
    }
}

/* =========================================================
   14. RESPONSIVE: HASTA 600PX
   ========================================================= */

@media (max-width: 600px) {

    header>nav,
    header .contenedorHeader>nav,
    header .container>nav {
        width: calc(100% - 24px);
    }

    header {
        padding: 8px 0;
    }

    header>nav>ul,
    header .contenedorHeader>nav>ul,
    header .container>nav>ul {
        gap: 6px;
    }

    header nav>ul>#marca {
        max-width: calc(100% - 55px);
    }

    #marca a {
        flex-wrap: wrap;
    }

    #TituloLogo {
        padding-left: 0;
        font-size: 32px;
        text-align: center;
    }

    header nav>ul>li:not(#marca):not(.menu-toggle) {
        width: 100%;
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a {
        padding: 10px 8px;
        font-size: 16px;
    }

    #hero {
        min-height: 90vh;
        padding: 35px 15px;
    }

    #tituloInicio {
        font-size: 40px;
    }

    #subtituloInicio {
        font-size: 28px;
    }

    .contenedor1,
    .contenedorInformacion,
    .contenedorComentarios,
    #contenedorNuestroEquipo {
        width: calc(100% - 24px);
    }

    .contenedor1,
    .contenedorInformacion,
    .contenedorComentarios {
        grid-template-columns: minmax(0, 1fr);
    }

    .nuestrosServicios1 .carta .contendorImagen {
        flex-basis: 200px;
        height: 200px;
    }

    .nuestrosServicios1 .tituloTarjeta {
        font-size: 36px;
        line-height: 1.15;
        word-break: normal;
        overflow-wrap: normal;
    }

    .nuestrosServicios1 .carta .tituloColorimetria {
        font-size: 27px;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .nuestrosServicios1 .carta:nth-child(6) .tituloTarjeta {
        font-size: 32px;
    }

    .nuestrosServicios1 .carta>*,
    .carta h1,
    .carta h3,
    .carta h4,
    .tituloTarjeta,
    .parrafoTarjeta,
    .carta ul,
    .espesificacion {
        margin-left: 12px;
        margin-right: 12px;
    }

    .nuestrosServicios1 .carta .contendorImagen {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .tituloTarjeta {
        font-size: 36px;
    }

    .parrafoTarjeta {
        font-size: 20px;
    }

    .espesificacion {
        width: auto;
        max-width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
        padding-left: 15px;
    }

    .cartaInformacion {
        max-width: none;
    }

    .cartaInformacion h1 {
        font-size: 25px;
    }

    .datos {
        font-size: 17px;
    }

    .comentario {
        min-height: 0;
    }

    .comentario p {
        font-size: 20px;
    }

    .comentariosClientes h1 {
        font-size: 36px;
    }

    #botonReserva {
        width: calc(100% - 24px);
        margin-top: 30px;
        margin-bottom: 40px;
    }

    #reser {
        width: 100%;
        max-width: 100%;
    }

    .contenedorBarbero {
        border-radius: 25px;
    }

    .presentacionBarbero {
        padding-right: 20px;
        padding-left: 20px;
    }

    .nombreBarbero {
        padding-left: 0;
        font-size: 36px;
    }

    .calificacion {
        display: block;
        padding-left: 0;
    }

    .tiposCorte {
        font-size: 28px;
    }

    .descripcionHabilidades {
        margin: 15px 0;
        font-size: 16px;
    }

    #tarjeta {
        width: calc(100% - 24px);
        min-height: 0;
        padding-right: 12px;
        padding-left: 12px;
    }

    #imagenTarjeta {
        width: 200px;
    }

    #tituloTarjeta {
        font-size: 40px;
    }

    #subtituloTarjeta {
        font-size: 20px;
    }

    .admin,
    .boton {
        width: 100%;
        max-width: 100%;
    }

    .boton {
        font-size: 20px;
    }

    footer {
        font-size: 18px;
    }

    footer p {
        padding: 10px;
    }
}

/* =========================================================
   15. ESCRITORIO: MÁS DE 1200PX
   ========================================================= */

@media (min-width: 1201px) {

    header>nav,
    header .contenedorHeader>nav,
    header .container>nav {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    header>nav>ul,
    header .contenedorHeader>nav>ul,
    header .container>nav>ul {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 18px;
    }

    header nav>ul>#marca {
        flex: 0 1 560px;
        min-width: 0;
        margin-right: 0;
    }

    header nav>ul>#marca a {
        display: flex;
        align-items: center;
        max-width: 100%;
        overflow: visible;
        white-space: normal;
    }

    header nav>ul>#marca #TituloLogo {
        min-width: 0;
        padding-left: 20px;
        line-height: 1.05;
        overflow-wrap: normal;
    }

    header nav>ul>li:not(#marca):not(.menu-toggle) {
        display: block;
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    header nav>ul>li:not(#marca):not(.menu-toggle) a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        font-size: 24px;
        line-height: 1.1;
        white-space: nowrap;
    }

    #bodyInicio header nav>ul>li:not(#marca):not(.menu-toggle) a {
        font-size: 24px;
    }

    .nuestrosServicios1 .contenedor1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: calc(100% - 100px);
        margin: 50px auto;
        gap: 30px;
    }

    .nuestrosServicios1 .carta {
        width: auto;
        margin: 0;
    }

    .contenedorInformacion {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contenedorComentarios {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   16. REGLAS DE SEGURIDAD PARA CONTENIDO
   Evitan desbordamientos accidentales
   ========================================================= */

.carta,
.cartaInformacion,
.comentario,
.contenedorBarbero,
.nuestrosServicios1 .carta>* {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.carta ul {
    max-width: 100%;
}

button,
#reser,
#botonReservaInicio {
    max-width: 100%;
}

/* =========================================================
   17. NAVEGACIÓN FINAL
   Esta sección tiene la última palabra sobre el menú.

   > 1200px : menú horizontal
   <= 1200px: logo + hamburguesa
   <= 600px : versión compacta
   ========================================================= */

/* -------- Base -------- */

header>nav,
header .contenedorHeader>nav,
header .container>nav {
    width: 100%;
    margin: 0 auto;
}

header>nav>ul,
header .contenedorHeader>nav>ul,
header .container>nav>ul {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav>ul>#marca {
    flex: 0 1 560px;
    min-width: 0;
    margin-right: 0;
}

header nav>ul>#marca a {
    display: flex;
    align-items: center;
    max-width: 100%;
    color: white;
    text-decoration: none;
    white-space: normal;
}

header nav>ul>#marca img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
    border-radius: 50%;
}

header nav>ul>#marca #TituloLogo {
    margin: 0;
    padding-left: 20px;
    color: white;
    font-size: 40px;
    line-height: 1.05;
}

header nav>ul>li:not(#marca):not(.menu-toggle) {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

header nav>ul>li:not(#marca):not(.menu-toggle) a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.1;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

header nav>ul>li:not(#marca):not(.menu-toggle) a:hover,
header nav>ul>li:not(#marca):not(.menu-toggle) a:focus-visible,
header nav>ul>li:not(#marca):not(.menu-toggle) a.active {
    background-color: rgba(0, 217, 255, 0.788);
    box-shadow: 0 3px 10px rgba(0, 217, 255, 0.28);
    outline: none;
}

.menu-toggle {
    display: none;
    padding: 6px 10px;
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
}


/* -------- Tablet / móvil: menú hamburguesa -------- */

@media (max-width: 1200px) {

    header>nav,
    header .contenedorHeader>nav,
    header .container>nav {
        width: calc(100% - 32px);
    }

    header>nav>ul,
    header .contenedorHeader>nav>ul,
    header .container>nav>ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    header nav>ul>#marca {
        grid-column: 1;
        width: auto;
        min-width: 0;
        margin-right: 0;
    }

    header nav>ul>#marca a {
        justify-content: flex-start;
        max-width: 100%;
        overflow: hidden;
        white-space: normal;
    }

    header nav>ul>#marca img {
        width: 100px;
        height: auto;
    }

    header nav>ul>#marca #TituloLogo {
        max-width: 100%;
        padding-left: 20px;
        font-size: 32px;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    header nav>ul>.menu-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
        margin-left: auto;
    }

    /* Cerrado */
    header nav>ul:not(.active)>li:not(#marca):not(.menu-toggle) {
        display: none;
    }

    /* Abierto */
    header nav>ul.active>li:not(#marca):not(.menu-toggle) {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        font-size: 18px;
        white-space: normal;
        overflow-wrap: anywhere;
        background-color: rgba(0, 217, 255, 0.18);
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a:hover,
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a:focus-visible,
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a.active {
        background-color: rgba(0, 217, 255, 0.788);
    }
}


/* -------- Móvil -------- */

@media (max-width: 600px) {

    header>nav,
    header .contenedorHeader>nav,
    header .container>nav {
        width: calc(100% - 24px);
    }

    header {
        padding: 8px 0;
    }

    header>nav>ul,
    header .contenedorHeader>nav>ul,
    header .container>nav>ul {
        gap: 6px;
    }

    header nav>ul>#marca {
        max-width: calc(100% - 55px);
    }

    header nav>ul>#marca img {
        width: 75px;
    }

    header nav>ul>#marca #TituloLogo {
        max-width: calc(100% - 85px);
        padding-left: 8px;
        font-size: 24px;
        line-height: 1.05;
        text-align: left;
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a {
        padding: 9px 8px;
        font-size: 16px;
    }
}


/* -------- Inicio: mantiene .nav-inicio sin duplicar el menú -------- */

.nav-inicio {
    width: 100%;
    min-width: 0;
}















/* =========================================================
   CORRECCIÓN DEFINITIVA DEL NAV
   ========================================================= */

/* =========================
   ESCRITORIO
   ========================= */

@media (min-width: 1201px) {

    header nav>ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        gap: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    header nav>ul>#marca {
        display: block !important;
        flex: 0 1 560px !important;
        width: auto !important;
        margin: 0 !important;
    }

    header nav>ul>#marca a {
        display: flex !important;
        align-items: center !important;
    }

    header nav>ul>#marca img {
        width: 250px !important;
        height: auto !important;
    }

    header nav>ul>#marca #TituloLogo {
        display: block !important;
        padding-left: 20px !important;
        font-size: 40px !important;
        white-space: normal !important;
    }

    /* Oculta la hamburguesa */
    header nav>ul>.menu-toggle {
        display: none !important;
    }

    /* Muestra los enlaces horizontalmente */
    header nav>ul>li:not(#marca):not(.menu-toggle) {
        display: block !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        grid-column: auto !important;
        text-align: center !important;
    }

    header nav>ul>li:not(#marca):not(.menu-toggle) a {
        display: block !important;
        width: 100% !important;
        padding: 12px 14px !important;
        font-size: 24px !important;
        white-space: nowrap !important;
    }
}

/* =========================================================
   TABLET Y MÓVIL
   Hasta 1200px
   ========================================================= */

@media (max-width: 1200px) {

    header nav>ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        width: 100% !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Logo */
    header nav>ul>#marca {
        display: block !important;
        grid-column: 1 !important;
        width: auto !important;
        margin: 0 !important;
    }

    header nav>ul>#marca a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    header nav>ul>#marca img {
        width: 100px !important;
        height: auto !important;
    }

    header nav>ul>#marca #TituloLogo {
        padding-left: 20px !important;
        font-size: 32px !important;
    }

    /* Hamburguesa */
    header nav>ul>.menu-toggle {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        color: rgba(0, 217, 255, 0.788) !important;
        font-size: 50px !important;
        cursor: pointer !important;
        border-radius: 50px !important;
    }

    /* Menú cerrado */
    header nav>ul:not(.active)>li:not(#marca):not(.menu-toggle) {
        display: none !important;
    }

    /* Menú abierto */
    header nav>ul.active>li:not(#marca):not(.menu-toggle) {
        display: block !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        text-align: center !important;
    }

    header nav>ul.active>li:not(#marca):not(.menu-toggle) a {
        display: block !important;
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 18px !important;
        white-space: normal !important;
        background-color: rgba(0, 217, 255, 0.18) !important;
    }

    /* Elemento activo */
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a.active {
        background-color: rgba(0, 217, 255, 0.788) !important;
        box-shadow: 0 3px 10px rgba(0, 217, 255, 0.28) !important;
        color: white !important;
    }

    /* Hover */
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a:hover {
        background-color: rgba(0, 217, 255, 0.50) !important;
    }
}

.casilla.diaNoDisponible {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #ef4444;
    cursor: not-allowed;
    opacity: 1;
}

.casilla.diaNoDisponible .diaSemana,
.casilla.diaNoDisponible .dia,
.casilla.diaNoDisponible .mes {
    color: #ef4444;
}
/* =========================================================
   MÓVIL
   Hasta 600px
   ========================================================= */

@media (max-width: 600px) {

    header nav {
        width: calc(100% - 24px) !important;
        margin: 0 auto !important;
    }

    /* Logo más pequeño */
    header nav>ul>#marca img {
        width: 75px !important;
    }

    header nav>ul>#marca #TituloLogo {
        padding-left: 8px !important;
        font-size: 20px !important;



    }

    /* Enlaces del menú */
    header nav>ul.active>li:not(#marca):not(.menu-toggle) a {
        font-size: 16px !important;
        padding: 9px 8px !important;
    }

    /* Hamburguesa un poco más compacta */
    header nav>ul>.menu-toggle {
        font-size: 44px !important;
    }
}



/* =========================================================
   PORTÁTILES
   Entre 1201px y 1500px
   Reduce el tamaño del header sin usar hamburguesa
   ========================================================= */

@media (min-width: 1201px) and (max-width: 1680px) {

    header nav>ul {
        display: flex !important;
        align-items: center !important;
        gap: 70px !important;
    }

    /* Logo más compacto */
    header nav>ul>#marca {
        flex: 0 0 360px !important;
        min-width: 360px !important;
    }

    header nav>ul>#marca img {
        width: 160px !important;
    }

    header nav>ul>#marca #TituloLogo {
        padding-left: 10px !important;
        font-size: 38px !important;
        line-height: 1.05 !important;
    }

    /* Enlaces */
    header nav>ul>li:not(#marca):not(.menu-toggle) {
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    header nav>ul>li:not(#marca):not(.menu-toggle) a {
        width: auto !important;
        padding: 10px 7px !important;
        font-size: 24px !important;
        white-space: nowrap !important;
    }

    /* No mostrar hamburguesa en portátil */
    header nav>ul>.menu-toggle {
        display: none !important;
    }





}
/* Los accesos por rol permanecen ocultos hasta iniciar sesión con ese rol. */
[data-nav-role][hidden] {
    display: none !important;
}

