/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corrección de problemas de cursor */
* {
    cursor: auto !important;
}

a, button, input, select, textarea, [role="button"] {
    cursor: pointer !important;
}

a:hover, button:hover, input:hover, select:hover, textarea:hover, [role="button"]:hover {
    cursor: pointer !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #d4af37;
    margin: 0;
}

.nav-logo span {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* ===== BARBER POLE MOBILE STYLES ===== */
/* Optimizado para dispositivos móviles con correcciones de rendimiento */

.barber-pole-wrapper {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
    will-change: transform; /* Optimización de rendimiento */
}

/* Desactivar flotación cuando se aplica la clase desktop-static */
.barber-pole-desktop-static.barber-pole-wrapper {
    animation: none !important;
}

/* Mantener animación de rayas cuando se desactiva la flotación */
.barber-pole-desktop-static .barber-pole-stripe {
    animation: scrollStripes 3s linear infinite !important;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateY(0px); }
    50% { transform: translateY(-50%) translateY(-10px); }
}

.barber-pole {
    width: 60px;
    height: 159px;
    position: relative;
    margin: 20px 0;
}

.barber-pole-glass {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        inset 0 0 25px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    overflow: hidden;
    position: relative;
}

.barber-pole-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.25) 0%, transparent 50%, rgba(255,255,255,0.15) 100%);
    pointer-events: none;
    border-radius: 30px;
}

.barber-pole-glass::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 27px;
    pointer-events: none;
}

.barber-pole-rotating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
}

.barber-pole-stripe {
    position: absolute;
    width: 100%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        #ff0000 0px,
        #ff0000 12px,
        #ffffff 12px,
        #ffffff 24px,
        #0066cc 24px,
        #0066cc 36px,
        #ffffff 36px,
        #ffffff 48px
    );
    animation: scrollStripes 3s linear infinite;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(0, 0, 0, 0.15);
    will-change: background-position; /* Optimización de rendimiento */
}

@keyframes scrollStripes {
    from { 
        background-position: 0 0; 
    }
    to { 
        background-position: 0 100px; 
    }
}

.barber-pole-top {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #f0f0f0);
    border-radius: 30px 30px 8px 8px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    border: 3px solid #999;
    z-index: 10;
}

.barber-pole-bottom {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #f0f0f0);
    border-radius: 8px 8px 30px 30px;
    box-shadow: 
        0 -3px 10px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(255, 255, 255, 0.6),
        inset 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 3px solid #999;
    z-index: 10;
}

.barber-pole-base {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a, #0a0a0a);
    border-radius: 35px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border: 2px solid #444;
    z-index: 5;
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 5;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    opacity: 0;
    animation: slideInUp 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d4af37;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #d4af37;
    margin-top: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #000;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #d4af37;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #1a1a1a;
    color: #fff;
}

.contact .section-title {
    color: #fff;
}

.contact .section-subtitle {
    color: #ccc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #d4af37;
    margin-top: 0.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.contact-item p {
    color: #ccc;
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-right: 15px;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.form-group input::placeholder {
    color: #ccc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #d4af37;
    margin: 0;
}

.footer-logo span {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .barber-pole-wrapper {
        position: absolute;
        top: 15%;
        left: 5%;
        transform: translateY(0);
        z-index: 10;
        animation: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    /* Estilos específicos para el formulario en móviles */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        padding-right: 15px;
        cursor: pointer;
    }
    
    .form-group select:focus {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .form-group select option {
        background: #1a1a1a;
        color: #fff;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Estilos mejorados para el formulario en pantallas pequeñas */
    .contact-form {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 15px;
        font-size: 16px; /* Previene zoom en iOS */
        border-radius: 10px;
    }
    
    .form-group select {
        padding-right: 15px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .form-group select option {
        background: #1a1a1a;
        color: #fff;
        padding: 12px;
    }
    
    .barber-pole {
        width: 35px;
        height: 80px;
        margin: 15px 0;
    }

    .barber-pole-glass {
        border-radius: 17px;
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .barber-pole-glass::before {
        border-radius: 17px;
    }

    .barber-pole-glass::after {
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
        border-radius: 15px;
    }

    .barber-pole-stripe {
        background: repeating-linear-gradient(
            45deg,
            #ff0000 0px,
            #ff0000 11px,
            #ffffff 11px,
            #ffffff 22px,
            #0066cc 22px,
            #0066cc 33px,
            #ffffff 33px,
            #ffffff 44px
        );
    }

    .barber-pole-top {
        top: -12px;
        width: 35px;
        height: 20px;
        border-radius: 17px 17px 4px 4px;
        border: 1px solid #999;
    }

    .barber-pole-bottom {
        bottom: -12px;
        width: 35px;
        height: 20px;
        border-radius: 4px 4px 17px 17px;
        border: 1px solid #999;
    }

    .barber-pole-base {
        bottom: -20px;
        width: 45px;
        height: 12px;
        border-radius: 22px;
        border: 1px solid #444;
    }
}

/* ===== EXTRA SMALL SCREENS ===== */
@media (max-width: 320px) {
    .barber-pole {
        width: 30px;
        height: 70px;
        margin: 10px 0;
    }

    .barber-pole-glass {
        border-radius: 15px;
    }

    .barber-pole-glass::before {
        border-radius: 15px;
    }

    .barber-pole-glass::after {
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
        border-radius: 13px;
    }

    .barber-pole-stripe {
        background: repeating-linear-gradient(
            45deg,
            #ff0000 0px,
            #ff0000 10px,
            #ffffff 10px,
            #ffffff 20px,
            #0066cc 20px,
            #0066cc 30px,
            #ffffff 30px,
            #ffffff 40px
        );
    }

    .barber-pole-top {
        top: -10px;
        width: 30px;
        height: 18px;
        border-radius: 15px 15px 3px 3px;
    }

    .barber-pole-bottom {
        bottom: -10px;
        width: 30px;
        height: 18px;
        border-radius: 3px 3px 15px 15px;
    }

    .barber-pole-base {
        bottom: -18px;
        width: 40px;
        height: 10px;
        border-radius: 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .barber-pole-wrapper {
        animation: none;
    }
    
    .barber-pole-stripe {
        animation: none;
    }
}

/* ===== UTILITY CLASSES ===== */
.barber-pole-static {
    animation: none !important;
}

.barber-pole-no-float .barber-pole-wrapper {
    animation: none;
}

.barber-pole-no-stripes .barber-pole-stripe {
    animation: none;
}

/* Animaciones adicionales */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efectos de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos para modo oscuro */
@media (prefers-color-scheme: dark) {
    .services {
        background: #1a1a1a;
    }
    
    .service-card {
        background: #2d2d2d;
        color: #fff;
    }
    
    .gallery {
        background: #1a1a1a;
    }
    
    .about {
        background: #1a1a1a;
    }
}
