* {
    list-style: none;
    margin: 0;
    padding: 0;
    /*cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' style='font-size:30px'><text y='35'>✂️</text></svg>") 0 35, auto !important;*/
    /*cursor: url(../../imagenes/cursor.cur), auto;*/
}

:root {
    --amarillo: #E9C176;
    --negro: #131313;
    ---gris: #E5E2E1;
}

body {
    background-color: var(--negro);
}

h1, h2, h3 {
    color: white;
    font-family: 'Newsreader', sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
}

.boton {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    color: #535353;
    padding: 0.4rem;
    background-color: var(--amarillo);
    border: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: bolder;
    border: solid 2px transparent;
    width: fit-content;
}

.boton:hover {
    background-color: transparent; 
    border: 2px solid #E9C176;
    color: #E9C176;
}

.parrafo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: var(---gris);
    margin-bottom: 0;
    padding-left: 0;
}

a {
    font-family: 'Newsreader', serif;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1.4px;
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(---gris);
}

a:hover {
    color: var(--amarillo);
}

a.active {
    color: var(--amarillo);
    font-weight: bold;
    border-bottom: 2px solid var(--amarillo);
}

.medida-cont {
    width: 50%;
}

.alineacion {
    display: flex;
    align-items: center;
}

.alinear-precio {
    align-self: baseline;
}

.justificacion {
    display: flex;
    justify-content: center;
}

.columna {
    flex-direction: column;
}

.fila {
    flex-direction: row;
}

.centrar {
    text-align: center;
}

/* CABECERA */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(---gris);
    transition: background-color 0.4s ease;
}

header.scrolled {
    background-color: rgba(19, 19, 19, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#cabecera, #cabecera-admin {
    justify-content: space-around;
    width: 100%;
}

.navbar nav ul {
    display: flex;
    gap: 6vw;
    margin-bottom: 0;
    padding-left: 0;
}

.logo {
    width: 10vw;
    margin: 25px 0px;
    filter: invert(1);
}

.logo-footer {
    width: 7vw;
}

/* CONTENIDO */
/* Parte superior */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url("../../imagenes/barberia.jpg");
    background-size: cover;
    background-position: center;
    padding: 0 10%;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;    
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 80%);
    backdrop-filter: blur(1px); 
    -webkit-backdrop-filter: blur(1px);
    z-index: 1;
}

.texto-principal {
    margin-left: 8rem;
    width: 40vw;
}

.texto-principal h1 {
    position: relative;
    z-index: 2;
    font-size: 5rem;
    line-height: 1.2;
}

.texto-principal p {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.texto-color {
    color: var(--amarillo);
}

/* Sección media */
.seccion-media {
    border-top: solid 2px var(--amarillo);
}

.cont-drcho {
    display: flex;
    justify-content: center;
    width: 50%;
    padding: 5% 0%;
}

.bloque-texto {
    max-width: 85%;
    text-align: left;
}

.imagen {
    width: 43vw;
    border-radius: 25px;
}

/* Sección mapa */
.seccion-mapa {
    width: 100%;
    border-top: solid 2px var(--amarillo);
}

.mapa {
    margin: 5% 0%;
    filter: sepia(50%);
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 0;
    width: 90%;
    height: 250px;
    border-top: solid 2px var(--amarillo);
    border-bottom: solid 2px var(--amarillo);
    border-right: solid 2px var(--amarillo);
}

.bloque-texto h2 {
    font-size: 2.3rem;
}

/* FOOTER */
footer {
    border-top: solid 2px var(--amarillo);
}

.footer-superior {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    padding: 40px;
    gap: 52px;
    border-top: dashed 2px var(--amarillo);
    border-bottom: dashed 2px var(--amarillo);
    margin: 10px 0px;
}

.columna-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.columna-footer h3 {
    background-color: #353124;
    color: var(--amarillo);
    padding: 5px;
    font-size: 1.3rem;
    text-align: center;
}

.nav-footer ul {
    padding: 0;
}

.nav-footer li {
    margin-bottom: 1.7rem;
}

.icono-footer {
    width: 35px;
    height: auto;
    fill: var(--amarillo);
}

.margen-icono {
    margin-right: 1rem;
}

.enlace-mapa {
    color: var(--amarillo);
    text-decoration: underline;
}

.horario {
    text-align: right;
    width: 251px;
}

.redes-sociales {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

#boton-footer {
    display: flex;
    justify-content: center;
}

.footer-inferior {
    border-top: solid 1px var(--amarillo);
    justify-content: space-around;
}

.footer-inferior .parrafo {
    font-size: 0.9rem;
}

.footer-inferior div:nth-child(odd) {
    width: 45%;
}

.footer-inferior {
    text-align: center;
}

.enlaces-legales {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-footer a {
    font-size: 1.1rem;
}

/* SERVICIOS */
#contenedor-servicios, #contenedor-sobremi, #contenedor-login {
    padding: 3rem 0;
}

#contenedor-servicios > div:first-child, #contenedor-servicios > div:last-child {
    width: 95%;
    flex-direction: column;
}

#contenedor-servicios > div > p {
    width: 70%;
    max-width: 852px;
    text-align: center;
}

#contenedor-servicios h1, #contenedor-sobremi h1, #contenedor-login h2 {
    background-color: black;
    text-align: center;
    padding: 8px 30px 0px 30px;
    color: var(--amarillo);
    border-radius: 15px;
}

.servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    row-gap: 50px;
    margin: 3rem 0 3rem 0;
    width: 95%;
}

.servicio {
    background-image: linear-gradient(170deg, #000000 30%,  var(--negro) 90%, #DBBB8D 100%);
    border-radius: 15px;
    width: 28vw;
    transition: all 0.3s ease;
}

.servicio:hover, .producto:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(212, 175, 55, 0.2);
}

.servicio-fila {
    justify-content: space-between;
    padding: 0% 7% 3% 7%;
}

.servicio .parrafo {
    font-weight: bold;
}

.iconos {
    width: 100%;
}

#boton-servicios .boton {
    margin-top: 1.5rem;
}

#boton-servicios > p:first-child {
    font-weight: bold;
}

/* PRODUCTOS */
.producto {
    background-image: linear-gradient(350deg, #000000 30%,  var(--negro) 90%, #DBBB8D 100%);
    border-radius: 15px;
    width: 28vw;
    transition: all 0.3s ease;
}

/* CONTACTO */
#sobremi {
    width: 95%;
    border-bottom: dashed 2px var(--amarillo);
    padding-bottom: 3rem;
}

#sobremi div h2 {
    margin-top: 3rem;
}

#sobremi div p {
    margin-bottom: 1rem;
}

#icono-contacto {
    width: 90%;
    align-self: center;
}

#contenedor-sobremi {
    gap: 40px;
}

#formulario {
    display: flex;
    flex-direction: column;
}

#contacto {
    padding: 0rem 2.5rem 0rem 2.5rem;
}

#contenedor-contacto {
    padding-bottom: 3rem;
    gap: 40px;
}

#contenedor-contacto h3 {
    margin-bottom: 2rem;
}

#mapa-contacto {
    width: 100%;
    height: 100%;
}

/* Estilos formulario */
.input-elegante {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #c5a059;
  color: var(---gris);
  font-family: inherit;
  font-size: 16px;
  padding: 5px 0;
}

.input-elegante:focus {
  outline: none; 
  border-bottom: 2px solid var(---gris);
}

.input-elegante::placeholder {
  color: var(---gris);
}

textarea.input-elegante {
  resize: vertical; 
}

/* LEGAL */
#legal {
    padding: 3rem 3rem;
}

#legal p {
    margin-bottom: 1.5rem;
}

#legal ul {
    margin-bottom: 1.5rem;
}

#legal li {
    margin-bottom: 0.2rem;
    list-style: circle;
}

/* LOGIN */
#contenedor-login {
    height: 530px;
    justify-content: center;
    gap: 40px;
}

#cita, #login {
    width: 40%;
}

#login {
    justify-content: space-evenly;
}

#caja-login {
    width: 100%;
    height: 450px;
}

#login-admin {
    width: 25%;
    padding-top: 100px;
    margin-bottom: 25px;
}

.eliminar {
    margin: 0 0px 11px 0;
    padding: 0.4rem;
}

table {
    border: solid 1px var(--amarillo);
    width: 100%;
    color: var(---gris);
    border-collapse: separate;
    border-spacing: 20px 20px;
    padding: 10px 30px;
}

.cont-admin {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px;
}

.form-fecha-citas {
    display: flex;
    flex-direction: column;
}

.form-eliminar {
    width: 0;
}

.form-admin {
    display: flex;
    flex-direction: column;
    width: 80%;
}

input[type="number"] {
    width: 90px;
    padding: 0;
}

input[type="date"], input[type="time"] {
    width: max-content;
    margin-top: 0;
}

textarea {
    margin-bottom: 15px;
    width: 60%;
    resize: vertical;
}

.form-precio {
    display: flex;
}

.tablas-admin {
    padding: 5px 5px;
    margin-bottom: 20px;
}

/* FORMULARIOS LOGIN */
/* El fondo oscuro que cubre toda la pantalla */
.modal-fondo {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se queda fijo en la pantalla */
    z-index: 1000; /* Asegura que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo negro con 80% de opacidad */
}

/* La caja del formulario */
.modal-contenido {
    background-color: #000; /* Fondo negro */
    margin: 1% auto; /* Centrado vertical y horizontal */
    padding: 1.7rem;
    border: 2px solid var(--amarillo); /* Borde naranja simulando tu imagen */
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    position: relative;
}

/* El botón de cerrar (X) */
.cerrar {
    color: var(--amarillo);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover {
    color: white;
}

/* Estilos de los inputs y botones */
input {
    width: 90%;
    box-sizing: border-box;
    border: none;
}

.texto-pequeno {
    font-size: 12px;
    margin-top: 15px;
}

.texto-pequeno a {
    color: var(--amarillo);
    font-weight: bold;
}

/* Contenedor relativo para poder posicionar el ojo dentro */
.contenedor-password {
    position: relative;
    width: 100%;
}

/* El estilo del icono del ojo */
.ojo-password {
    position: absolute;
    right: 4px;
    top: 5px;
    cursor: pointer;
    font-size: 18px;
    user-select: none; /* Evita que el usuario seleccione el icono como si fuera texto */
    opacity: 0.7; /* Lo hacemos un poco transparente */
}

.ojo-password:hover {
    opacity: 1; /* Se aclara al pasar el ratón */
}

.error {
    background-color: #2a0000;
    color: #ff4d4d;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
} 

.btn-precio {
    width: 40px;
    height: 35px;
    padding: 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    align-self: center;
}

/* FORMATO HORAS DISPONIBLES */
.grid-horas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
}

.hora-disponible {
    width: 100%;
    padding: 14px;
    border: 1px solid #e8c16d;
    background-color: transparent;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.hora-disponible:hover {
    background-color: #e8c16d;
    color: #111;
}

.form-fecha-citas .input-elegante {
    margin-top: 0;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.tabla-productos img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.producto .iconos {
    height: 260px;
    object-fit: contain;
    padding: 15px;
}

.form-insertar input, .form-insertar textarea,
#cajaLogin input, #cajaRegistro input, 
#login-admin input, .form-insertar select {
    margin-bottom: 1rem;
}

.ancho-form {
    width: 30%;
}

#diaCompletoBloqueo {
    width: 15px ;
}

/* TABLET */
@media (max-width: 991px) {
    .logo {
        width: 100px;
        margin: 0;
    }

    #cabecera, .cabecera-admin {
        padding: 10px 0px;
    }

    .hero-section {
        height: 45vh;
    }

    .texto-principal {
        margin-left: 2rem;
        width: 50%;
    }

    .texto-principal h1 {
        font-size: 2.8rem;
        max-width: 270px;
    }

    .texto-principal p {
        max-width: 270px;
    }

    .seccion-media {
        display: flex;
        flex-direction: column;
    }

    .bloque-texto {
        text-align: center;
        margin-top: 40px;
    }

    .imagen {
        width: 84vw;
        border-radius: 15px;
    }

    .cont-texto {
        padding-top: 5%;
    }

    .medida-cont {
        width: 100%;
    }

    #sobremi, #contenedor-contacto {
        flex-direction: column;
    }

    .seccion-mapa {
        display: flex;
        flex-direction: column-reverse;
    }

    #login-admin {
        width: 45%;
    }

    /* FOOTER */
    .horario {
        width: 100%;
        max-width: 252px;
    }

    .logo-footer {
        display: none;
    }

    .footer-superior {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inferior {
        flex-direction: column-reverse;
        padding: 1% 0%;
    }

    .footer-inferior div:nth-child(odd) {
        width: 100%;
    }

    .enlaces-legales {
        gap: 10%;
    }

    /* SERVICIOS */
    .servicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicio, .producto {
        width: 40vw;
    }

    .servicio:last-child {
        grid-column: 1 / span 2;
    }

    /* CONTACTO */
    #contenedor-contacto h3 {
        margin-TOP: 3rem;
    }

    #mapa-contacto {
        height: 500px;
    }

    /* MENU HAMBURGUESA */
    #menuDesplegable {
        position: absolute;
        left: 0;
        top: 100%; 
        width: 100vw;
        z-index: 9999; 
        box-shadow: 0px 10px 15px rgba(0,0,0,0.5); 
    }

    #menuDesplegable ul {
        flex-direction: column;
        padding: 20px;
        background-color: #1a1a1a;
        text-align: center;
    }

    .navbar {
        position: static;
    }
    
    #cabecera > div:last-child {
        display: none;
    }

    .d-lg-none {
        margin-bottom: 15px;
    }

    #cita, #login {
        width: 63%;
        max-width: 442px;
    }

    .cont-admin {
        padding: 20px;
    }
}

/* MOVIL */
@media (max-width: 450px) {        
    .hero-section {
        background-image: url("../../imagenes/barberia2.jpg"); 
        text-align: center;
        height: 70vh;
        justify-content: center;
    }

    .texto-principal {
        margin-left: 0;
        width: 75vw;
        max-width: 270px;
    }

    .cont-texto {
        padding-top: 10%;
    }

    .cont-drcho {
        padding: 10% 0%;
    }

    .seccion-mapa .bloque-texto {
        text-align: center;
    }

    .mapa {
        width: 100%;
        border-right: 0;
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
        margin-top: 7%;
        margin-bottom: 10%
    }

    .footer-superior {
        grid-template-columns: auto;
    }    
    
    .footer-inferior .parrafo {
        font-size: 0.6rem;
    }

    .footer-inferior {
        gap: 0;
    }

    .servicios {
        grid-template-columns: 1fr;
    }

    .servicio, .producto {
        width: 80vw;
    }

    .servicio:last-child, .producto:last-child {
        grid-column: auto; 
    }

    #contenedor-servicios > div > p:last-child, #boton-servicios p {
        width: 90%;
    }

    #cita, #login {
        width: 100%;
    }

    #cita h2 {
        font-size: 1.4rem;
    }

    #cita p {
        width: 90%;
    }

    #login-admin {
        width: 85%;
    }

    table, thead, tbody, tr, th, td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        border: 1px solid #e8c06f;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 10px;
    }

    td {
        padding: 8px 0;
    }

    td::before {
        font-weight: bold;
        color: #e8c06f;
        display: block;
        margin-bottom: 4px;
    }

    .tabla-productos td:nth-child(1)::before { content: "Nombre"; }
    .tabla-productos td:nth-child(2)::before { content: "Descripción"; }
    .tabla-productos td:nth-child(3)::before { content: "Precio"; }
    .tabla-productos td:nth-child(4)::before { content: "Acciones"; }

    .tabla-citas td:nth-child(1)::before { content: "Hora"; }
    .tabla-citas td:nth-child(2)::before { content: "Cliente"; }
    .tabla-citas td:nth-child(3)::before { content: "Servicio"; }
    .tabla-citas td:nth-child(4)::before { content: "Acciones"; }

    .tabla-clientes td:nth-child(1)::before { content: "Nombre"; }
    .tabla-clientes td:nth-child(2)::before { content: "Apellidos"; }
    .tabla-clientes td:nth-child(3)::before { content: "Teléfono"; }
    .tabla-clientes td:nth-child(4)::before { content: "Email"; }
    .tabla-clientes td:nth-child(5)::before { content: "Acciones"; }

    .form-precio {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .form-precio input[type="number"] {
        width: 20%;
    }

    .form-eliminar form {
        width: 100%;
    }

    .cont-admin {
        padding: 20px;
    }

    .btn-precio {
	margin-left: 0;
    }

    .ancho-form {
	width: 50%;
   }
}