/* --- VARIABLES URBANAS --- */
:root {
    --bg-black: #0a0a0a;
    --bg-dark-grey: #1a1a1a;
    --neon-red: #ff2e2e;
    --neon-blue: #2e86ff;
    --text-white: #ffffff;
    --text-grey: #b3b3b3;
    --font-title: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- ESTILOS GENERALES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-black); color: var(--text-white); font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; }

.text-red { color: var(--neon-red); }
.text-blue { color: var(--neon-blue); }

/* --- SECCIONES Y FONDOS --- */
.section-padding { padding: 4rem 5%; }

.bg-dark { background-color: var(--bg-dark-grey); }

/* MEJORA 1: Fondo de Servicios más limpio para resaltar las fotos */
.bg-texture { 
    background-color: #141414; /* Gris carbón sólido y elegante */
}

.bg-city {
    position: relative;
    /* Ruta actualizada */
    background: url('img/fondo-ciudad.jpg') center/cover fixed; 
}
.overlay-city {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* MEJORA 3: Oscurecido sutilmente para que los mapas destaquen más */
    background: rgba(10, 10, 10, 0.90); 
}
.content-relative { position: relative; z-index: 2; }


/* --- NAV --- */
.navbar { background: rgba(10, 10, 10, 0.95); padding: 1.2rem 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--neon-red); position: sticky; top: 0; z-index: 1000; }

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px; 
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img-inline {
    max-height: 80px; 
    width: auto;
    display: block;
}

.logo-text-inline {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
}

.nav-links { list-style: none; display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--text-white); text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s; }
.btn-nav { background: var(--neon-blue); padding: 8px 15px; border-radius: 3px; color: white !important; }


/* --- HERO --- */
/* Ruta actualizada */
.hero { height: 80vh; background: url('img/fondo-hero2.jpeg') center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-black)); }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero h2 { font-size: 4rem; line-height: 1.1; margin: 20px 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.outline-text { color: transparent; -webkit-text-stroke: 2px var(--neon-red); }
.btn-primary { display: inline-block; padding: 15px 40px; background: var(--neon-red); color: white; text-decoration: none; font-weight: bold; font-family: var(--font-title); letter-spacing: 2px; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); transition: 0.3s; }
.btn-primary:hover { background: var(--neon-blue); transform: skew(-10deg); }

/* --- QUIENES SOMOS --- */
.about-container { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; }
.about-text { flex: 1; min-width: 300px; }
.about-text p { margin-bottom: 1rem; line-height: 1.6; color: var(--text-grey); font-size: 1.1rem; }

.about-image { flex: 1; min-width: 300px; position: relative; }

/* CORRECCIÓN APLICADA: Eliminado min-height: 300px; */
.about-image img { 
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    /* MEJORA 4: Integración más elegante. Borde oscuro, esquinas consistentes. */
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    border: 1px solid #222; 
    display: block;
}

/* --- TÍTULOS DE SECCIÓN --- */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; position: relative; width: 100%; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--neon-blue); margin: 10px auto 0; }

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.5rem; 
}

.service-card {
    background: var(--bg-dark-grey);
    padding: 1.2rem; 
    text-align: center;
    border: 1px solid #2a2a2a; /* Borde más sutil */
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    /* MEJORA 2: Curvatura consistente */
    border-radius: 8px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px); 
    border-bottom-color: var(--neon-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Sombra más oscura para dar profundidad */
}

.service-card h3 {
    margin-top: 10px;
    margin-bottom: 0.3rem;
    font-size: 1.1rem; 
}

.service-card p {
    font-size: 0.85rem; 
    line-height: 1.4;
    color: var(--text-grey);
}

.service-img {
    width: 100%;
    height: auto; /* NUEVO: Quitamos los 140px para que no mutile la foto */
    aspect-ratio: 16 / 9; /* NUEVO: Obliga a la web a respetar el recorte del panel */
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--neon-blue);
    transition: transform 0.4s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* --- FORMULARIO Y CITAS --- */
/* Ruta actualizada */
.booking-section { position: relative; background: url('img/fondo-reservas1.jpg') center/cover fixed; padding: 5rem 2rem; display: flex; justify-content: center; align-items: center; }
/* MEJORA 3: Formulario más oscuro de fondo para resaltar la caja */
.booking-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); }
.booking-container { position: relative; z-index: 2; width: 100%; max-width: 500px; }
.form-box { background: rgba(20, 20, 20, 0.95); padding: 2.5rem; border-radius: 8px; border-top: 5px solid var(--neon-blue); box-shadow: 0 20px 40px rgba(0,0,0,0.8); } /* MEJORA 2: Curvatura 8px */
.form-box h2 { text-align: center; margin-bottom: 0.5rem; }
.form-box p { text-align: center; color: var(--text-grey); margin-bottom: 2rem; }
.input-group { background: #2a2a2a; margin-bottom: 1rem; display: flex; align-items: center; padding: 0 15px; border: 1px solid #444; border-radius: 4px; } /* Ligeramente redondeados los inputs */
.input-group i { color: var(--neon-red); width: 20px; }
.input-group input, .input-group select { width: 100%; background: transparent; border: none; color: white; padding: 15px; outline: none; font-size: 1rem; }

select:required:invalid, input[type="date"]:required:invalid { color: #757575; }
select:required:valid, input[type="date"]:required:valid { color: #ffffff; }
select option { background-color: #1a1a1a; color: white; }
.btn-block { width: 100%; padding: 15px; background: var(--neon-red); border: none; color: white; font-weight: bold; font-family: var(--font-title); letter-spacing: 1px; cursor: pointer; margin-top: 10px; transition: 0.3s; border-radius: 4px; }
.btn-block:hover { background: #b91c1c; }

/* --- HORARIOS --- */
.hours-container { display: flex; justify-content: center; }
/* MEJORA 2: Curvatura consistente */
.hours-box { background: #111; border: 1px solid #222; padding: 2rem; width: 100%; max-width: 600px; border-left: 4px solid var(--neon-red); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 8px; }
.day-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #222; font-size: 1.2rem; font-family: var(--font-title); }
.day-row:last-child { border-bottom: none; }
.time { color: var(--text-white); }


/* --- UBICACIONES --- */
.locations-flex { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 2rem; 
}

.location-card { 
    background: rgba(20, 20, 20, 0.95); 
    padding: 1.5rem; 
    width: 100%; 
    max-width: 320px; 
    text-align: center; 
    border-top: 4px solid var(--neon-blue); 
    border: 1px solid #222; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    margin: 10px; 
    /* MEJORA 2: Curvatura consistente */
    border-radius: 8px;
}

.location-card h3 { 
    color: var(--text-white); 
    font-size: 1.5rem; 
    margin-bottom: 3px; 
}

.location-card p { 
    color: var(--text-grey); 
    margin-bottom: 10px; 
}

/* Modificación del contenedor para usar la foto como portada */
.map-container { 
    margin: 10px 0; 
    border: 2px solid var(--neon-blue); 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
    height: 180px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Propiedades de la foto de la sucursal para que encaje perfecto */
.img-sucursal { 
    display: block; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.btn-outline { 
    display: inline-block; 
    margin-top: 10px; 
    padding: 6px 16px; 
    border: 2px solid var(--neon-blue); 
    color: var(--neon-blue); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    border-radius: 4px;
}

.btn-outline:hover { 
    background: var(--neon-blue); 
    color: white; 
}

/* --- RESPONSIVE Y MENÚ MÓVIL --- */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .navbar { flex-direction: row; padding: 1rem 5%; justify-content: space-between; }
    
    .logo-link { gap: 8px; }
    .logo-img-inline { max-height: 35px; } 
    .logo-text-inline { font-size: 1.1rem; } 
    
    .nav-links { 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 2rem 0;
        gap: 20px;
        border-bottom: 2px solid var(--neon-red);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .menu-toggle { display: block; cursor: pointer; font-size: 1.5rem; color: var(--neon-red); z-index: 1001; }
    .about-container { flex-direction: column; }

    /* --- AQUÍ ESTÁ LA SOLUCIÓN PARA LA IMAGEN EN CELULAR --- */
    .about-image img {
        min-height: auto !important; 
        object-fit: contain !important; 
        height: auto !important; 
    }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

/* --- FOOTER ACTUALIZADO --- */
.footer-barber {
    background-color: #050505;
    padding: 50px 20px;
    text-align: center;
    border-top: 2px solid #222;
}

.social-links p {
    font-family: var(--font-title);
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-white);
    font-size: 1.1rem;
}

.icons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-icon {
    font-size: 2rem;
    color: #555;
    transition: all 0.3s ease;
}

/* Colores de las marcas al pasar el ratón */
.social-icon.fb:hover { color: #1877f2; transform: translateY(-5px); }
.social-icon.ig:hover { color: #e4405f; transform: translateY(-5px); }
.social-icon.tk:hover { color: #ffffff; transform: translateY(-5px); text-shadow: 2px 2px 0px #ff0050, -2px -2px 0px #00f2fe; }

.copyright {
    font-size: 0.85rem;
    color: var(--text-grey);
    letter-spacing: 1px;
}

/* --- EFECTOS DE INTERACCIÓN EN EL MENÚ --- */

/* 1. Estilos para Nosotros, Servicios, Horarios y Ubicación */
.nav-links a:not(.btn-nav) {
    display: inline-block; 
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: #2e86ff; 
    transform: translateY(-4px); 
}

/* Opcional: Una rayita sutil que aparece abajo al seleccionar */
.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2e86ff;
    transition: 0.3s;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%; 
}

/* 2. Estilos específicos para el botón azul (AGENDAR CITA) */
.nav-links a.btn-nav {
    display: inline-block;
    transition: all 0.3s ease; 
}

.nav-links a.btn-nav:hover {
    transform: scale(1.08); 
    background-color: #4594ff; 
    box-shadow: 0 5px 15px rgba(46, 134, 255, 0.5); 
}

/* ========================================= */
/* --- ESTILOS PARA LA GALERÍA PÚBLICA --- */
/* ========================================= */

/* Convertir tarjetas de servicios en botones interactivos */
.btn-abrir-galeria {
    cursor: pointer;
    position: relative;
    /* Eliminado el padding-bottom extra */
}

/* Eliminados los estilos de .etiqueta-ver-mas */

/* El fondo oscuro de la ventana emergente */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* La caja central de la galería */
.modal-content {
    background: var(--bg-dark-grey);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    border-top: 4px solid var(--neon-red);
    padding: 2rem;
    position: relative;
    overflow-y: auto; /* Permite hacer scroll si hay muchas fotos */
}

/* El botón de la X para cerrar */
.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-grey);
    cursor: pointer;
    transition: 0.3s;
}

.cerrar-modal:hover {
    color: var(--neon-red);
}

/* La cuadrícula donde se acomodan las fotos */
.modal-grid {
    display: grid;
    /* Hicimos la medida un poco más angosta (200px) para que luzcan mejor las fotos verticales */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Magia para que todas las cajas sean iguales y formato celular */
.modal-grid img {
    width: 100%;
    aspect-ratio: 3 / 4; /* ESTA ES LA CLAVE: Fuerza la caja a ser vertical (3 de ancho por 4 de alto) */
    object-fit: cover; /* Rellena el cuadro vertical completo sin espacios negros y con el mínimo zoom */
    border-radius: 5px;
    border: 1px solid #333;
    transition: transform 0.3s;
    background: #1a1a1a; /* Un gris oscuro de fondo por si la foto tarda 1 segundo en cargar */
}

.modal-grid img:hover {
    transform: scale(1.03);
    border-color: var(--neon-blue);
}
/* ========================================= */
/* --- FIX: FOTOS CUADRADAS EN LAPTOP --- */
/* ========================================= */

/* Esta regla SOLO se aplica en pantallas grandes (más de 769px, como tu laptop) */
@media (min-width: 769px) {
    /* Forzamos a que las fotos de servicios sean CUADRADAS en Laptop */
    .service-img {
        aspect-ratio: 1 / 1 !important; /* Fuerza el cuadrado, reemplazando el 16/9 del celular */
        height: auto;
    }
}