@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-color: #FAF8F5;
    --text-color: #2C221C;
    --primary-color: #8E4A23;
    /* Bordeaux / Cognac */
    --secondary-color: #D4A373;
    /* Gold */
    --footer-bg: #2A201A;
    --white: #FFFFFF;
    --gray-light: #EBE6E0;
    --gray-text: #6B615A;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(44, 34, 28, 0.15);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

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

.btn-primary-alt:hover {
    background-color: #7A3D1A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
body>header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 34, 28, 0.05);
    transition: var(--transition);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Custom Image Logo using Wrapper and Filters */
.logo-img {
    height: 32px;
    /* Fixed height for consistency */
    width: auto;
    object-fit: contain;
    /* Use filters to make the shape absolutely black */
    filter: brightness(0) saturate(100%);
    display: block;
}

.footer-logo .logo-img {
    /* Invert to white for the dark footer */
    filter: brightness(0) saturate(100%) invert(1);
}

.logo-text span {
    color: var(--secondary-color);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-text);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Dropdown Menu Styles */
.nav-links li.dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 280px;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(44, 34, 28, 0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    transition: var(--transition) !important;
    text-align: left !important;
}

.dropdown-menu a:hover {
    background-color: rgba(142, 74, 35, 0.05) !important;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.dropdown-item-icon svg {
    width: 22px;
    height: 22px;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dropdown-item-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.dropdown-item-desc {
    font-size: 0.8rem;
    color: var(--gray-text);
    line-height: 1.4;
    font-weight: 400;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

li.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1000;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: flex-start;
    /* Cambiado de center */
    justify-content: center;
    padding: 5rem 2rem 2rem;
    /* Añadido padding superior fijo */
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.mobile-nav-links a.active {
    color: var(--primary-color);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.mobile-nav-actions .lang-btn {
    display: flex !important;
    /* Force visibility in mobile menu */
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
}

.mobile-nav-actions .btn-primary {
    display: none !important;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Base Reset */
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section (Final Horizontal Zipper Reveal) */
.hero-v-zipper {
    position: relative;
    min-height: 85vh;
    width: 100%;
    overflow: hidden;
    background-color: #FAF8F5;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Textura de grano artesanal que te gustó (Fina y sutil) */
.hero-v-zipper::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    /* Detrás de todo */
    mix-blend-mode: multiply;
}

/* Degradado para suavizar la transición inferior */
.hero-v-zipper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6vh;
    /* Mucho más chico */
    background: linear-gradient(to bottom, transparent, #FAF8F5);
    z-index: 105;
    /* Por encima del video que ahora es 100 */
    pointer-events: none;
}

.hero-zipper-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 100;
    /* ARRIBA DE TODO */
    pointer-events: none;
    filter: url(#whiteToAlpha) contrast(1.1) brightness(0.95) drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

.hero-content-wrapper.container {
    padding-left: 0;
    padding-right: 0;
    position: relative;
    z-index: 5;
    /* Texto por debajo del cierre para el efecto de reveal */
}

.hero-content-wrapper {
    width: 100%;
    padding-left: 6vw;
    /* Corrido a la izquierda para ganar espacio antes del cierre */
    padding-right: 2rem;
    display: flex;
    align-items: center;
    min-height: inherit;
}

.hero-content-reveal {
    opacity: 0;
    z-index: 5;
    max-width: 790px;
    /* Amplio para 2 líneas en h1; texto más a la izquierda cubre menos el cierre */
    text-align: left;
    animation: fadeInText 1s ease-in-out forwards;
    animation-delay: 0.3s;
    color: var(--text-color);
    margin-top: 7rem;
    /* Centrado en la apertura del cierre */
    padding-bottom: 2rem;
    /* Espacio inferior para que los botones no toquen el borde del cierre */
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tipografía del Hero */
.hero-content-reveal .badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-content-reveal h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    /* Mínima reducción respecto al original (3.8rem) */
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-color);
}

.hero-content-reveal h1 span {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
}

.hero-content-reveal p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--gray-text);
    margin-bottom: 1.25rem;
    max-width: 520px;
    font-weight: 500;
    line-height: 1.5;
}

/* Botones del Hero (Side-by-Side y Color Original) */
.hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    /* Restauramos Cognac original */
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(142, 74, 35, 0.2) !important;
}

.btn-primary:hover {
    background-color: #7A3D1A !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(142, 74, 35, 0.3) !important;
}

.btn-large {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .hero-content-wrapper {
        padding-left: 4.5vw;
    }

    .hero-content-reveal {
        max-width: 740px;
        margin-top: 6rem;
    }
}

@media (max-width: 1024px) {
    .hero-content-reveal {
        max-width: 620px;
        margin-top: 5rem;
    }

    .hero-content-reveal h1 {
        font-size: clamp(2rem, 4.2vw, 2.9rem);
        margin-bottom: 0.5rem;
    }

    .hero-content-reveal p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 900px) {
    .hero-content-reveal {
        max-width: 500px;
        margin-top: 4rem;
    }

    .hero-content-reveal h1 {
        font-size: 2.1rem;
    }

    .hero-content-reveal p {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

    .hero-buttons .btn-large {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {

    /* Balance exacto: Suficiente a la izquierda (25%) para que el hueco aloje las 6 líneas, pero sin perder el cuero */
    .hero-zipper-video {
        height: 125%;
        top: -12.5%;
        object-position: 25% center;
    }

    .hero-v-zipper {
        min-height: 60vh;
    }

    .hero-content-wrapper {
        padding-left: 0;
        padding-right: 1.5rem;
        align-items: center;
    }

    .hero-content-reveal {
        max-width: 100%;
        text-align: left;
        margin-top: 3.5rem;
        /* Bajamos el bloque para que entre en la zona más ancha del cierre */
        padding-bottom: 0;
        padding-left: 1.5rem !important;
    }

    .hero-content-reveal .badge {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }

    .hero-content-reveal h1 {
        font-size: 1.45rem;
        /* Un pelín más grande pero con más aire */
        margin-bottom: 0.3rem;
        line-height: 1.1;
        max-width: 90%;
        /* Permitimos que se estire más hacia la derecha */
    }

    .hero-content-reveal p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .hero-buttons .btn-large {
        padding: 0.6rem 1.3rem;
        font-size: 0.8rem;
        border-radius: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-zipper-video {
        height: 130%;
        top: -15%;
        object-position: 30% center;
    }

    .hero-v-zipper {
        min-height: 55vh;
    }

    .hero-content-wrapper {
        padding-left: 0;
        padding-right: 0.5rem;
        /* Devolvemos espacio horizontal */
    }

    .hero-content-reveal {
        margin-top: 2.8rem;
        /* Suficiente para bajar el badge y que no lo pise el cierre */
        padding-left: 1.25rem !important;
        /* Separación real pero sin exagerar */
    }

    .hero-content-reveal h1 {
        font-size: 1.25rem;
        /* Un pelín más grande para que tenga presencia */
        margin-bottom: 0.25rem;
        line-height: 1.1;
        max-width: 95%;
        /* Ocupa casi todo el ancho disponible */
    }

    .hero-content-reveal p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn-large {
        padding: 0.55rem 1.15rem;
        font-size: 0.75rem;
    }
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.hero-v-zipper .btn-outline {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(44, 34, 28, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.hero-v-zipper .btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
    transform: translateY(-3px);
}

.hero-v-zipper .btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
}

/* Herencia Familiar Section */
.heritage-section {
    padding: 6rem 0 4rem;
    background-color: var(--bg-color);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto auto;
    gap: 0 4rem;
    align-items: center;
}

.heritage-content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
}

.heritage-stats {
    grid-column: 1;
    grid-row: 2;
}

.heritage-image {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.heritage-content .badge {
    border: none;
    padding: 0;
    background: none;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
}

.heritage-content h2 {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

.heritage-content p {
    color: rgba(44, 34, 28, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.heritage-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(44, 34, 28, 0.5);
    font-weight: 700;
    margin: 0;
}

.heritage-image {
    position: relative;
}

.heritage-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    border: 1px solid rgba(44, 34, 28, 0.05);
}

.heritage-image-wrapper img,
.heritage-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.landing-video {
    object-position: 40% 50%;
    transform: scale(1.1);
}

/* Cueros Gallery & Pantone Library */
.cueros-gallery {
    margin: 0 0 4rem;
    position: relative;
}

.cueros-gallery .gallery-image-wrapper {
    display: inline-block;
    width: 100%;
    margin-bottom: 3rem;
}

.cueros-gallery img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(44, 34, 28, 0.05);
}

/* Pantone Library Styles */
.pantone-library {
    margin-top: 2rem;
}

.pantone-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
}

/* Texture Grid (Real Photos) */
.texture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.texture-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(44, 34, 28, 0.08);
    display: flex;
    flex-direction: column;
}

.texture-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(44, 34, 28, 0.15);
}

.texture-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F4F4F4;
}

.texture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.pantone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.pantone-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(44, 34, 28, 0.08);
    display: flex;
    flex-direction: column;
}

.pantone-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(44, 34, 28, 0.15);
}

.pantone-swatches {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
}

.swatch-half {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.swatch-half:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch-label {
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* CSS Noise filter to simulate leather/wool texture */
.pantone-swatches::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: multiply;
}

.pantone-info {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: var(--white);
    border-top: 1px solid rgba(44, 34, 28, 0.05);
}

.pantone-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.pantone-code {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-header-cueros {
    text-align: center;
}

.page-header-cueros h1 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

/* taller workshop section - full width */
.workshop-section {
    padding: 2rem 0 2rem 0;
    background-color: var(--bg-color);
    margin-top: 2rem;
}

.workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.workshop-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.workshop-content p {
    color: rgba(44, 34, 28, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.workshop-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid rgba(44, 34, 28, 0.05);
}

.workshop-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Workshop card specific styles to match prototype */
.processes-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.workshop-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 3.2rem);
    margin: 0 0 1rem 0;
    line-height: 1.05;
    color: var(--text-color);
}

.workshop-lead {
    color: rgba(44, 34, 28, 0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.process-list {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.process-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.process-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(142, 74, 35, 0.06);
    color: var(--primary-color);
    border: 1px solid rgba(142, 74, 35, 0.08);
}

.process-title {
    font-weight: 800;
    color: var(--text-color);
    font-size: 0.95rem;
}

.process-desc {
    color: var(--gray-text);
    font-size: 0.85rem;
}

@media (max-width: 880px) {
    .process-list {
        flex-direction: column;
        gap: 1rem;
    }
}

@media(max-width: 768px) {
    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .workshop-section {
        padding: 4rem 0;
    }
}

.floating-quote {
    background: #f5f0e8;
    border: 1px solid rgba(44, 34, 28, 0.05);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 240px;
    z-index: 10;
}

.heritage-image .floating-quote {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
}

.floating-quote p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1.25;
}

/* Nuestro Proceso Section (Landing Preview) - Aligned with Heritage */
.process-preview-section {
    padding: 3rem 0;
    background-color: var(--bg-color);
}

.process-preview-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-areas:
        "content image"
        "action image";
    column-gap: 4rem;
    align-items: center;
}

.process-preview-content {
    grid-area: content;
}

.process-preview-image {
    grid-area: image;
}

.process-preview-action {
    grid-area: action;
}

.process-preview-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
    border: 1px solid rgba(44, 34, 28, 0.05);
}

.process-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-preview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.process-preview-content .badge {
    margin-bottom: 1rem;
}

.process-preview-content h2 {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

.process-preview-content p {
    color: rgba(44, 34, 28, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.tone-swatches {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tone-swatch {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    border: 1px solid rgba(44, 34, 28, 0.1);
    object-fit: cover;
    transition: var(--transition);
}

.tone-swatch:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
    .process-preview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-preview-image {
        order: -1;
    }

    .process-preview-content {
        align-items: center;
        text-align: center;
    }

    .tone-swatches {
        justify-content: center;
    }
}

/* Categorias Premium */
.categories-section {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-text);
    max-width: 500px;
}

.link-arrow {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow:hover {
    color: var(--text-color);
    gap: 0.8rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transition: var(--transition);
}

.category-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-body);
    transform: translateY(10px);
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover .category-overlay {
    padding-bottom: 2.5rem;
}

.category-card:hover h3 {
    transform: translateY(0);
}

/* Products Page specific */
.page-header {
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--gray-light);
    background: transparent;
    color: var(--gray-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.products-grid-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.product-item {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    cursor: pointer;
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: #F4F4F4;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

.product-image .primary-image {
    position: relative;
    z-index: 1;
}

.product-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
}

.product-item:hover .primary-image {
    opacity: 0;
    transform: scale(1.05);
}

.product-item:hover .hover-image {
    opacity: 1;
    transform: scale(1.05);
}





.product-info h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 500;
    color: var(--primary-color);
}

/* Footer Section */
footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.2rem 0 1rem;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

/* Language Switcher Button */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--gray-light);
    background: transparent;
    color: var(--gray-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(142, 74, 35, 0.05);
}

.lang-btn svg {
    flex-shrink: 0;
}

.footer-logo {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-desc {
    margin-bottom: 1rem;
    max-width: 300px;
    line-height: 1.8;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.footer-column h4 {
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-item .contact-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    color: var(--white);
    flex: 1;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0 1.2rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #7A3D1A;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .heritage-image-wrapper img {
        height: 400px;
    }

    .heritage-image .floating-quote {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }

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

    .page-header h1 {
        font-size: 2.5rem;
    }

    nav.container {
        height: 70px;
    }

    .logo-container {
        font-size: 1.1rem;
        gap: 0.6rem;
    }

    .logo-img {
        height: 28px;
    }

    /* Optimized Compact Mobile Footer V3 - Definitive Alignment Fix */
    footer {
        padding: 1.5rem 0 1rem !important;
    }

    .footer-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    /* Logo arriba solo */
    .footer-logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
    }

    /* Contenedor para todos los iconos en una sola fila */
    .footer-column,
    .footer-social-links {
        display: contents !important;
    }

    /* Forzamos que los iconos se junten */
    .footer-top {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Estilo unificado para los 5 iconos */
    .footer-social-link,
    .contact-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 0.25rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .contact-item svg,
    .footer-social-link svg {
        width: 24px !important;
        height: 24px !important;
        fill: currentColor !important;
    }

    /* Dorado solo en mobile */
    @media (max-width: 768px) {

        .footer-social-link,
        .contact-item {
            color: var(--secondary-color) !important;
        }
    }

    /* Ocultar textos innecesarios en mobile */
    .footer-column h4,
    .footer-desc,
    .contact-item .contact-text {
        display: none !important;
    }

    .contact-item .contact-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        color: inherit !important;
        text-decoration: none !important;
    }

    .footer-bottom {
        padding-top: 1.5rem !important;
        font-size: 0.75rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        margin-top: 1rem !important;
    }

    .nav-links {
        display: none;
    }

    /* Herencia Familiar Reordering */
    .heritage-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .heritage-image {
        order: 1 !important;
        margin-bottom: 2rem !important;
    }

    .heritage-content {
        order: 2 !important;
    }

    .heritage-image .floating-quote {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 1rem;
        width: 85%;
        max-width: 300px;
    }

    .floating-quote p {
        font-size: 1rem;
        text-align: center;
    }

    .heritage-section {
        padding: 3rem 0;
    }

    .heritage-stats {
        order: 4 !important;
        justify-content: center !important;
        padding-top: 0 !important;
    }

    /* Proceso Preview Reordering */
    .process-preview-section {
        padding: 3rem 0;
    }

    .process-preview-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .process-preview-image {
        order: 1;
    }

    .process-preview-content {
        order: 2;
        text-align: center;
    }

    .process-preview-action {
        order: 3;
        text-align: center;
    }

    /* Quienes Somos Reordering */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .about-image {
        order: 2 !important;
    }

    .about-text {
        order: 1 !important;
    }

    /* Location Section Reordering */
    .location-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .location-map {
        order: 2 !important;
    }

    .location-text {
        order: 1 !important;
    }

    /* Section Header Padding/Overlap Fix */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }

    .categories-section {
        padding: 3rem 0;
    }

    .section-header .link-arrow {
        align-self: flex-start;
    }

    /* Hide desktop nav actions that will go into mobile menu */
    .nav-actions .btn-primary,
    .nav-actions .lang-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    /* Mobile Navigation Sub-items */
    .mobile-sub-nav {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 0.8rem;
        padding-bottom: 0.5rem;
        width: 100%;
        align-items: center;
    }

    .mobile-sub-nav a {
        font-size: 1.25rem !important;
        font-weight: 500 !important;
        opacity: 0.8;
    }

    .mobile-nav-links li {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {

    /* Imagen de cabecera de borde a borde, proporcionada */
    .cueros-gallery .gallery-image-wrapper {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-bottom: 2rem;
    }

    .cueros-gallery .gallery-image-wrapper img {
        width: 100%;
        height: auto;
        /* Mantiene la proporción original para no verse "cortada" o forzada */
        aspect-ratio: 16/9;
        /* Proporción ideal para móviles, muestra más imagen sin deformar */
        border-radius: 0;
        border: none;
        object-fit: cover;
        object-position: top center;
        /* Asegura que se vea la parte superior (los cueros) si hay recorte */
    }

    /* Tarjetas verticales con colores prominentes (2 por fila) */
    .pantone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .pantone-card {
        flex-direction: column;
        border-radius: 12px;
        align-items: stretch;
        height: auto;
    }

    .pantone-swatches {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        /* Cuadrado perfecto para que el color sea enorme y visible */
        flex-shrink: 1;
    }

    .swatch-half {
        padding: 0.5rem;
        justify-content: flex-start;
        align-items: flex-end;
    }

    .swatch-label {
        display: block;
        font-size: 0.55rem;
    }

    .pantone-info {
        padding: 0.75rem 0.5rem;
        border-top: 1px solid rgba(44, 34, 28, 0.05);
        border-left: none;
        flex: auto;
        background: var(--white);
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }

    .pantone-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .pantone-code {
        display: block;
        font-size: 0.65rem;
        margin-top: 0.15rem;
    }

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

    .logo-container {
        font-size: 1rem;
    }

    .logo-img {
        height: 24px;
    }

    .filters-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding-bottom: 0;
        margin-bottom: 2rem;
        gap: 0.75rem;
    }

    .filter-btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .products-grid-catalog {
        grid-template-columns: 1fr;
    }

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

    .page-header {
        padding: 2.5rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Product Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 34, 28, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Reusing standard modal styles for Color Modal */
.color-modal-gallery {
    padding: 2rem !important;
    background: transparent !important;
}

.color-modal-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.color-modal-image img {
    object-fit: cover;
    border-radius: 12px;
}

.color-modal-details {
    justify-content: center;
}

.texture-card {
    cursor: pointer;
}

.modal-container {
    background: var(--bg-color);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(44, 34, 28, 0.05);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.modal-gallery {
    flex: 1;
    background: #F4F4F4;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

.modal-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--white);
}

.thumb-item.active {
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.modal-desc-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.modal-desc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.modal-description {
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        max-height: 95vh;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-description {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .modal-gallery {
        padding: 1.5rem;
        gap: 1rem;
    }

    .modal-overlay {
        padding: 1rem;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 2rem 0 2rem 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    /* Fade suave en el borde inferior */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

.timeline-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    /* Subtle watermark effect */
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through to content */
}

@media (max-width: 768px) {
    .timeline-video-bg {
        display: none;
    }

    .timeline-section {
        -webkit-mask-image: none;
        mask-image: none;
        padding: 4rem 0;
        /* Espaciado estandar en movil para secciones */
    }
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(142, 74, 35, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.left {
    flex-direction: row;
}

.timeline-item.right {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 0 2rem;
}

.timeline-item.left .timeline-content {
    text-align: right;
}

.timeline-item.right .timeline-content {
    text-align: left;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px var(--bg-color), 0 4px 10px rgba(142, 74, 35, 0.2);
    z-index: 2;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px !important;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-bottom: 3rem;
        gap: 1.5rem !important;
    }

    .timeline-icon {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        flex-shrink: 0 !important;
        margin-top: 0.25rem !important;
        order: -1 !important;
        z-index: 2 !important;
    }

    .timeline-content {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        order: 1 !important;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background-color: var(--white);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    border: 1px solid rgba(44, 34, 28, 0.05);
    width: max-content;
    max-width: 90vw;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-text {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.cookie-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 1rem;
        text-align: center;
        width: calc(100% - 2rem);
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Slower reveal for specific cards */
.texture-card.reveal,
.zw-lot-card.reveal {
    transition: opacity 1.0s cubic-bezier(0.2, 0, 0.2, 1), transform 1.0s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Texture Card Hover & Stagger */
.texture-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.texture-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Cascade effect logic in JS */

/* --- Scroll To Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
}

.scroll-to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.25rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* --- Email toast fallback --- */
.email-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

.email-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}