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

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
}

:root {
    --color-bg: #0a0a0a;
    /* Negro Absoluto Premium */
    --color-text: #f5f5f5;
    /* Blanco/Gris muy claro para lectura */
    --color-primary: #c4a15c;
    /* Oro Libélula Oficial */
    --color-secondary: #8E5A2D;
    /* Madera Cálida */
    --font-heading: 'Georgia', serif;
    --font-body: 'System-ui', -apple-system, sans-serif;
    --spacing-base: 1rem;
}

html {
    scroll-behavior: smooth;
}

/* Compensa la altura de la cabecera fija en todos los anclajes */
[id] {
    scroll-margin-top: 110px;
}

body {
    background-color: var(--color-bg);
    background-image: url('img/logo.webp');
    background-position: center center;
    background-repeat: space;
    background-size: 250px;
    background-attachment: fixed;
    background-blend-mode: color-burn;
    /* Libélula sutil de fondo */
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    /* Header oscuro translúcido */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(196, 161, 92, 0.2);
}

/* =========================================
   TÍTULOS PREMIUM DORADOS
   ========================================= */
.hero__title,
.universos__title,
.story-hero__title,
.story-gallery__title,
.story-text__title,
.story-text__subtitle {
    color: var(--color-primary) !important;
    text-shadow: 0 0 15px rgba(196, 161, 92, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

/* Transparencia para que el fondo se vea en las secciones */
.main-content,
.filosofia,
.story-gallery,
.story-text {
    background-color: transparent !important;
}

.filosofia__paragraph,
.story-text__paragraph {
    color: #d0d0d0 !important;
}

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

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    max-height: 55px;
    /* Altura controlada para que no deforme el menú */
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header__menu {
    display: flex;
    gap: 2rem;
}

.header__link {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header__link:hover {
    color: var(--color-primary);
}

.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.header__toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 99;
    }

    .header__nav.is-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header__menu {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .header__item {
        margin: 0 0 1.5rem 0;
    }

    /* Animación del botón a 'X' */
    .header__toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .header__toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/tienda/47.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
    max-width: 800px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(196,161,92,0.4);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
}

.btn--primary:hover {
    background-color: #B54700;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 84, 0, 0.25);
}

/* ==========================================================================
   FILOSOFIA
   ========================================================================== */
.filosofia {
    padding: 5rem 1rem;
    background-color: var(--color-bg);
}

.filosofia__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.filosofia__title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.filosofia__paragraph {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.1rem;
}

.filosofia__image-wrapper {
    width: 100%;
}

.filosofia__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   UNIVERSOS
   ========================================================================== */
.universos {
    position: relative;
    padding: 6rem 1rem;
    background-color: #121212 !important;
    /* Gris grafito oscuro, distinto al fondo */
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    z-index: 1;
}

/* El papel tapiz de libélula */
.universos::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img/logo.webp');
    background-position: center;
    background-repeat: space;
    background-size: 180px;
    opacity: 0.25 !important;
    /* Aumentamos la visibilidad del papel tapiz al 15% */
    z-index: -1;
}

.universos__container {
    max-width: 1200px;
    margin: 0 auto;
}

.universos__title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.universos__subtitle {
    text-align: center;
    color: #d0d0d0;
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.universos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.universo-card {
    background-color: #0a0a0a;
    /* Tarjetas en negro puro para contrastar */
    border: 1px solid rgba(196, 161, 92, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.universo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(196, 161, 92, 0.15);
    border-color: var(--color-primary);
}

.universo-card__img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.universo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.universo-card:hover .universo-card__img {
    transform: scale(1.08);
}

.universo-card__content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.universo-card__title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.universo-card__desc {
    color: #f5f5f5 !important;
    /* Texto en blanco puro para que resalte */
    font-size: 1rem !important;
    /* Un pelín más grande para facilitar lectura */
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================================================
   COMPROMISO
   ========================================================================== */
.compromiso {
    background-color: var(--color-text);
    /* Fondo oscuro usando la variable Piedra Oscura */
    color: var(--color-bg);
    padding: 6rem 1rem;
    text-align: center;
}

.compromiso__container {
    max-width: 800px;
    margin: 0 auto;
}

.compromiso__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.compromiso__text {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #050505 !important;
    /* Negro absoluto del final */
    color: #E0DCD3;
    padding: 5rem 1rem 1.5rem;
    border-top: 2px solid var(--color-primary);
    /* Línea dorada separadora */
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo {
    max-width: 140px;
    margin-bottom: 1.5rem;
    filter: brightness(0.9);
}

.footer__desc {
    line-height: 1.6;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer__title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer__info {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.btn--whatsapp {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn--whatsapp:hover {
    background-color: var(--color-primary);
    color: #120F0D;
    transform: translateY(-2px);
}

.footer__menu {
    list-style: none;
    padding: 0;
}

.footer__item {
    margin-bottom: 0.8rem;
}

.footer__link {
    color: #E0DCD3;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.footer__link:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ==========================================================================
   STORYTELLING (ARTE EN MADERA)
   ========================================================================== */
.story-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/arte_pirograbado/11.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.story-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 23, 20, 0.3);
}

.story-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.story-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.story-hero__subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

.story-text {
    padding: 5rem 1rem;
    background-color: var(--color-bg);
}

.story-text__container {
    max-width: 900px;
    margin: 0 auto;
}

.story-text__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.story-text__paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.story-text__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 4rem 0;
    align-items: center;
}

@media (min-width: 768px) {
    .story-text__columns {
        grid-template-columns: 1fr 1fr;
    }
}

.story-text__subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.process-list {
    padding-left: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.process-list li {
    margin-bottom: 1rem;
}

.process-list strong {
    color: var(--color-text);
}

.story-text__img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-text__cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary);
}

.story-text__highlight {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* GALERÍA MASONRY CSS */
.story-gallery {
    padding: 0 1rem 5rem;
    background-color: var(--color-bg);
}

.story-gallery__container {
    max-width: 1200px;
    margin: 0 auto;
}

.story-gallery__title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 600px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 4;
    }
}

.masonry-grid__item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-grid__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.masonry-grid__img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* =========================================
   FOOTER RESPONSIVE (MÓVILES)
   ========================================= */
@media screen and (max-width: 768px) {
    .footer {
        text-align: center !important;
    }

    .footer__container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    .footer__brand,
    .footer__contact,
    .footer__links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer__logo {
        margin: 0 auto 1rem auto !important;
    }

    .footer__buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer__buttons .btn {
        width: 80% !important;
        max-width: 300px !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer__bottom {
        text-align: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__bottom p {
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 0.85rem !important;
        /* Reducimos sutilmente el tamaño en móvil */
        line-height: 1.5 !important;
    }
}

/* =========================================
   COOKIE BANNER PREMIUM
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    border-top: 1px solid #c4a15c;
    padding: 1rem 2rem;
    display: none;
    /* Oculto por defecto, JS lo activa */
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.8);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    max-width: 75%;
}

.cookie-banner a {
    color: #c4a15c;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .cookie-banner p {
        max-width: 100%;
    }
}

/* =========================================
   AJUSTES PREMIUM (LISTAS Y BOTONES)
   ========================================= */
strong,
b {
    color: var(--color-primary);
    font-weight: 700;
}

.process-list li {
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.story-text__cta {
    background-color: #121212 !important;
    border: 1px solid var(--color-primary) !important;
    border-radius: 8px;
}

.story-text__highlight {
    color: var(--color-primary) !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.story-text__cta .btn {
    background-color: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.story-text__cta .btn:hover {
    background-color: var(--color-primary) !important;
    color: #0a0a0a !important;
    box-shadow: 0 0 15px rgba(196, 161, 92, 0.4) !important;
}

.compromiso {
    background-color: #f5f5f5 !important;
    color: #0a0a0a !important;
}