/* =========== HECHO CON AMOR =========== */
@font-face {
    font-family: "Nunito Sans";
    src: url("/assets/fonts/NunitoSans/NunitoSans-Italic-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype"),
        url("/assets/fonts/NunitoSans/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype");
}

/* =========== RESET Y BASE =========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    list-style: none;
    font-family: "Nunito Sans", sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
}

.container {
    margin: 0 4.0625rem;
}

/* =========== HEADER =========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4.0625rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    height: 4.5rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(178, 34, 34, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    z-index: 1001;
}

.logo-section h1 {
    font-size: 1.875rem;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo-section:hover h1 {
    background: linear-gradient(135deg, #FFFFF0 0%, #FF4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-section img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.logo-section:hover img {
    border-color: #B22222;
    transform: scale(1.05);
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: #FFFFF0;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #B22222, #FF4500);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover {
    color: #FF8C00;
}

.menu a:hover::after {
    width: 80%;
}

.menu a.active {
    color: #FF4500;
    background: transparent;
}

.menu a.active::after {
    width: 90%;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
}

.iniciarSesion {
    position: relative;
    background: transparent;
    border: 2px solid #FFFFF0;
    color: #FFFFF0;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.iniciarSesion::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 240, 0.1), transparent);
    transition: left 0.6s ease;
}

.iniciarSesion:hover::before {
    left: 100%;
}

.iniciarSesion:hover {
    border-color: #FF4500;
    background: rgba(178, 34, 34, 0.1);
    transform: scale(1.05);
    color: #FF8C00;
    box-shadow: 
        0 8px 25px rgba(178, 34, 34, 0.3),
        0 0 20px rgba(255, 69, 0, 0.2);
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #FFFFF0;
    color: #FFFFF0;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.menu-toggle i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: #FF4500;
    color: #FF4500;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.user-profile-nav {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.profile-icon-nav {
    font-size: 20px;
    color: white;
}

.user-name-nav {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item i {
    font-size: 18px;
    color: #666;
}

/* =========== HERO =========== */
.hero {
    width: 100%;
    height: 100vh;
    background-image: url('../assets/images/photos/HeroImage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: sepia(40%) saturate(150%) hue-rotate(-10deg) brightness(90%);
    opacity: 0.5;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(178, 34, 34, 0.2) 0%,
        rgba(255, 69, 0, 0.15) 50%,
        rgba(178, 34, 34, 0.25) 100%
    );
    z-index: 2;
    mix-blend-mode: multiply;
}

.hero-content {
    padding-left: 4.0625rem;
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FF8C00;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
    position: relative;
    display: inline-block;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF8C00, #B22222);
    border-radius: 2px;
}

.hero-title {
    font-size: 4rem;
    color: #FFFFF0;
    font-weight: 950;
    line-height: 1.1;
    margin: 0 0 3rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-title br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.book-appointment {
    position: relative;
    border: none;
    width: 220px;
    height: 60px;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: #FFFFF0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(178, 34, 34, 0.3),
        0 4px 0 #8B0000,
        inset 0 1px 0 rgba(255, 255, 240, 0.2);
}

.book-appointment::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 240, 0.2), transparent);
    transition: left 0.6s ease;
}

.book-appointment:hover::before {
    left: 100%;
}

.book-appointment:hover {
    background: linear-gradient(135deg, #FF4500 0%, #B22222 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 69, 0, 0.4),
        0 6px 0 #B22222,
        inset 0 1px 0 rgba(255, 255, 240, 0.3);
    letter-spacing: 1.5px;
}

.book-appointment:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(178, 34, 34, 0.4),
        0 2px 0 #8B0000,
        inset 0 1px 0 rgba(255, 255, 240, 0.2);
}

.book-appointment::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.book-appointment:hover::after {
    opacity: 1;
    transform: translateY(-50%) rotate(10deg);
}

.book-appointment span {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

/* =========== SERVICIOS =========== */
.services {
    margin-top: 1rem;
    padding: 1rem 0;
    width: 60%;
}

.services h2 {
    color: #fff;
    font-size: 3rem;
    text-align: left;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
    padding: 1.2rem;
    border: 1px solid #2A2A2A;
    background-color: #1a1a1a;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 80px;
    backdrop-filter: blur(5px);
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.1), transparent);
    transition: left 0.6s ease;
}

.service:hover::before {
    left: 100%;
}

.service:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #B22222;
    box-shadow: 
        0 8px 25px rgba(178, 34, 34, 0.15),
        0 0 0 1px rgba(255, 69, 0, 0.25),
        inset 0 0 15px rgba(178, 34, 34, 0.08);
    backdrop-filter: blur(8px);
}

.service-img {
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1.2rem;
    transition: transform 0.3s ease;
}

.service:hover .service-img {
    transform: scale(1.08);
}

.service-text {
    flex: 1;
    margin-left: 0;
}

.service-text h3 {
    color: #FFFFF0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.service:hover .service-text h3 {
    color: #FF8C00;
}

.service-text span {
    color: #828282;
    font-size: 0.9rem;
    display: block;
    transition: color 0.3s ease;
}

.service:hover .service-text span {
    color: #B22222;
}

.service-arrow {
    color: #828282;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    margin-left: 1rem;
    opacity: 0.7;
}

.service:hover .service-arrow {
    color: #FF4500;
    transform: translateX(5px);
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.4);
}

.service::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, transparent, transparent);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service:hover::after {
    opacity: 1;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 69, 0, 0.08), 
        rgba(178, 34, 34, 0.08), 
        transparent);
}

/* =========== NUEVO DISEÑO PARA CARTAS DE BARBEROS (CORREGIDO) =========== */
.team {
    margin-top: 4rem;
    padding: 2rem 0;
    position: relative;
}

.team .h2team {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: left;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.team .h2team::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #B22222, #FF4500);
    border-radius: 2px;
}

.teambarber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.barber-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(42, 42, 42, 0.8);
    height: 420px;
    display: flex;
    flex-direction: column;
}

.barber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.barber-card:hover::before {
    opacity: 0.7;
}

.barber-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #B22222;
    box-shadow: 
        0 20px 40px rgba(178, 34, 34, 0.25),
        0 0 0 1px rgba(255, 69, 0, 0.3);
}

.barber-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.barber-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(0.2) contrast(1.1);
}

.barber-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0) contrast(1.2);
}

.barber-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(178, 34, 34, 0.1) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.barber-card:hover .barber-card-overlay {
    opacity: 1;
}

.barber-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: #FFFFF0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.barber-card-content {
    position: relative;
    padding: 1.5rem;
    z-index: 2;
    background: rgba(10, 10, 10, 0.9);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.barber-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B22222, #FF4500);
    border-radius: 0 0 3px 3px;
}

.barber-details {
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    flex: 1;
}

.barber-details h2 {
    color: #FFFFF0;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.barber-details h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF8C00, #B22222);
    transition: width 0.4s ease;
}

.barber-card:hover .barber-details h2::after {
    width: 100%;
}

.barber-details h3 {
    color: #BEBEBE;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.barber-card:hover .barber-details h3 {
    color: #FF8C00;
}

.barber-social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 0.5rem 0;
}

.barber-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 240, 0.05);
    border: 1px solid rgba(255, 255, 240, 0.1);
    color: #FFFFF0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 11;
    pointer-events: auto;
}

/* Prevenir que el clic en los iconos active el JS de la card */
.barber-social a,
.barber-social a * {
    pointer-events: auto;
}

/* Asegurar que el resto de la card no interfiera con los iconos */
.barber-card-content > *:not(.barber-social) {
    pointer-events: none;
}

.barber-card-image {
    pointer-events: none;
}

.barber-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.4), transparent);
    transition: left 0.5s ease;
}

.barber-social a:hover::before {
    left: 100%;
}

.barber-social a:hover {
    background: #B22222;
    border-color: #B22222;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.4);
}

.barber-social i {
    font-size: 1.2rem;
    position: relative;
    z-index: 12;
}

/* Efectos especiales para cada red social */
.barber-social a:nth-child(1):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.barber-social a:nth-child(2):hover {
    background: #3b5998;
    border-color: transparent;
}

.barber-social a:nth-child(3):hover {
    background: #25D366;
    border-color: transparent;
}

/* Efecto de brillo en el borde al hacer hover */
.barber-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        transparent, 
        rgba(255, 69, 0, 0.3), 
        rgba(178, 34, 34, 0.3), 
        transparent, 
        transparent);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.barber-card:hover::after {
    opacity: 1;
}

/* =========== RESPONSIVE BARBER CARDS (CORREGIDO) =========== */
@media (max-width: 1024px) {
    .teambarber-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .barber-card {
        height: 380px;
    }
    
    .barber-card-image {
        height: 220px;
    }
    
    .barber-card-content {
        padding: 1.2rem;
    }
    
    .barber-details {
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 768px) {
    .team .h2team {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .team .h2team::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .teambarber-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        justify-items: center;
    }
    
    .barber-card {
        height: 280px; /* Altura fija para móvil */
        width: 100%;
        max-width: 320px;
    }
    
    .barber-card-image {
        height: 180px; /* Imagen más pequeña en móvil */
    }
    
    .barber-card-content {
        padding: 1rem;
        height: 100px; /* Altura fija para el contenido */
        overflow: hidden; /* Prevenir que el contenido se desborde */
    }
    
    .barber-details {
        margin-bottom: 0;
        text-align: center;
        height: 100%; /* Ocupar toda la altura disponible */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrar verticalmente */
    }
    
    .barber-details h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .barber-details h3 {
        font-size: 0.9rem;
        display: none; /* Ocultar descripción en móvil */
    }
    
    .barber-social {
        display: none; /* Ocultar iconos en móvil */
    }
}

@media (max-width: 480px) {
    .team .h2team {
        font-size: 2rem;
    }
    
    .teambarber-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .barber-card {
        height: 260px; /* Más compacto en móviles pequeños */
        max-width: 100%;
        width: 100%;
    }
    
    .barber-card-image {
        height: 160px;
    }
    
    .barber-card-content {
        padding: 0.8rem;
        height: 100px;
    }
    
    .barber-details {
        margin-bottom: 0;
        padding: 0 0.3rem;
    }
    
    .barber-details h2 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .barber-details h3 {
        display: none;
    }
    
    .barber-social {
        display: none;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 380px) {
    .teambarber-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .barber-card {
        height: 240px; /* Muy compacto para pantallas pequeñas */
        max-width: 100%;
        margin: 0 auto;
    }
    
    .barber-card-image {
        height: 140px;
    }
    
    .barber-card-content {
        padding: 0.6rem;
        height: 100px;
    }
    
    .barber-details h2 {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }
    
    .barber-details h3 {
        display: none;
    }
    
    .barber-social {
        display: none;
    }
}

/* Animación de entrada para las tarjetas */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.barber-card {
    animation: cardFadeIn 0.6s ease forwards;
}

/* Retraso escalonado para la animación de entrada */
.barber-card:nth-child(1) { animation-delay: 0.1s; }
.barber-card:nth-child(2) { animation-delay: 0.2s; }
.barber-card:nth-child(3) { animation-delay: 0.3s; }
.barber-card:nth-child(4) { animation-delay: 0.4s; }
.barber-card:nth-child(5) { animation-delay: 0.5s; }
.barber-card:nth-child(6) { animation-delay: 0.6s; }

/* Mejorar la indicación visual de qué áreas son clickeables */
.barber-card-image,
.barber-details {
    cursor: pointer;
    transition: all 0.3s ease;
}

.barber-card-image:hover,
.barber-details:hover {
    transform: translateY(-2px);
}

.barber-social a {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efecto hover más pronunciado para los iconos sociales */
.barber-social a:hover {
    transform: scale(1.1) translateY(-2px);
}

/* =========== FOOTER =========== */
.footer {
    color: #FFFFF0;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid #2A2A2A;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #B22222, transparent);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    grid-column: 1;
    grid-row: 1;
}

.logo-section img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid #B22222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
    border-color: #FF4500;
}

.logo-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    grid-column: 2;
    grid-row: 1;
    margin: 1rem 0;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 240, 0.05);
    border: 1px solid rgba(178, 34, 34, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.4), transparent);
    transition: left 0.5s ease;
}

.social-media a:hover::before {
    left: 100%;
}

.social-media a:hover {
    background: rgba(178, 34, 34, 0.2);
    border-color: #B22222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.3);
}

.social-media i {
    font-size: 1.5rem;
    color: #FFFFF0;
    transition: color 0.3s ease;
}

.social-media a:hover i {
    color: #B22222;
}

.footer-text {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 240, 0.1);
    border-bottom: 1px solid rgba(255, 240, 240, 0.1);
}

.footer-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 240, 0.8);
    margin: 0;
}

.copyright {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    padding-top: 1.5rem;
}

.copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 240, 0.6);
    margin: 0;
}

/* =========== MODALES =========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid #2A2A2A;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-title {
    color: #FFFFF0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-message {
    color: #828282;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: #FFFFF0;
}

.modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.8) 0%, rgba(178, 34, 34, 0.8) 100%);
    transform: translateY(-1px);
}

.modal-btn.cancel {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #2A2A2A;
    color: #FFFFF0;
}

.modal-btn.cancel:hover {
    background: rgba(42, 42, 42, 1);
    border-color: #B22222;
    transform: translateY(-2px);
}

.modal-success .modal-title {
    background: linear-gradient(135deg, #FFFFF0 0%, rgba(0, 170, 0, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-success .modal-btn.confirm {
    background: linear-gradient(135deg, rgba(0, 170, 0, 0.9) 0%, rgba(0, 119, 0, 0.9) 100%);
}

.modal-success .modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.8) 0%, rgba(0, 170, 0, 0.8) 100%);
}

.modal-info .modal-title {
    background: linear-gradient(135deg, #FFFFF0 0%, rgba(0, 136, 255, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-info .modal-btn.confirm {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
}

.modal-info .modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.8) 0%, rgba(0, 136, 255, 0.8) 100%);
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .menu a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero {
        justify-content: center; /* Centrado para tablet */
    }
    
    .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        text-align: center;
    }
    
    .hero-subtitle::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .book-appointment {
        margin: 0 auto;
    }
    
    .services {
        width: 80%;
    }
    
    .teambarber-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .team .h2team {
        font-size: 2.5rem;
    }
    
    .barber-card {
        height: 250px;
    }
    
    .barber-card img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
        justify-content: flex-start;
    }
    
    .menu-toggle {
        display: flex;
        order: 1;
        margin-right: 1rem;
    }
    
    .logo-section {
        order: 2;
        position: static;
        transform: none;
        margin-right: auto;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-section img {
        width: 3rem;
        height: 3rem;
    }
    
    .menu {
        order: 3;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(178, 34, 34, 0.3);
        border-bottom: 1px solid rgba(178, 34, 34, 0.3);
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }
    
    .menu.active .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .menu.active .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 240, 0.1);
    }
    
    .menu.active .nav-links a:last-child {
        border-bottom: none;
    }
    
    .menu.active .nav-links a:hover {
        background: rgba(178, 34, 34, 0.2);
    }
    
    .menu.active .nav-links a::after {
        display: none;
    }
    
    .user-profile-nav {
        order: 1;
        position: relative;
    }
    
    .user-profile-btn {
        padding: 6px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .user-name-nav {
        display: none;
    }
    
    .user-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 200px;
        min-width: unset;
        border-radius: 12px;
        margin-top: 8px;
        transform: translateY(-10px);
    }
    
    .user-dropdown.active {
        transform: translateY(0);
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .dropdown-item i {
        font-size: 18px;
    }
    
    .user-dropdown {
        z-index: 1002;
    }
    
    .menu.active .user-profile-nav {
        position: relative;
        width: auto;
        margin: 0.5rem 0;
    }
    
    .menu.active .user-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
    }
    
    .iniciarSesion {
        order: 2;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .iniciarSesion a {
        font-size: 0.9rem;
    }
    
    .menu.active .user-profile-nav,
    .menu.active .iniciarSesion {
        display: none;
    }
    
    .navbar.scrolled {
        height: 4rem;
    }
    
    .navbar.scrolled .logo-section img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .hero {
        justify-content: center; /* Centrado para móviles */
        padding-top: 6rem; /* Reducimos padding superior en móviles */
    }
    
    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .hero-subtitle::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .book-appointment {
        width: 200px;
        height: 55px;
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .hero-video {
        filter: sepia(35%) saturate(140%) hue-rotate(-8deg) brightness(85%);
        opacity: 0.6;
    }
    
    .services {
        width: 100%;
        padding: 1rem 0;
    }
    
    .services h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .service {
        margin: 1rem 1rem;
        padding: 1rem;
        min-height: 70px;
    }
    
    .teambarber-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .team .h2team {
        font-size: 2.5rem;
    }
    
    .barber-card {
        height: 250px;
    }
    
    .barber-card img {
        height: 160px;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1.5rem;
        text-align: center;
    }
    
    .logo-section {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }
    
    .social-media {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-text {
        grid-column: 1;
        grid-row: 3;
    }
    
    .copyright {
        grid-column: 1;
        grid-row: 4;
    }
    
    .logo-section h1 {
        font-size: 1.5rem;
    }
    
    .social-media {
        gap: 1rem;
    }
    
    .social-media a {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .social-media i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .logo-section h1 {
        font-size: 1.5rem;
    }
    
    .logo-section img {
        width: 3rem;
        height: 3rem;
    }
    
    .menu-toggle {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.8rem;
    }
    
    .menu-toggle i {
        font-size: 1.3rem;
    }
    
    .user-profile-btn {
        padding: 5px;
    }
    
    .profile-icon-nav {
        font-size: 1.1rem;
    }
    
    .user-dropdown {
        width: 180px;
        right: 0;
    }
    
    .dropdown-item {
        padding: 10px 14px;
    }
    
    .iniciarSesion {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .iniciarSesion a {
        font-size: 0.8rem;
    }
    
    .hero {
        justify-content: center;
        padding-top: 5rem; /* Menos padding en móviles muy pequeños */
    }
    
    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        text-align: center;
    }
    
    .book-appointment {
        width: 180px;
        height: 50px;
        font-size: 0.9rem;
        margin: 0 auto;
    }
    
    .services {
        width: 100%;
        padding: 1rem 0;
    }
    
    .services h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .service {
        padding: 1rem;
        margin: 1rem 0.5rem;
        min-height: 70px;
        width: calc(100% - 1rem);
    }
    
    .service-img {
        width: 3.5rem;
        height: 3.5rem;
        margin-right: 1rem;
    }
    
    .service-text h3 {
        font-size: 1rem;
    }
    
    .service-text span {
        font-size: 0.85rem;
    }
    
    .service-arrow {
        font-size: 1.3rem;
        margin-left: 0.5rem;
    }
    
    .teambarber-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team .h2team {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .barber-card {
        height: 220px;
    }
    
    .barber-card img {
        height: 140px;
    }
    
    .barber-details {
        padding: 1rem;
    }
    
    .barber-details h2 {
        font-size: 1.3rem;
    }
    
    .barber-details h3 {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-section img {
        width: 3rem;
        height: 3rem;
    }
    
    .logo-section h1 {
        font-size: 1.25rem;
    }
    
    .footer-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0 0.8rem;
    }
    
    .menu {
        gap: 0.5rem;
    }
    
    .menu-toggle {
        width: 2.3rem;
        height: 2.3rem;
        margin-right: 0.6rem;
    }
    
    .logo-section img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .user-dropdown {
        width: 160px;
        right: -10px;
    }
    
    .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .iniciarSesion {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .iniciarSesion a {
        font-size: 0.75rem;
    }
    
    .services {
        width: 100%;
    }
    
    .service {
        margin: 0.8rem 0.3rem;
        width: calc(100% - 0.6rem);
    }
    
    .services h2 {
        padding: 0 0.5rem;
    }
}

/* =========== USER PROFILE DROPDOWN STYLES =========== */
.user-profile-nav {
    position: relative;
    display: none; /* Se mostrará via JS cuando el usuario inicie sesión */
}

.user-profile-nav.active {
    display: block;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(178, 34, 34, 0.3);
    transform: translateY(-1px);
}

.user-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: none;
}

.user-profile-img.active {
    display: block;
}

.profile-icon-nav {
    font-size: 20px;
    color: #FFFFF0;
    transition: color 0.3s ease;
}

.user-profile-btn:hover .profile-icon-nav {
    color: #FF8C00;
}

.user-name-nav {
    color: #FFFFF0;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.user-profile-btn:hover .user-name-nav {
    color: #FF8C00;
}

.user-profile-btn i:last-child {
    font-size: 16px;
    color: #FFFFF0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-profile-btn:hover i:last-child {
    color: #FF8C00;
}

.user-profile-btn.active i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(178, 34, 34, 0.1), transparent);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown.active::before {
    opacity: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #FFFFF0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 240, 0.05);
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: rgba(178, 34, 34, 0.1);
    padding-left: 20px;
}

.dropdown-item i {
    font-size: 18px;
    color: #FF8C00;
    transition: color 0.3s ease;
    min-width: 20px;
}

.dropdown-item:hover i {
    color: #FF4500;
    transform: scale(1.1);
}

.dropdown-item span {
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.dropdown-item:hover span {
    color: #FF8C00;
}

#logoutBtn {
    color: #ff6b6b;
}

#logoutBtn i {
    color: #ff6b6b;
}

#logoutBtn:hover {
    background: rgba(255, 107, 107, 0.1);
}

#logoutBtn:hover span {
    color: #ff6b6b;
}

/* =========== RESPONSIVE USER PROFILE =========== */
@media (max-width: 768px) {
    .user-profile-nav {
        position: relative;
    }
    
    .user-profile-btn {
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Ocultar nombre en móvil, mostrar solo icono */
    .user-name-nav {
        display: none;
    }
    
    .user-profile-btn {
        gap: 6px;
    }
    
    .user-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 200px;
        min-width: unset;
        border-radius: 12px;
        margin-top: 8px;
        transform: translateY(-10px);
    }
    
    .user-dropdown.active {
        transform: translateY(0);
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .dropdown-item i {
        font-size: 18px;
    }
    
    /* Asegurar que el dropdown esté por encima del menú móvil */
    .user-dropdown {
        z-index: 1002;
    }
    
    /* Posicionamiento específico cuando el menú móvil está abierto */
    .menu.active .user-profile-nav {
        position: relative;
        width: auto;
        margin: 0.5rem 0;
    }
    
    .menu.active .user-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
    }
}

@media (max-width: 480px) {
    .user-profile-btn {
        padding: 5px 10px;
    }
    
    .profile-icon-nav {
        font-size: 18px;
    }
    
    .user-profile-btn i:last-child {
        font-size: 14px;
    }
    
    .user-dropdown {
        width: 180px;
        right: 0;
    }
    
    .dropdown-item {
        padding: 10px 14px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .user-dropdown {
        width: 160px;
        right: -10px; /* Ajuste para que no se salga de la pantalla */
    }
    
    .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* =========== MENU TOGGLE FIX =========== */
/* Asegurar que solo haya un menu-toggle */
.menu-toggle {
    display: none; /* Ocultar por defecto en desktop */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* =========== LOGIN BUTTON HIDE WHEN LOGGED IN =========== */
#loginButton.hidden {
    display: none;
}


/* =========== HEADER REORGANIZADO PARA MÓVIL =========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4.0625rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #FFFFF0;
    color: #FFFFF0;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    order: 1;
}

.menu-toggle i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: #FF4500;
    color: #FF4500;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    z-index: 1001;
    order: 2; 
}

.logo-text {
    font-size: 1.875rem;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo-section:hover .logo-text {
    background: linear-gradient(135deg, #FFFFF0 0%, #FF4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-section img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.logo-section:hover img {
    border-color: #B22222;
    transform: scale(1.05);
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s ease;
    order: 3;
}

/* =========== RESPONSIVE HEADER REORGANIZADO =========== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
        justify-content: flex-start; /* Cambiado de space-between a flex-start */
    }
    
    /* Mostrar menu toggle en móvil */
    .menu-toggle {
        display: flex;
        order: 1;
        margin-right: 1rem; /* Espacio entre menu toggle y logo */
    }
    
    /* Logo section en móvil - al lado del menu toggle */
    .logo-section {
        order: 2;
        position: static; /* Quitamos el posicionamiento absoluto */
        transform: none; /* Quitamos el transform */
        margin-right: auto; /* Empuja el resto de elementos a la derecha */
    }
    
    .logo-text {
        display: none; /* Ocultar texto en móvil */
    }
    
    .logo-section img {
        width: 3rem;
        height: 3rem;
    }
    
    /* Menu - elementos a la derecha */
    .menu {
        order: 3;
        gap: 1rem;
    }
    
    /* Ocultar nav links por defecto en móvil */
    .nav-links {
        display: none;
    }
    
    /* Mostrar nav links cuando el menú está activo */
    .menu.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(178, 34, 34, 0.3);
        border-bottom: 1px solid rgba(178, 34, 34, 0.3);
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }
    
    .menu.active .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .menu.active .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 240, 0.1);
    }
    
    .menu.active .nav-links a:last-child {
        border-bottom: none;
    }
    
    .menu.active .nav-links a:hover {
        background: rgba(178, 34, 34, 0.2);
    }
    
    .menu.active .nav-links a::after {
        display: none;
    }
    
    /* User profile en móvil */
    .user-profile-nav {
        order: 1;
    }
    
    .user-profile-btn {
        padding: 6px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .user-name-nav {
        display: none;
    }
    
    /* Botón iniciar sesión en móvil */
    .iniciarSesion {
        order: 2;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .iniciarSesion a {
        font-size: 0.9rem;
    }
    
    /* Ajustes cuando el menú móvil está activo */
    .menu.active .user-profile-nav,
    .menu.active .iniciarSesion {
        display: none;
    }
    
    .navbar.scrolled {
        height: 4rem;
    }
    
    .navbar.scrolled .logo-section img {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .menu-toggle {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.8rem;
    }
    
    .menu-toggle i {
        font-size: 1.3rem;
    }
    
    .logo-section img {
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .user-profile-btn {
        padding: 5px;
    }
    
    .profile-icon-nav {
        font-size: 1.1rem;
    }
    
    .iniciarSesion {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .iniciarSesion a {
        font-size: 0.8rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .navbar {
        padding: 0 0.8rem;
    }
    
    .menu {
        gap: 0.5rem;
    }
    
    .menu-toggle {
        width: 2.3rem;
        height: 2.3rem;
        margin-right: 0.6rem;
    }
    
    .logo-section img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .iniciarSesion {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .iniciarSesion a {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0 0.8rem;
    }
    
    .menu {
        gap: 0.5rem;
    }
    
    .menu-toggle {
        width: 2.3rem;
        height: 2.3rem;
    }
    
    .logo-section img {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* =========== BARBERSHOP INFO PANEL (DESKTOP) =========== */
.barbershop-info-panel {
    position: fixed;
    right: 4.0625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.barbershop-info-panel.active {
    opacity: 1;
    visibility: visible;
}

/* Mostrar automáticamente el panel de información en modo reserva solo en servicios */
.container.hidden-content .barbershop-info-panel.services-active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.container.hidden-content .mobile-info-panel {
    display: block;
}

/* Ocultar panel cuando no está en servicios */
.container.hidden-content .barbershop-info-panel:not(.services-active) {
    opacity: 0;
    visibility: hidden;
    display: none;
}
.info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(178, 34, 34, 0.2);
}

.info-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #B22222;
    transition: all 0.3s ease;
}

.info-logo img:hover {
    transform: scale(1.05);
    border-color: #FF4500;
}

.info-logo h2 {
    color: #FFFFF0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.info-status {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    background: rgba(178, 34, 34, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(178, 34, 34, 0.2);
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(178, 34, 34, 0.15);
    border-color: rgba(178, 34, 34, 0.4);
}

.status-item i {
    font-size: 1.3rem;
    color: #FF8C00;
    background: rgba(178, 34, 34, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.status-text {
    color: #FFFFF0;
    font-weight: 600;
    font-size: 0.95rem;
}

.hours {
    color: #BEBEBE;
    font-size: 0.85rem;
}

.info-address {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem;
    background: rgba(255, 255, 240, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 240, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-address:hover {
    background: rgba(178, 34, 34, 0.1);
    border-color: rgba(178, 34, 34, 0.3);
    transform: translateY(-2px);
}

.info-address i {
    font-size: 1.3rem;
    color: #B22222;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.address-details span {
    color: #FFFFF0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.info-address:hover .address-details span {
    color: #FF8C00;
}

.info-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 240, 0.05);
}

.contact-item i {
    font-size: 1.1rem;
    color: #B22222;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(178, 34, 34, 0.1);
    flex-shrink: 0;
}

.contact-item span {
    color: #FFFFF0;
    font-size: 0.9rem;
}

.directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: #FFFFF0;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}

.directions-btn:hover {
    background: linear-gradient(135deg, #FF4500 0%, #B22222 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(178, 34, 34, 0.4);
}

.directions-btn i {
    font-size: 1.1rem;
}

/* =========== MOBILE INFO PANEL =========== */
.mobile-info-panel {
    display: none;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mobile-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.mobile-status i {
    font-size: 1.2rem;
    color: #FF8C00;
    background: rgba(178, 34, 34, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-status-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-status-text {
    color: #FFFFF0;
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-hours {
    color: #BEBEBE;
    font-size: 0.8rem;
}

.mobile-contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    justify-content: center;
}

.mobile-contact i {
    font-size: 1.1rem;
    color: #B22222;
    background: rgba(178, 34, 34, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-contact span {
    color: #FFFFF0;
    font-size: 0.9rem;
}

.mobile-directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: #FFFFF0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-directions-btn:hover {
    background: linear-gradient(135deg, #FF4500 0%, #B22222 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
}

.mobile-directions-btn i {
    font-size: 1rem;
}

/* =========== RESPONSIVE PANEL =========== */
@media (max-width: 1200px) {
    .barbershop-info-panel {
        width: 320px;
    }
}

@media (max-width: 1024px) {
    .barbershop-info-panel {
        width: 300px;
        right: 2rem;
    }
}

/* Mostrar panel móvil y ocultar desktop en móvil */
@media (max-width: 768px) {
    .barbershop-info-panel {
        display: none !important;
    }
    
    .mobile-info-panel {
        display: block;
    }
    
    .services h2 {
        margin-top: 0;
    }
    
    /* Ajustes para pantallas pequeñas */
    @media (max-width: 480px) {
        .mobile-info-content {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }
        
        .mobile-status,
        .mobile-contact {
            flex: none;
            justify-content: center;
            width: 100%;
        }
        
        .mobile-status {
            order: 1;
        }
        
        .mobile-contact {
            order: 2;
        }
        
        .mobile-directions-btn {
            order: 3;
            width: 100%;
            max-width: 200px;
            margin: 0 auto;
        }
        
        .mobile-status-details {
            align-items: center;
        }
    }
    
    /* Ajustes para pantallas muy pequeñas */
    @media (max-width: 360px) {
        .mobile-info-panel {
            padding: 0.8rem;
        }
        
        .mobile-status i,
        .mobile-contact i {
            width: 30px;
            height: 30px;
            font-size: 1rem;
        }
        
        .mobile-status-text {
            font-size: 0.85rem;
        }
        
        .mobile-hours {
            font-size: 0.75rem;
        }
        
        .mobile-contact span {
            font-size: 0.85rem;
        }
        
        .mobile-directions-btn {
            padding: 0.5rem 0.8rem;
            font-size: 0.8rem;
        }
    }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1600px) {
    .barbershop-info-panel {
        width: 380px;
    }
}

/* Breakpoint específico para evitar superposición */
@media (min-width: 769px) and (max-width: 900px) {
    .barbershop-info-panel {
        right: 1rem;
        width: 280px;
    }
}


/* =========== BACK TO HOME BUTTON =========== */
.back-to-home {
    position: absolute;
    top: 2rem;
    right: 4.0625rem;
    z-index: 1000;
    animation: fadeInDown 0.5s ease;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: #FFFFF0;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #FF4500 0%, #B22222 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.4);
}

.back-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* =========== HIDE/SHOW SECTIONS =========== */
.hero,
.footer,
.navbar {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.hidden,
.footer.hidden,
.navbar.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

.container {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.container.hidden-content {
    margin-top: 0;
    animation: showServicesOnly 0.5s ease;
}

.container.hidden-content .services,
.container.hidden-content .team {
    opacity: 1;
    visibility: visible;
    margin-top: 2rem;
}

.container.hidden-content .services {
    padding-top: 2rem;
}

.container.hidden-content .hero,
.container.hidden-content .footer,
.container.hidden-content .navbar {
    display: none;
}

/* Mostrar automáticamente el panel de información en modo reserva */
.container.hidden-content .barbershop-info-panel {
    opacity: 1;
    visibility: visible;
    display: block;
}

.container.hidden-content .mobile-info-panel {
    display: block;
}

/* Ajustar el título de servicios cuando está solo */
.container.hidden-content .services h2 {
    margin-top: 0;
    padding-top: 0;
}

/* Animación para mostrar solo servicios y equipo */
@keyframes showServicesOnly {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========== RESPONSIVE BACK BUTTON =========== */
@media (max-width: 768px) {
    .back-to-home {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        left: auto;
    }
    
    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .back-btn i {
        font-size: 1.1rem;
    }
    
    .container.hidden-content .services {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .back-to-home {
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        left: auto;
    }
    
    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .back-btn span {
        display: none; /* Ocultar texto en móvil muy pequeño */
    }
    
    .back-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .container.hidden-content .services {
        padding-top: 3rem;
    }
}

/* Animación de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.servicesh2 {
    position: relative;
}

.servicesh2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #B22222, #FF4500);
    border-radius: 2px;
}