/* RESET DE ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #000000;      /* Negro Puro */
    --bg-card: #111111;      /* Negro Grisáceo para tarjetas */
    --accent: #ffffff;       /* Blanco Puro para destacar */
    --text-light: #ffffff;   /* Texto principal blanco */
    --text-muted: #888888;   /* Gris medio para descripciones */
    --border-color: #222222; /* Gris oscuro para líneas divisorias */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(15, 15, 17, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2a2a30;
}

/* Contenedor del logo */
.logo {
    display: flex;
    align-items: center; /* Centra verticalmente el texto y la imagen */
    gap: 15px;           /* Controla la separación entre el logo y el texto */
}

/* Control del tamaño de la imagen */
.logo-img {
    width: 70px;         /* Ajusta el ancho según prefieras */
    height: auto;        /* Mantiene la proporción de la imagen */
    
    border-radius: 50%;   /* Corta las esquinas en forma de círculo */
    object-fit: cover;    /* Evita que la imagen se estire o deforme dentro del círculo */
}


/* CONTENEDOR DE NAVEGACIÓN */
.nav-container {
    position: relative;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    z-index: 150;
}

.menu-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* MENÚ DESPLEGABLE (Oculto por defecto) */
.nav-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 140;
}

/* Clase activa controlada por JavaScript */
.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul {
    list-style: none;
    padding: 10px 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s, background-color 0.2s;
}

.nav-menu li a:hover {
    color: var(--text-light);
    background-color: #1c1c22;
}

/* ANIMACIÓN HAMBURGUESA ACTIVA */
.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


.btn-nav {
    background: var(--accent);
    color: var(--bg-dark); /* Texto negro sobre fondo blanco */
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-nav:hover {
    background: #dddddd; /* Gris claro al pasar el cursor */
}

/* HERO SECTION */
.hero {
    min-height: 70vh;
    /* Reemplazar con una foto real de barbería oscura de Unsplash si es necesario */
    background: linear-gradient(rgba(0,0,0,0.75), rgba(15,15,17,1)), url('../img/fondohero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-secondary {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

/* SERVICIOS Y LISTA DE PRECIOS */
.services {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.services h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0 auto;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* EFECTO HOVER EN TARJETAS DE PRECIOS */
.service-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent); /* Línea blanca inicial */
    
    /* Transición suave para todos los cambios de propiedades */
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
    cursor: pointer;
}

/* Cambios aplicados al pasar el mouse por encima */
.service-card:hover {
    background-color: var(--text-light); /* Fondo se vuelve Blanco */
    border-color: var(--text-light);
    transform: translateY(-3px); /* Pequeño levante visual */
}

/* Transición para los textos internos de la tarjeta */
.service-card .service-info h3,
.service-card .service-info p,
.service-card .price {
    transition: color 0.4s ease;
}

/* Inversión de color en los textos al hacer hover */
.service-card:hover .service-info h3 {
    color: var(--bg-dark); /* Texto del título a Negro */
}

.service-card:hover .service-info p {
    color: #444444; /* Descripción pasa a un gris oscuro legible */
}

.service-card:hover .price {
    color: var(--bg-dark); /* El precio pasa a Negro */
}


.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

/* CALL TO ACTION (WHATSAPP) */
.cta-section {
    background-color: var(--bg-card);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* FOOTER */
.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #2a2a30;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

.social-links i {
    color: var(--accent);
    margin-right: 5px;
}

/* SECCIÓN CORTES */
.cortes-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* GRILLA DE TARJETAS */
.cortes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.corte-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

/* CONTENEDOR DE IMAGEN (Para controlar el zoom) */
.corte-img-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #050505; /* Fondo oscuro mientras carga */
}

.corte-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%); /* Fuerza el estilo blanco y negro */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

/* DETALLES DE LA TARJETA */
.corte-info {
    padding: 25px;
}

.corte-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    background-color: #222222;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.corte-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.corte-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* INTERACCIONES HOVER */
.corte-card:hover {
    border-color: var(--text-light);
    transform: translateY(-5px);
}

.corte-card:hover .corte-img-container img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(100%); /* Recupera el color original de la foto de forma estética */
}

/* BOTÓN VOLVER ATRÁS (GALERÍA) */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: var(--text-light);
}

/* SECCIÓN ACCESORIOS */
.accesorios-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.producto-card:hover {
    border-color: var(--text-light);
}

.producto-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #050505;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(105%);
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.05);
    filter: grayscale(0%); /* Muestra el color real al pasar el mouse */
}

.producto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.producto-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

.producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.producto-precio {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
}

.btn-comprar {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-comprar:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* SECCIÓN TURNOS / AGENDA */
.turnos-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* SELECTOR DE DÍAS */
.dias-selector {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.dia-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.dia-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dia-btn small {
    font-size: 1.1rem;
    font-weight: 800;
}

.dia-btn.active, .dia-btn:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

/* GRILLA DE HORARIOS */
.agenda-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.hora-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 20px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.hora-card .time {
    font-size: 1.1rem;
    font-weight: 700;
}

.hora-card .status {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ESTADOS DE HORARIOS */
.hora-card:not(.ocupado):hover {
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.hora-card.selected {
    background-color: #222222;
    border-color: var(--text-light);
}

.hora-card.ocupado {
    background-color: #080808;
    border-color: #151515;
    color: #333333;
    cursor: not-allowed;
}

.hora-card.ocupado .status {
    color: #551111; /* Alerta sutil de ocupado */
}

/* BOX CONFIRMACIÓN ACCIÓN */
.reserva-confirmar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none;
}

.reserva-confirmar.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.reserva-confirmar p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.reserva-confirmar strong {
    color: var(--text-light);
    border-bottom: 2px solid var(--text-light);
    padding-bottom: 2px;
}



/* RESPONSIVE (MÓVILES CHICOS) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .corte-img-container {
        height: 280px;
    }
}
