/* ═══════════════════════════════════════════════════════
   ESSILORLUXOTTICA ARGENTINA — Premium Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
    /* Palette */
    --black:       #0a0a0a;
    --near-black:  #111111;
    --dark:        #1a1a1a;
    --dark-mid:    #252525;
    --mid:         #3a3a3a;
    --mid-light:   #666666;
    --light:       #999999;
    --off-white:   #e8e6e1;
    --white:       #fafaf8;
    --gold:        #c9a84c;
    --gold-light:  #dfc06a;
    --gold-dark:   #a8893a;
    --accent:      #c9a84c;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Outfit', -apple-system, sans-serif;
    
    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container:   1280px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--off-white);
    background: var(--black);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* ─── NAVBAR ──────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,0.08);
    transition: background 0.4s var(--ease);
}
.navbar.scrolled { background: rgba(10,10,10,0.95); }
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}
.logo-essilor { color: var(--off-white); }
.logo-luxottica { color: var(--gold); }
.logo-country {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--light);
    margin-left: 8px;
    position: relative;
    top: -1px;
}
.nav-links {
    display: flex;
    gap: 36px;
}
.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light);
    transition: color 0.3s var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    width: 24px; height: 1.5px;
    background: var(--off-white);
    transition: all 0.3s var(--ease);
}

/* ─── HERO ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--near-black);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(201,168,76,0.04) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10,10,10,0.3) 0%, transparent 40%, rgba(10,10,10,0.6) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    border: 1px solid rgba(201,168,76,0.06);
    border-radius: 50%;
    animation: heroRing 20s linear infinite;
}
@keyframes heroRing {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--light);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}
.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-light);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}
.btn-primary {
    background: var(--gold);
    color: var(--black);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.25);
}
.btn-outline {
    background: transparent;
    color: var(--off-white);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-full { width: 100%; }
.btn-filter { padding: 14px 28px; }

/* ─── SECTIONS ────────────────────────────────────── */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--light);
    font-weight: 300;
}

/* ─── MARCAS ──────────────────────────────────────── */
.section-marcas {
    background: var(--near-black);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.marcas-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.marca-card {
    aspect-ratio: 1;
    perspective: 600px;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.marca-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    width: 0; height: 0;
    overflow: hidden;
}
.marca-card-inner {
    width: 100%; height: 100%;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    transition: all 0.4s var(--ease);
    overflow: hidden;
}
.marca-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.marca-card-inner:hover {
    border-color: rgba(201,168,76,0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.marca-card-inner:hover::before { opacity: 1; }

.marca-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(0.85);
    transition: filter 0.3s var(--ease);
}
.marca-card-inner:hover .marca-logo { filter: brightness(0) invert(1); }

.marca-name-placeholder {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--off-white);
}
.marca-badge {
    position: absolute;
    bottom: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid-light);
}

/* ─── NOSOTROS ────────────────────────────────────── */
.section-nosotros {
    background: var(--black);
}
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.nosotros-visual {
    position: relative;
}
.nosotros-deco {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 50%;
    position: relative;
}
.nosotros-deco::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(201,168,76,0.06);
    border-radius: 50%;
}
.nosotros-deco::after {
    content: '';
    position: absolute;
    inset: 60px;
    background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.nosotros-stats {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.stat {
    text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}
.stat-plus {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--gold);
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 4px;
}

.nosotros-content p {
    color: var(--light);
    margin-bottom: 16px;
    font-size: 1.02rem;
}
.nosotros-content p:last-child { margin-bottom: 0; }

/* ─── STORE LOCATOR ───────────────────────────────── */
.section-store {
    background: var(--near-black);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.store-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group {
    flex: 1;
    min-width: 180px;
}
.filter-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid-light);
    margin-bottom: 8px;
}
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--off-white);
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.08);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s var(--ease);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.store-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.06);
    min-height: 500px;
    overflow: hidden;
}
.store-map {
    background: var(--dark);
    min-height: 500px;
}
.store-list {
    background: var(--dark-mid);
    overflow-y: auto;
    max-height: 500px;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.store-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: var(--mid-light);
    padding: 40px;
    text-align: center;
}

.store-item {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.2s var(--ease);
}
.store-item:hover { background: rgba(201,168,76,0.04); }
.store-item-name {
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.store-item-type {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    display: inline-block;
    margin-bottom: 6px;
    color: var(--white);
    font-weight: 500;
}
.store-item-address {
    font-size: 0.85rem;
    color: var(--light);
    margin-bottom: 6px;
}
.store-item-marcas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.store-item-marca-tag {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    background: rgba(255,255,255,0.05);
    color: var(--light);
}

/* ─── CONTACTO ────────────────────────────────────── */
.section-contacto {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
}
.contacto-desc {
    color: var(--light);
    margin-bottom: 32px;
    font-size: 1rem;
}
.contacto-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light);
    font-size: 0.92rem;
}
.contacto-item svg { color: var(--gold); flex-shrink: 0; }

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--off-white);
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--mid-light);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea { resize: vertical; }

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: var(--black);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 0.82rem;
    color: var(--mid-light);
    margin-top: 4px;
}
.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--light);
    transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    color: var(--mid-light);
    transition: color 0.3s var(--ease);
}
.footer-social a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
    text-align: center;
    color: var(--mid);
    font-size: 0.78rem;
}

/* ─── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
    .store-layout {
        grid-template-columns: 1fr;
    }
    .store-map { min-height: 400px; }
    .store-list {
        max-height: 300px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(201,168,76,0.1);
    }
    .nav-burger { display: flex; }
    
    .nosotros-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .nosotros-visual { max-width: 320px; margin: 0 auto; }
    .form-row { grid-template-columns: 1fr; }
    
    .marcas-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .store-filters { flex-direction: column; }
    .filter-group { min-width: auto; }
}
