@import url('https://fonts.googleapis.com/css2?family=Bormiolo:wght@300;400;700&family=Plus+Jakarta+Sans:wght@200;300;400;600;800&display=swap');

:root {
    --bg: #050505;
    --bg-surface: #0a0a0a;
    --primary: #e2b07e;
    /* Sophisticated Gold/Wheat */
    --primary-bright: #ffcc99;
    --accent: #d44d2d;
    /* Ember Red */
    --text: #ffffff;
    --text-dim: #888888;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --cubic: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: all 0.8s var(--cubic);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* We use JS for this */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1.2rem 0;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 4rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
}

.hero-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--bg));
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(30px);
}

/* --- Buttons --- */
.cta-group {
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.btn-main {
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-main:hover {
    background: var(--text);
    transform: scale(1.05);
}

/* --- Bento Grid Section --- */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 1.5rem;
    padding: 10rem 0;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    transition: var(--transition);
}

.bento-item:hover {
    border-color: var(--primary);
    background: rgba(226, 176, 126, 0.05);
}

.bento-item h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.bento-item p {
    color: var(--text-dim);
}

.bento-1 {
    grid-column: span 8;
}

.bento-2 {
    grid-column: span 4;
    background-image: url('firewood_stack_quality_1770496665099.png');
    background-size: cover;
    background-position: center;
}

.bento-3 {
    grid-column: span 4;
}

.bento-4 {
    grid-column: span 8;
    background-image: url('wood_burning_macro_1770499541711.png');
    background-size: cover;
    background-position: center;
}

/* --- Products --- */
.products-wide {
    padding: 15rem 0;
}

.product-row {
    display: flex;
    gap: 10rem;
    align-items: center;
    margin-bottom: 20rem;
}

.product-row:nth-child(even) {
    flex-direction: row-reverse;
}

.p-media {
    flex: 1.2;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.p-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.p-info {
    flex: 1;
}

.p-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    display: block;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 0.7rem;
}

.p-info h2 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

/* --- Reveal Animations --- */
.show-content h1,
.show-content p,
.show-content .cta-group {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
footer {
    padding: 10rem 0 5rem;
    border-top: 1px solid var(--glass-border);
}

.f-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.f-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.f-links h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.f-links a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.f-links a:hover {
    color: var(--text);
}

/* --- Floating Call --- */
.floating-call {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: var(--primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.floating-call:hover {
    transform: scale(1.1) rotate(15deg);
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: #25D366;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(-15deg);
}

/* Ajuste del botón de llamar para que no se solapen */
.floating-call {
    right: auto;
    left: 3rem;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .bento {
        grid-template-rows: auto;
        padding: 5rem 0;
    }

    .bento-item {
        grid-column: span 12;
        height: auto;
        min-height: 300px;
    }

    .product-row {
        flex-direction: column !important;
        gap: 3rem;
        margin-bottom: 8rem;
    }

    .p-media {
        width: 100%;
        height: 350px;
        border-radius: 20px;
    }

    .p-info h2 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 0;
    }

    .nav-links {
        display: none;
        /* Ocultamos links en móvil para simplificar */
    }

    .hero {
        padding-top: 2rem;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-main {
        width: 100%;
        padding: 1rem;
    }

    .floating-call {
        width: 60px;
        height: 60px;
        bottom: 2rem;
        left: 2rem;
    }

    .floating-whatsapp {
        width: 60px;
        height: 60px;
        bottom: 2rem;
        right: 2rem;
        font-size: 1.5rem;
    }

    .f-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .products-wide {
        padding: 5rem 0;
    }

    h2 {
        font-size: 2.5rem !important;
    }

    #contacto h2 {
        font-size: 2.8rem !important;
    }
}