/* ===== VARIABLES & RESET ===== */
:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-card: #1a1a1a;
    --color-gold: #c9a96e;
    --color-gold-light: #d4b87a;
    --color-gold-dark: #a8893f;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #b0b0b0;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --nav-height: 80px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

*, *::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(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-white);
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gold);
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(201, 169, 110, 0.15);
    border-color: var(--color-gold);
}

/* Dark mode (default): show sun icon, hide moon */
.icon-sun { display: block; }
.icon-moon { display: none; }

/* Light mode: show moon icon, hide sun */
body.light-mode .icon-sun { display: none; }
body.light-mode .icon-moon { display: block; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO / CAROUSEL ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.slide-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.8em;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 300;
}

.slide-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Carousel Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(201, 169, 110, 0.3);
    border-color: var(--color-gold);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ===== SECTIONS COMMON ===== */
.section {
    padding: 6rem 2rem;
    scroll-margin-top: var(--nav-height);
}

.section--dark {
    background-color: var(--color-bg-primary);
}

.section--darker {
    background-color: var(--color-bg-secondary);
}

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

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

.section-accent {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
}

/* ===== ABOUT ===== */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* ===== BRANDS ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

a.brand-card {
    text-decoration: none;
    color: inherit;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-logo-wrapper {
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(201, 169, 110, 0.15);
    transition: var(--transition);
}

.brand-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 169, 110, 0.08),
        transparent
    );
    transition: left 0.6s ease;
}

.brand-card:hover .brand-logo-wrapper {
    box-shadow:
        0 8px 30px rgba(201, 169, 110, 0.2),
        inset 0 0 0 2px var(--color-gold);
    transform: scale(1.05);
}

.brand-card:hover .brand-logo-wrapper::before {
    left: 100%;
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.brand-card:hover .brand-logo-wrapper img {
    filter: grayscale(0%);
}

.brand-name {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    font-weight: 400;
    transition: var(--transition);
}

.brand-card:hover .brand-name {
    color: var(--color-gold);
}

/* ===== CATÁLOGO ===== */
.catalog-cta {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.catalog-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
}

.catalog-btn:hover {
    background: var(--color-gold);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.2);
}

.catalog-btn svg {
    transition: transform 0.3s ease;
}

.catalog-btn:hover svg {
    transform: translateY(2px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #000000;
    padding: 5rem 2rem 2rem;
    scroll-margin-top: var(--nav-height);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-tagline-brand {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.footer-slogan {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-contact-item:hover {
    color: var(--color-gold);
}

.footer-contact-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-contact-item:hover svg {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LIGHT MODE ===== */
body.light-mode {
    --color-bg-primary: #f5f2ed;
    --color-bg-secondary: #ebe6df;
    --color-bg-card: #ffffff;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #555555;
    --color-white: #1a1a1a;
}

body.light-mode #navbar.scrolled {
    background: rgba(245, 242, 237, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-logo {
    color: #1a1a1a;
}

body.light-mode .slide-content h1 {
    color: #ffffff;
}

body.light-mode .slide-subtitle {
    color: var(--color-gold);
}

body.light-mode .slide-tagline {
    color: #e0e0e0;
}

body.light-mode .carousel-prev,
body.light-mode .carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

body.light-mode .carousel-dot {
    border-color: #ffffff;
}

body.light-mode .carousel-dot.active {
    background: #ffffff;
}

body.light-mode .brand-logo-wrapper {
    background: #ffffff;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

body.light-mode .brand-card:hover .brand-logo-wrapper {
    box-shadow:
        0 8px 30px rgba(201, 169, 110, 0.15),
        inset 0 0 0 2px var(--color-gold);
}

body.light-mode .catalog-btn {
    border-color: var(--color-gold-dark);
    color: var(--color-gold-dark);
}

body.light-mode .footer {
    background-color: #1a1a1a;
}

body.light-mode .footer-brand,
body.light-mode .footer-tagline-brand,
body.light-mode .footer-slogan,
body.light-mode .footer-contact-item,
body.light-mode .footer-bottom p {
    color: inherit;
}

body.light-mode .footer-brand {
    color: #ffffff;
}

body.light-mode .footer-tagline-brand {
    color: #b0b0b0;
}

body.light-mode .footer-slogan {
    color: var(--color-gold);
}

body.light-mode .footer-contact-item {
    color: #b0b0b0;
}

body.light-mode .footer-contacts {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
}

body.light-mode .hamburger span {
    background: #1a1a1a;
}

body.light-mode .theme-toggle {
    color: var(--color-gold);
    border-color: rgba(201, 169, 110, 0.4);
}

@media (max-width: 768px) {
    body.light-mode .nav-links {
        background: rgba(245, 242, 237, 0.98);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .hamburger {
        display: flex;
    }

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

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .slide-content h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }

    .slide-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.4em;
    }

    .slide-tagline {
        font-size: 0.9rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .product-item {
        gap: 1rem;
        padding: 1rem 1rem;
    }

    .product-item h3 {
        font-size: 1rem;
    }

    .product-category {
        font-size: 0.65rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-brand {
        font-size: 2.5rem;
    }

    .footer-contacts {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.8rem;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
}
