:root {
    --color-orange: #E8890C;
    --color-orange-dark: #C77209;
    --color-black: #1A1A1A;
    --color-ink: #242526;
    --color-white: #FFFFFF;
    --color-bg: #F0EEEA;
    --color-line: #DAD7D1;
    --color-gray: #78756F;
    --font-main: 'DM Sans', Arial, Helvetica, sans-serif;
    --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-main);
    font-weight: 300;
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-orange);
    margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--color-white); }

.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 34px;
}
.section-title span { color: var(--color-orange); }
.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    max-width: 560px;
    margin: 0 auto 56px;
    font-size: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0;
    border: 1px solid var(--color-black);
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
}
.btn-outline {
    background: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}
.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}
.btn-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-white:hover {
    background: var(--color-white);
    color: var(--color-black);
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    transition: opacity 0.2s ease;
}
.link-arrow:hover { opacity: 0.6; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.logo img { height: 46px; width: auto; }

.main-nav ul {
    display: flex;
    gap: 36px;
}
.main-nav a {
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.main-nav a.active,
.main-nav a:hover {
    color: var(--color-orange);
    border-bottom-color: var(--color-orange);
}
.header-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-ink);
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-line);
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 32px 28px;
    }
    .main-nav li { border-bottom: 1px solid var(--color-line); }
    .main-nav a { display: block; padding: 14px 0; }
    .nav-toggle { display: block; }
    .header-cta .btn { display: none; }
}

/* Hero carousel */
.hero {
    position: relative;
    background: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
    height: 76vh;
    min-height: 480px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.45) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 0 32px 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}
.hero-slide-content .eyebrow { color: var(--color-orange); }
.hero-slide-content h1 {
    font-size: 52px;
    font-weight: 300;
    max-width: 640px;
    margin-bottom: 18px;
}
.hero-slide-content p {
    font-size: 16px;
    color: #e6e6e6;
    max-width: 480px;
    margin-bottom: 28px;
}
.hero-nav {
    position: absolute;
    bottom: 32px;
    right: 32px;
    z-index: 3;
    display: flex;
    gap: 12px;
}
.hero-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hero-nav button:hover { background: var(--color-orange); border-color: var(--color-orange); }
.hero-dots {
    position: absolute;
    bottom: 44px;
    left: 32px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
}
.hero-dots button.is-active { background: var(--color-orange); width: 22px; border-radius: 4px; }

@media (max-width: 900px) {
    .hero { height: 62vh; min-height: 420px; }
    .hero-slide-content h1 { font-size: 34px; }
}

/* Trust bar */
.trust-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.trust-item {
    padding: 40px 32px;
    text-align: center;
    border-left: 1px solid var(--color-line);
}
.trust-item:first-child { border-left: none; }
.trust-item h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-orange);
    margin-bottom: 10px;
}
.trust-item p { font-size: 14px; color: var(--color-gray); margin: 0; }
@media (max-width: 900px) {
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-left: none; border-top: 1px solid var(--color-line); }
    .trust-item:first-child { border-top: none; }
}

/* Page header (non-home) */
.page-header {
    background: var(--color-black);
    color: var(--color-white);
    padding: 64px 0;
    text-align: center;
}
.page-header h1 { margin: 0; font-weight: 300; font-size: 38px; }
.page-header h1 span { color: var(--color-orange); }
.breadcrumb {
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 10px;
}
.breadcrumb a { color: var(--color-orange); }

/* Tile grid (category tiles with image + overlay caption) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.tile {
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    background: var(--color-black);
    overflow: hidden;
}
.tile-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    opacity: 0.55;
    transition: transform 0.4s ease;
}
.tile-icon.has-image { opacity: 1; }
.tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile-icon { transform: scale(1.08); }
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 60%);
}
.tile-caption {
    position: relative;
    z-index: 2;
    padding: 22px;
    color: var(--color-white);
}
.tile-caption .eyebrow { color: #d8d8d8; margin-bottom: 6px; font-size: 11px; }
.tile-caption h3 { font-size: 17px; margin: 0; font-weight: 400; }

/* Grid (general cards) */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.card-image {
    aspect-ratio: 4/3;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: var(--color-orange);
    border-bottom: 1px solid var(--color-line);
    overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; font-size: 17px; font-weight: 400; }
.card-body p { color: var(--color-gray); font-size: 14px; margin: 0 0 12px; }
.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 8px;
}
.card-price {
    margin-top: 10px;
    font-size: 15px;
}
.card-price .price-old {
    color: var(--color-gray);
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 8px;
}
.card-price .price-now {
    font-weight: 500;
    color: var(--color-ink);
}
.card-price .price-from {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray);
    display: block;
    margin-bottom: 2px;
}
.badge-sale {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    z-index: 2;
}
.card { position: relative; }

/* Icon strip (categorías destacadas, small round icons) */
.icon-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.icon-strip a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 110px;
    text-align: center;
}
.icon-strip .icon-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.2s ease;
    overflow: hidden;
}
.icon-strip .icon-circle img { width: 100%; height: 100%; object-fit: cover; }
.icon-strip a:hover .icon-circle {
    background: var(--color-black);
    border-color: var(--color-black);
}
.icon-strip span.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ink);
}

/* Story / vision full-bleed */
.story {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 110px 0;
}
.story .container { max-width: 720px; }
.story .eyebrow { justify-content: center; display: flex; }
.story h2 { font-size: 32px; font-weight: 300; }
.story p { color: #ccc; font-size: 15px; margin-bottom: 36px; }

/* CTA block */
.cta-block {
    background: var(--color-orange);
    color: var(--color-white);
    padding: 72px 0;
    text-align: center;
}
.cta-block h2 { color: var(--color-white); font-weight: 300; }
.cta-block p { max-width: 560px; margin: 0 auto 30px; opacity: 0.95; font-size: 15px; }

/* About / stats */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) { .about-flex { grid-template-columns: 1fr; } }
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
    border-top: 1px solid var(--color-line);
    padding-top: 32px;
}
.stat { text-align: center; }
.stat strong {
    display: block;
    font-size: 32px;
    font-weight: 400;
    color: var(--color-orange);
}
.stat span { font-size: 12px; color: var(--color-gray); text-transform: uppercase; letter-spacing: 0.06em; }

.wood-block {
    background: var(--color-black);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 84px;
    overflow: hidden;
}
.wood-block img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--color-line);
    border-radius: 0;
    background: var(--color-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}
.contact-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}
.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.alert {
    padding: 14px 18px;
    border-radius: 0;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 3px solid;
}
.alert-success { background: #eef6ee; color: #1a5c2e; border-color: #2e8b46; }
.alert-error { background: #fbecea; color: #8a251c; border-color: #b3261e; }

/* Legal pages (cookies / privacidad) */
.legal-body { max-width: 740px; margin: 0 auto; }
.legal-body h3 { margin-top: 32px; font-size: 18px; font-weight: 500; }
.legal-body p { color: var(--color-gray); margin: 0 0 8px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.legal-body li { color: var(--color-gray); margin-bottom: 6px; }

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
}
.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cookie-text strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}
.cookie-text p {
    font-size: 13px;
    color: var(--color-gray);
    margin: 0 0 6px;
    max-width: 640px;
}
.cookie-links { font-size: 12px; margin-top: 8px; }
.cookie-links a { color: var(--color-orange); }
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-actions .btn { padding: 12px 20px; white-space: nowrap; }

@media (max-width: 900px) {
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { flex: 1; justify-content: center; }
}

.cookie-prefs-overlay {
    position: fixed;
    inset: 0;
    z-index: 310;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-prefs-overlay[hidden] { display: none; }
.cookie-prefs-box {
    background: var(--color-white);
    max-width: 480px;
    width: 100%;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
}
.cookie-prefs-box h3 { margin-bottom: 20px; font-weight: 400; }
.cookie-pref-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--color-line);
}
.cookie-pref-item:first-of-type { border-top: none; }
.cookie-pref-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cookie-pref-item p { font-size: 13px; color: var(--color-gray); margin: 0; }
.cookie-pref-item input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.cookie-prefs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) {
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 27px; height: 27px; }
}

/* Footer */
.site-footer {
    background: var(--color-black);
    color: #bdbdbd;
    padding: 64px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
    color: var(--color-white);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 20px;
}
.footer-grid ul li { margin-bottom: 12px; font-size: 14px; }
.footer-grid a:hover { color: var(--color-orange); }
.footer-logo img { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-logo p { color: #999; font-size: 14px; max-width: 320px; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
    width: 34px;
    height: 34px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
}
.social-links a:hover { background: var(--color-orange); border-color: var(--color-orange); }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 22px;
    text-align: center;
    font-size: 12px;
    color: #777;
    letter-spacing: 0.03em;
}
