/* 
  Black Razor Barber Studio
  Premium Design System - Dark Mode Deluxe
*/

:root {
    /* Premium Color Palette */
    --bg-deep: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-main: #f0f0f0;
    --text-muted: #888888;

    --gold-primary: #d4af37;
    --gold-dim: #aa8c2c;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);

    --overlay-dark: rgba(0, 0, 0, 0.7);

    /* Typography Setup */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --container-width: 1300px;
    /* Wider for more impact */
    --header-height: 90px;
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;

    /* Effects */
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background-image: radial-gradient(circle at 50% 0%, #151515 0%, var(--bg-deep) 60%);
}

/* Grain Overlay for Texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.text-gold {
    color: var(--gold-primary);
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Needed for gradient text */
}

/* Component: Custom Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    border: none;
    z-index: 1;
    border-radius: 6px;
    /* A little rounded as requested */
    text-decoration: none;
    /* Explicitly no underline */
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Navbar: Floating Transparent */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    height: 80px;
    /* Slightly smaller on scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    /* Ensure no underline */
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    /* Ensure vertical centering */
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    /* Slightly bolder for "mejores" visibility */
    color: #ffffff;
    /* Pure white as requested */
    position: relative;
    opacity: 1;
    /* Full opacity */
    transition: color var(--transition-fast);
    text-decoration: none;
    /* Explicitly no underline */
}

.nav-links a:not(.btn):hover {
    opacity: 1;
    color: var(--gold-primary);
}

/* Removed underline pseudo-element */

.menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Richer background image */
    background: url('https://images.unsplash.com/photo-1503951914205-98c4323b7f1e?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for better text readability and mood */
    background: linear-gradient(0deg, var(--bg-deep) 0%, rgba(5, 5, 5, 0.8) 20%, rgba(5, 5, 5, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    /* Responsive giant text */
    line-height: 1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.6s backwards;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-subtitle {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
}

/* About Section */
.about-section {
    background-color: var(--bg-deep);
}

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

.about-text .section-title,
.about-text .section-subtitle {
    text-align: left;
}

.about-content-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.vertical-line {
    width: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

.about-description p {
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition-slow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 500px;
    /* Constrain height */
    object-fit: cover;
    /* Ensure image covers area without distortion */
}

/* Border removed as per user request */

/* Services: Glassmorphism */
.services-section {
    /* Subtle background distinction */
    background: radial-gradient(circle at top right, #111 0%, var(--bg-deep) 100%);
}

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

.service-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    /* Slightly lighter on hover */
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-primary);
    font-weight: 700;
}

/* Experience Section */
.experience-section {
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
    background: #080808;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}

.value-item h4 {
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
}

.value-icon {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, #d4af37, #fced21);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 400px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    cursor: crosshair;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(100%);
    /* Premium monochrome look initial */
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Reviews Section */
.testimonials-section {
    position: relative;
    padding-bottom: 6rem;
}

.reviews-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.google-icon {
    font-size: 1.8rem;
    color: #4285F4;
    /* Google Blue */
}

.google-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.rating {
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
}

.stars-sm {
    color: #fb8c00;
    /* Google Star Color */
    font-size: 0.8rem;
    display: inline-block;
    margin-right: 5px;
}

.review-count {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

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

.review-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: left;
    transition: var(--transition-medium);
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    background: var(--gold-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.reviewer-info h4 {
    color: var(--color-text);
    font-size: 1rem;
    margin: 0;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.source-icon {
    margin-left: auto;
    color: var(--text-muted);
    opacity: 0.5;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    font-style: italic;
    margin-top: 1rem;
}

/* Footer (Existing styles below) */
/* CTA Section */
.cta-section {
    padding: 10rem 0;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1593702295094-aea8c5c13d99?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    background-attachment: fixed;
}

.cta-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    position: absolute;
    inset: 0;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

.cta-small {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.5px;
}

/* Glowing Button Effect */
.btn-glow {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: var(--gold-gradient);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    color: #000;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.btn-glow i {
    vertical-align: middle;
    margin-left: 5px;
}

/* Footer */
.footer {
    background: #020202;
    padding: 6rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Gold Gradient Top Border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.5;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0.9;
}

.footer-col p {
    color: #e0e0e0;
    /* Lighter text for visibility */
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Newsletter styling */
.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    flex-grow: 1;
    padding: 0.5rem 0;
    outline: none;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-icon:hover {
    transform: translateX(5px);
}

/* Links */
.footer-links,
.contact-list {
    list-style: none;
}

.footer-links li,
.contact-list li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #d0d0d0;
    /* Lighter links */
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
    /* Subtle movement */
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #e0e0e0;
}

.whatsapp-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.whatsapp-link:hover {
    color: var(--gold-primary);
}

/* Socials */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.social-links a:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-note {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: #000;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #aaa;
}

.legal-links a {
    color: #aaa;
    margin-left: 2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* Responsive Footer */
/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3,
    .footer-col h4 {
        margin-left: auto;
        margin-right: auto;
        border-bottom: 2px solid var(--gold-primary);
        display: inline-block;
        padding-bottom: 0.5rem;
    }

    .newsletter-form {
        justify-content: center;
    }

    .contact-list li,
    .footer-links li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .legal-links a {
        margin: 0 0.8rem;
        display: inline-block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Core Overrides */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    /* Mobile Navbar Behavior: Transparent to Dark */
    .navbar {
        height: var(--header-height);
        padding: 0;
        background: transparent;
        /* Start transparent like desktop */
        backdrop-filter: none;
        transition: all 0.4s ease;
    }

    .navbar.scrolled {
        background: rgba(5, 5, 5, 0.95);
        /* Dark on scroll */
        backdrop-filter: blur(12px);
    }

    /* Ensure Logo and Toggle Key stays above menu */
    .logo,
    .menu-toggle {
        position: relative;
        z-index: 1001;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .nav-links {
        position: fixed;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        /* Stagger removed for simplicity or add via JS */
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
        position: relative;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 350px;
        order: -1;
        /* Image first on mobile */
    }

    .about-stats {
        justify-content: space-around;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid,
    .gallery-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-text {
        font-size: 1rem;
    }

    .btn-glow {
        padding: 1rem 2rem;
        width: 100%;
        /* Full width button on mobile */
    }
}