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 --- */
.nav-item:active,
.nav-item:focus,
.nav-item:visited {
    color: var(--text-color);
}

/* --- FIX DEFINITIVO DEL RECTÁNGULO AZUL/OUTLINE --- */
.nav-item:focus {
    outline: none; 
}


.btn-turnos {
    border: 1px solid white;
    padding: 5px 8px;
    border-radius: 0;
    transition: all 0.3s;
}

.btn-turnos:hover {
    background-color: white;
    color: black;
}



/* --- Hero Section & Carrusel Ken Burns --- */
.visually-hidden {
    display: none;
}

.hero-section {
    position: relative;
    height: 85vh;
    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:nth-child(1), .carousel-slide:nth-child(3) {
    background-size: contain;
    background-position: center;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    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;
    transform: translateY(-150px);
    font-size: 0.8rem; 
}

.hero-content p{
    transform: translateY(-220px);
    font-size: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content h2 {
    transform: translateY(-220px);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* ----- Nuestros Servicios ----- */
@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); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.service-step.pulsing {
    animation: pulse 1.5s ease-out forwards;
}

.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 --- */
#promociones .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

#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%;
    width: 1000px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.promo-section {
    padding: 50px 15px;
}
.promo-img {
    width: 100%;
}





/* ---- 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;
}

.map-section iframe {
    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;
    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;
    }

    .navbar {
        gap: 15px;
        align-items: center;
    }

    .nav-item {
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s;
    }

    /* Desktop carousel positions */
    .carousel-background .carousel-slide:nth-child(1) {
        background-size: contain;
        background-position: center;
    }
    .carousel-background .carousel-slide:nth-child(3) {
        background-size: contain;
        background-position: center;
    }
    .carousel-background .carousel-slide:nth-child(4) {
        background-position: center 45%;
    }
    .carousel-background .carousel-slide:nth-child(5) {
        background-position: center 35%;
    }

    @keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
   }

    .hero-content {
    transform: translateY(-70px);
    font-size: 1.5rem; 
    }

    .hero-content h2 {
    font-size: 3rem;
    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; 
    }

    .promo-section {
        padding: 100px 0;
    }

    .promo-img {
        max-width: 700px; 
        margin: 0 auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .promo-img:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 50px rgba(255,255,255,0.1);
    }

    .whatsapp-popup {
    bottom: 25px;
    }
}
