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

:root {
    --color-dark: #372f2d;
    --color-mid: #C4BAB5;
    --color-light: #E8E7E5;
    --color-bg: #1a1513;
    --color-bg-alt: #231e1b;
    --color-bg-light: #f5f3f0;
    --color-text: #E8E7E5;
    --color-text-dark: #372f2d;
    --color-text-muted: #a0988c;
    --color-primary: #C4BAB5;
    --color-accent: #E8E7E5;
    --color-silver: #C0C0C0;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    width: 160px;
    height: auto;
}

.loader-logo {
    width: 100%;
    height: auto;
    animation: loaderAnim 4.5s ease-in-out forwards;
}

@keyframes loaderAnim {
    0% { transform: scale(3); opacity: 0.2; }
    25% { transform: scale(1); opacity: 1; }
    33% { transform: scale(1.3); }
    41% { transform: scale(1); }
    49% { transform: scale(1.3); }
    57% { transform: scale(1); }
    64% { transform: scale(1.3); }
    71% { transform: scale(1); }
    78% { transform: scale(1.3); }
    85% { transform: scale(1); }
    91% { transform: scale(1.3); }
    97% { transform: scale(1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(195, 186, 182, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.brand-deco {
    height: 22px;
    width: auto;
    display: block;
}

.brand-logo {
    height: 32px;
    width: auto;
}

.brand-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    padding: 4px 0;
}

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

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

.nav-links a:hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero Fold */
.hero-wrap {
    position: relative;
    z-index: 2;
    perspective: 1200px;
    perspective-origin: center bottom;
}

.hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-origin: center bottom;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-fold-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, transparent 40%, rgba(0,0,0,0.5) 85%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    will-change: opacity;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, #1a1512 0%, #0a0a0a 60%, #050505 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 Q40 15 30 25 Q20 15 30 5' fill='none' stroke='%23C3BAB6' stroke-width='0.2' opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid rgba(195, 186, 182, 0.2);
    padding: 8px 20px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-title {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-logo {
    height: auto;
    max-width: 480px;
    width: 90vw;
    filter: brightness(0) invert(0.88) sepia(0.05);
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line span {
    display: block;
    transform: translateY(100%);
    animation: slideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.title-highlight {
    font-weight: 700;
    font-style: italic;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #ffffff;
    color: var(--color-bg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(195, 186, 182, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(195, 186, 182, 0.1);
    transform: translateY(-2px);
}

.hero-detail {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.hero-detail--1 {
    top: 15%;
    left: 8%;
    width: 60px;
}

.hero-detail--2 {
    bottom: 25%;
    right: 8%;
    width: 80px;
}

.hero-image-wrap {
    margin-top: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(196, 186, 181, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.highlight {
    color: var(--color-primary);
    font-style: italic;
}

.section-header p {
    color: var(--color-text-muted);
    margin-top: 16px;
    font-size: 1rem;
}

/* About */
.about {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    position: relative;
    z-index: 1;
}

.about .section-header h2,
.about .about-item h3 {
    color: var(--color-text-dark);
}

.about .about-item p {
    color: #5a5048;
}

.about .about-item {
    border-color: rgba(55, 47, 45, 0.08);
}

.about .about-item:hover {
    border-color: rgba(55, 47, 45, 0.2);
    background: rgba(55, 47, 45, 0.03);
}

.about .about-number {
    color: rgba(55, 47, 45, 0.12);
}

.about .section-tag {
    color: var(--color-dark);
}

.about-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 64px;
}

.showcase-img {
    overflow: hidden;
    border: 1px solid rgba(55, 47, 45, 0.1);
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.showcase-img:hover img {
    transform: scale(1.03);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.about-item {
    padding: 40px;
    border: 1px solid rgba(195, 186, 182, 0.06);
    transition: var(--transition);
    position: relative;
}

.about-item:hover {
    border-color: rgba(195, 186, 182, 0.15);
    background: rgba(195, 186, 182, 0.02);
}

.about-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(195, 186, 182, 0.15);
    margin-bottom: 16px;
    line-height: 1;
}

.about-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.product-card {
    cursor: pointer;
    position: relative;
    will-change: transform, opacity;
}

.product-card[data-parallax="center"] {
    z-index: 2;
}

.product-card[data-parallax="left"],
.product-card[data-parallax="right"] {
    z-index: 1;
}

.product-card[data-parallax="left"] {
    transform: translateX(-60px);
}

.product-card[data-parallax="right"] {
    transform: translateX(60px);
}

.product-card[data-parallax="center"] {
    opacity: 0;
    transform: scale(0.85);
}

.product-img {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(195, 186, 182, 0.08);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    border-color: rgba(195, 186, 182, 0.2);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 0 4px;
}

.product-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Valores */
.valores {
    background: var(--color-dark);
    border-top: 1px solid rgba(232, 231, 229, 0.08);
    border-bottom: 1px solid rgba(232, 231, 229, 0.08);
    padding: 80px 0;
}

.valores .valor-item p {
    color: rgba(232, 231, 229, 0.6);
}

.valores .valor-item h3 {
    color: var(--color-light);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.valor-item {
    padding: 32px;
}

.valor-icon {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.valor-item h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.valor-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Contacto */
.contacto {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.contacto .contact-info h2 {
    color: var(--color-text-dark);
}

.contacto .contact-info p {
    color: #5a5048;
}

.contacto .contact-details strong {
    color: var(--color-dark);
}

.contacto .contact-details p {
    color: #5a5048;
}

.contacto .section-tag {
    color: var(--color-dark);
}

.contacto .contact-form input,
.contacto .contact-form textarea {
    background: rgba(55, 47, 45, 0.05);
    border-color: rgba(55, 47, 45, 0.15);
    color: var(--color-text-dark);
}

.contacto .contact-form input:focus,
.contacto .contact-form textarea:focus {
    border-color: rgba(55, 47, 45, 0.3);
    background: rgba(55, 47, 45, 0.05);
}

.contacto .contact-form input::placeholder,
.contacto .contact-form textarea::placeholder {
    color: #8a8078;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin: 16px 0;
    line-height: 1.2;
}

.contact-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-details p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.contact-details strong {
    color: var(--color-text);
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(195, 186, 182, 0.05);
    border: 1px solid rgba(195, 186, 182, 0.1);
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text);
    transition: var(--transition);
    outline: none;
    border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(195, 186, 182, 0.3);
    background: rgba(195, 186, 182, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(195, 186, 182, 0.06);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0.9);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(195, 186, 182, 0.06);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 40px;
    height: auto;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-follower svg {
    width: 100%;
    height: auto;
    display: block;
}

.cursor-follower svg path {
    fill: #E8E7E5;
}

.cursor-follower.visible {
    opacity: 0.2;
}

@media (max-width: 768px) {
    .cursor-follower {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: var(--transition);
        backdrop-filter: blur(20px);
    }

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

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    .about-grid,
    .product-grid,
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section {
        padding: 80px 0;
    }

    .about-item {
        padding: 24px;
    }
}