﻿/* ═══════════════════════════════════════
   HOME.CSS — Hero, Services, Testimonials
═══════════════════════════════════════ */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#nav, .marquee-wrap, .section, .info-strip, .cta-section, footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ── HERO ── */
.hero {
    height: 100vh;
    min-height: 700px;
    display: grid;
    grid-template-columns: 58% 42%;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

/* Photo panel */
.hero-photo {
    position: relative;
    overflow: hidden;
    background: var(--black3);
}

.hero-photo-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 75%, var(--black) 100%), linear-gradient(to top, rgba(7,7,10,.5) 0%, transparent 40%), linear-gradient(160deg, #18160e 0%, #22201a 30%, #16140c 60%, #0e0c08 100%);
    position: relative;
}

    .hero-photo-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 40% 40%, rgba(201,168,76,.06) 0%, transparent 55%);
    }

/* Vertical text */
.hero-vert {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245,242,236,.2);
    white-space: nowrap;
}

/* Issue tag */
.hero-issue {
    position: absolute;
    top: 28px;
    left: 48px;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245,242,236,.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .hero-issue::before {
        content: '';
        width: 20px;
        height: 1px;
        background: rgba(245,242,236,.25);
    }

/* Floating tags */
.hero-tags {
    position: absolute;
    bottom: 80px;
    left: 48px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeUp 1s 0.9s ease forwards;
    opacity: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(7,7,10,.75);
    border: 1px solid rgba(201,168,76,.2);
    backdrop-filter: blur(12px);
    padding: 8px 14px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--cream2);
    width: fit-content;
}

    .hero-tag span {
        color: var(--gold);
        font-size: 9px;
    }

/* Text panel */
.hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 88px 48px 60px 36px;
    border-left: 1px solid rgba(201,168,76,.08);
}

.hero-eyebrow {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUp 0.8s 0.1s ease forwards;
    opacity: 0;
}

    .hero-eyebrow::before {
        content: '';
        width: 28px;
        height: 1px;
        background: var(--gold);
    }

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(38px, 3.8vw, 56px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s 0.2s ease forwards;
    opacity: 0;
}

    .hero-title i {
        font-style: italic;
        color: var(--gold2);
    }

.hero-divider {
    width: 32px;
    height: 1px;
    background: rgba(201,168,76,.4);
    margin-bottom: 28px;
    animation: fadeUp 0.8s 0.3s ease forwards;
    opacity: 0;
}

.hero-desc {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(245,242,236,.45);
    margin-bottom: 40px;
    animation: fadeUp 0.8s 0.4s ease forwards;
    opacity: 0;
}

.hero-text .btn {
    animation: fadeUp 0.8s 0.5s ease forwards;
    opacity: 0;
    width: fit-content;
}

/* Stats */
.hero-stats {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid rgba(201,168,76,.1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeUp 0.8s 0.65s ease forwards;
    opacity: 0;
}

.hero-stat-num {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fog);
    margin-top: 2px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245,242,236,.2);
    animation: fadeUp 1s 1.2s ease forwards;
    opacity: 0;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(245,242,236,.15);
    position: relative;
    overflow: hidden;
}

    .scroll-line::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 1px;
        background: var(--gold);
        animation: scanline 2s ease-in-out infinite;
    }

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ── SERVICES SECTION ── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.services-list {
    border-top: 1px solid rgba(255,255,255,.05);
}

/* ── ABOUT SECTION (desktop) ── */
.about-section {
    background: var(--black2);
}

    .about-section .container {
        max-width: 1400px;
    }

.about-divider {
    width: 40px;
    height: 1px;
    background: rgba(201,168,76,.4);
    margin-bottom: 24px;
}

.about-text {
    font-size: 13px;
    line-height: 2;
    color: rgba(245,242,236,.55);
    margin-bottom: 20px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    display: block;
}

    .about-img:hover {
        filter: grayscale(0%);
    }

.about-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201,168,76,.3);
    cursor: pointer;
    transition: background .25s;
}

    .about-dot.active {
        background: var(--gold);
    }

/* ── TESTIMONIALS ── */
.testi-section {
    background: var(--black2);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201,168,76,.07);
    margin-top: 48px;
}

/* ── INFO STRIP ── */
.info-strip {
    background: var(--black3);
    border-top: 1px solid rgba(201,168,76,.08);
    border-bottom: 1px solid rgba(201,168,76,.08);
    padding: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(201,168,76,.08);
}

/* ── CTA SECTION ── */
.cta-section {
    background: var(--black);
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(201,168,76,.055) 0%, transparent 65%);
        pointer-events: none;
    }

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

    .cta-title i {
        font-style: italic;
        color: var(--gold2);
    }

.cta-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--fog);
    margin-bottom: 44px;
    text-transform: uppercase;
}

.cta-address {
    font-size: 10px;
    color: var(--fog);
    margin-top: 28px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cta-inner .btn {
    margin: 0 auto;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — UNA SOLA MEDIA QUERY
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 55vh auto;
        height: auto;
    }

    .hero-text {
        padding: 48px 24px;
        border-left: none;
        border-top: 1px solid rgba(201,168,76,.08);
    }

    .hero-stats {
        flex-direction: row;
        gap: 24px;
    }

    .scroll-hint {
        display: none;
    }

    /* Services 2-col → 1-col */
    #services > div {
        grid-template-columns: 1fr !important;
    }

        #services > div > div:first-child img {
            min-height: 300px !important;
            max-height: 350px !important;
        }

    /* About 2-col → 1-col */
    .about-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .about-slide img {
        height: 300px !important;
    }

    /* Map 2-col → 1-col */
    #visit + .section > div {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials → 1-col */
    .testi-grid {
        grid-template-columns: 1fr;
    }

    /* Info strip → 2-col */
    .info-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Marquee */
    .marquee-wrap {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    /* CTA */
    .cta-section {
        padding: 80px 0;
    }

    /* Fix 1: Ocultar flechas del carousel en mobile */
    button[onclick="prevReview()"],
    button[onclick="nextReview()"] {
        display: none !important;
    }

    /* Fix 2: TODAS las grids de 2 columnas → 1 columna */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix 3: Reducir espacios en CTA */
    .cta-section {
        padding: 60px 0 !important;
    }

    /* Fix 3b: Mapa altura razonable en mobile */
    div[style*="min-height:400px"] {
        min-height: 250px !important;
    }

    /* Fix 3c: Padding del panel de info del mapa */
    div[style*="padding:60px"] {
        padding: 32px 24px !important;
    }

    /* Fix 3d: Foto de servicios en mobile */
    #services img[alt="MOF Beauty Salon"] {
        min-height: 300px !important;
        max-height: 350px !important;
    }
}

