html,body {
    width: 100% !important;
    overflow-x: hidden !important;
    max-width: 100vw;
    scroll-behavior: smooth;
}

/* --- Variables y Reset --- */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-gray: #1a1a1a;
    --highlight: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

a { 
    text-decoration: none; 
    color: inherit; 
    
    /* FIX: Elimina el color de resaltado azul al tocar en navegadores basados en WebKit (Chrome, Safari) */
    -webkit-tap-highlight-color: transparent;
}

/* --- Header --- */
.header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 4vw;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo-container {
    margin-bottom: 10px;
}

.header-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.navbar {
    display: flex;
    gap: 8px;
    align-items: center;
    
}

.nav-item {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-item:hover { 
    color: #888; 
}

/* --- FIX DEFINITIVO DE PERSISTENCIA DEL COLOR GRIS --- */
/* Aplicamos el color base a todos los estados post-interacción */
.nav-item:active,
.nav-item:focus,
.nav-item:visited {
    color: var(--text-color); /* Forzar el color blanco/base */
}

/* --- FIX DEFINITIVO DEL RECTÁNGULO AZUL/OUTLINE --- */
.nav-item:focus {
    outline: none; /* Quita el contorno (rectángulo) que aparece al enfocar */
}


.btn-turnos {
    border: 1px solid white;
    padding: 5px 8px; /* Posible causa de mal funcionamiento del over scroll horizontal a derecha */
    border-radius: 0;
    transition: all 0.3s;
}

.btn-turnos:hover {
    background-color: white;
    color: black;
}



/* --- Hero Section & Carrusel Ken Burns --- */



/* .visually-hidden es una clase utilitaria para ocultar elementos VISUALMENTE 
   pero mantenerlos ACCESIBLES para lectores de pantalla y buscadores */

.visually-hidden {
    display: none;
}

/*   .visually-hidden { Esto antes no me funcionaba!
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*/

.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1);
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.carousel-slide.active {
    opacity: 1;
    animation: kenBurns 6s linear forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    /* CAMBIO: Esto sube el texto hacia arriba */
    transform: translateY(-80px);
    font-size: 0.8rem; 
}

.hero-content p{
    transform: translateY(-150px);
    font-size: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content h2 {
    transform: translateY(-150px);
    font-size: 1rem; /* Tamaño de telefono móvil */
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}


/* ----- Nuestros Servicios ----- */

/* Animación de brillo (un solo pulso que se desvanece) */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.6); } /* El pico del brillo */
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Clase que aplicaremos con JS para activar el pulso */
.service-step.pulsing {
    /* Ajusta la duración para que se vea bien, 1.5s es un buen punto */
    animation: pulse 1.5s ease-out forwards;
    /* La animación se debe quitar después de que termine para que se pueda reiniciar */
}

.section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 5px;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 0px;
    margin-top: 20px;
}

.service-step {
    background-color: var(--accent-gray);
    padding: 20px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    text-align: left;
    transition: transform 0.3s;
}

.service-step:hover {
    border-color: white;
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    margin-right: 20px;
    color: #444;
}

.step-content h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.step-content .optional {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.promo-box {
    margin-top: 40px;
    padding: 15px;
    border: 1px dashed white;
    display: inline-block;
    font-style: italic;
}





/* --- SECCIÓN PROMOCIONES --- */

/* Hacemos que la sección de promociones sea más lenta al aparecer */
#promociones .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* 1.5 segundos para que sea suave */
}

/* Cuando el JS le pone la clase .visible */
#promociones .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.promo-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    text-align: center;
}

.promo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.promo-img {
    max-width: 100%;       /* No se sale de la pantalla en móviles */
    width: 1000px;         /* Tamaño máximo en escritorio */
    height: auto;          /* Mantiene la proporción */
    border-radius: 8px;    /* Bordes sutilmente redondeados */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra para darle profundidad */
    border: 1px solid #333; /* Un borde fino para que resalte */
}

/* Ajuste para móviles */
    .promo-section {
        padding: 50px 15px;
    }
    .promo-img {
        width: 100%; /* En el celu ocupa todo el ancho disponible */
    }







/* ---- SECCIÓN NOSOTROS ---- */
.about-section {
    background-color: var(--accent-gray);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-barberia {
    margin: 30px 0;
    font-size: 1rem;
}

.info-barberia p {
    margin-bottom: 10px;
}


.btn-map {
    display: inline-block;
    border: 1px solid white;
    padding: 10px 30px;
    text-transform: uppercase;
    margin-top: 20px;
    transition: background 0.3s, color 0.3s;
}

.btn-map:hover {
    background: white;
    color: black;
}

/* --- MAPA --- */
.map-section {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Elimina espacio blanco debajo del iframe */
}

.map-section iframe {
    /* Filtro para hacer el mapa en blanco y negro */
    filter: grayscale(100%) invert(90%) contrast(120%);
    max-width: 100%;
    display: block;
}

/* --- Pop-up WhatsApp --- */
.whatsapp-popup {
    position: fixed;
    bottom: 50px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2000;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-popup {
    animation: bounce 2s infinite ease-in-out;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
    color: #666;
    background-color: #000;
    border-top: 1px solid #333;
}

/* Estilos Créditos */
.footer-credits {
    margin-top: 15px;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    padding-top: 15px;
    display: inline-block;
}

.footer-credits p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-credits i {
    color: #0077b5; /* Color azul LinkedIn */
    font-size: 1.1em;
}

.credit-link {
    color: #999;
    text-decoration: underline; 
    transition: color 0.3s;
}

.credit-link:hover {
    color: white;
}

/* --- Animaciones de Scroll --- */
.fade-in, .slide-in-left, .slide-in-bottom, .slide-in-right {
    opacity: 0;
    transition: all 1.7s ease-out;
}

.slide-in-left { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px); }
.slide-in-bottom { transform: translateY(30px); }

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive para PC --- */
@media (min-width: 768px) {

    .header {
        flex-direction: row;
        justify-content: space-between;
    }
    .logo-container { margin-bottom: 0; }
    
    .services-container {
        flex-direction: row; /* Horizontal en PC */
    }

    .navbar {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .nav-item {
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s;
    }


    /*Como la imagen del logo no es responsiva para desktop, vamos a modificar el cómo la muestra, y esto jode a las demás, asi que con nth-child podés elegir cómo centrar c/u, por ejemplo, la 2 la fui haciendo a medida*/
    .carousel-background .carousel-slide:nth-child(1) {
        background-image: url('img/2024-12-27-desktop.webp'); 
        background-position: center center;
        background-size: cover;
    }
    .carousel-background .carousel-slide:nth-child(2) {
        background-image: url('img/2024-12-27-desktop.webp'); 
        background-position: 50% 35%;
        background-size: cover;
    }
    .carousel-background .carousel-slide:nth-child(3) {
        background-image: url('img/2025-03-03-desktop.webp'); 
        background-position: center center;
        background-size: cover;
     }

    
    @keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
   }

    .hero-content {
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    /* CAMBIO: Esto sube el texto hacia arriba */
    transform: translateY(-120px);
    font-size: 1.5rem; 
    }

    .hero-content h2 {
    font-size: 3rem; /* Tamaño de escritorio o base */
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }

    
    .service-step {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }
    
    .step-number { margin-right: 0; margin-bottom: 15px; }

    /* Ajustes para la sección de promociones */
    .promo-section {
        padding: 100px 0; /* Más aire arriba y abajo en PC */
    }

    .promo-img {
        /* Ajustamos el ancho para que la foto vertical (816x1020) 
           no se vea gigante en monitores */
        max-width: 700px; 
        
        /* Opcional: Centrarla perfectamente si el contenedor falla */
        margin: 0 auto;
        display: block;
        
        transition: transform 0.3s ease;
    }

    /* Efecto extra para PC: que la promo resalte al pasar el mouse */
    .promo-img:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 50px rgba(255,255,255,0.1);
    }



    /* --- Pop-up WhatsApp --- */
.whatsapp-popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2000;
}
}