:root {
    --primary-color: #000;
    --secondary-color: #fff;

        --accent-color: #2f2f2f;
        --accent-color-dark: #f3f1ec;
        --accent-color-light: #e1e0e0;


    --text-light: #464646;
}
svg#sacchetto path.ico {
    fill: #777
}

.scrolled svg#sacchetto path.ico {
    fill: #777   
}


svg#sacchetto path.letras {
    fill: #fff;
}

svg#ico path:last-of-type {
    fill: #fff;
}

svg#ico path:first-of-type {
    fill: var(--accent-color);
}

body {
    background: var(--secondary-color);
    color: var(--primary-color);
    overflow-x: hidden;
    line-height: 1.6;
}
body *:not(h1) {font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;}

/* Header estilo WeTransfer */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /*
    mix-blend-mode: difference;
        color: white;
        */
    transition: all 0.3s ease;
}

.scrolled .header {
    background-color:  var(--accent-color);
    background-color: #111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
}

.logo svg {
    width: 24px;
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 0px;
    fill: currentColor;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--accent-color-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.scrolled .nav a { color: #fff;}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d1915 url('../img/hero.jpg') no-repeat;
    background-size: auto 32vw;
    background-position: 18% center;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 20px;
    margin-left: 15vw;
    letter-spacing: -2px;
}

h1 + p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
}

h2 {color: var(--accent-color);}

/* Layout de texto */
.text-section {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.text-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
    
}

.quote-block {
    position: sticky;
    top: 120px;
}

.large-quote {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
    transform: translateY(-4px);
    filter: drop-shadow(0 2px 2px rgba(0 0 0 / .3));
}

.button:hover svg path {
    fill: #e1e1e1;
}

.content-block {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
}

.content-block p {
    margin-bottom: 30px;
}

/* Footer */
.footer {
    padding: 80px 40px;
    text-align: center;
    background: var(--accent-color);
    background-color: #111;
    color: #fff;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer svg {
    margin: 0 auto 20px;
    height: 70px;
}


.footer p {
    margin-bottom: 20px;
    opacity: 0.7;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

/* Responsive */
@media (max-width: 1024px) {
    .text-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .quote-block {
        position: static;
    }

        .hero-title {
            margin: 0 auto;
        }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
        position: fix;
    }

    .nav {
        display: none;
    }

    .hero {
            height: 60vh;
            flex-flow: column;
            align-items: normal;
            justify-content: flex-end;
            position: relative;
            overflow: hidden;
            background-color: #000;
            padding: 0;
    }

    .hero-content {
        position: relative;
        margin-bottom: min(90px, 20vw);
    }

    .hero-image {
        height: 60vh;
        background-position: center 30%;
        background-size: 60vw auto
    }
    .text-section {
        padding: 60px 20px;
    }

}

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

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Efectos de scroll suave */


h1 span {
    font-size: min(36px, 50%);
    font-weight: 300;
    display: block;
    letter-spacing: 1px;
    color:var(--accent-color);
    font-style: normal !important;
}

/* Estilos base para elementos .tipo */
.hero .tipo-auto {
    font-size: clamp(6rem, 15vw, 12rem);
    color: var(--accent-color);
    color: #FFF;
    filter: drop-shadow(3px 3px 8px #000);
}

[class^="tipo-"] {
    display: inline-block;
    transition: all 0.25s ease !important;
    /* Forzar transición suave */
    margin: 5px auto;
    filter: drop-shadow(0px 0px 50px rgba(172, 239, 3, 0.5));
}

/* Clases específicas por categoría (añadidas automáticamente por JS) */
[class^="tipo-"].font-serif {
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: "kern" 1, "liga" 1;
}

[class^="tipo-"].font-mono {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

[class^="tipo-"].font-display {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

[class^="tipo-"].font-script,
[class^="tipo-"].font-casual {
    padding: 0 4px;
}

.tipo-hover {
    max-width: 90%;
    text-align: left;
}

.masonry > * {
    display: block;
}

.masonry-texto {
    padding: min(20vw, 60px);
    display: grid;
    place-items: center;
}

/*
.masonry video {
    display: none;
}
*/
.masonry > * {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (min-width: 1024px) {

    .masonry {
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;
        gap: 15px;
        width: min(1400px, 90%);
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(7, 150px);
        grid-template-areas:
            "f1 f1 f1 f2"
            "f1 f1 f1 f2"
            "f3 f3 f4 f4"
            "f3 f3 f4 f4"
            "f3 f3 f6 f6"
            "f5 f5 f6 f6"
            "f5 f5 f6 f6"
            "f7 f7 f7 f8";
    }


    .masonry > *:nth-child(1) {
        grid-area: f1;
    }

    .masonry > *:nth-child(2) {
        grid-area: f2;
    }

    .masonry > *:nth-child(3) {
        grid-area: f3;
    }

    .masonry > *:nth-child(4) {
        grid-area: f4;
    }

    .masonry > *:nth-child(5) {
        grid-area: f5;
    }

    .masonry > *:nth-child(6) {
        grid-area: f6;
    }

    .masonry > *:nth-child(7) {
        grid-area: f7;
    }

    .masonry > *:nth-child(8) {
        grid-area: f8;
    }

    .masonry-texto {
        padding: min(40px, 5%);
        display: grid;
        place-items: center;
    }

    .masonry > * {
        object-fit: cover;
    }

    .masonry video {
        display: inherit;
    }

}

.caja {
    width: min(1400px, 90%);
    margin: 0 auto;
    text-align: center;
    padding: min(100px, 20vw) 0;
}

img[alt="Cubo Rubik Sacchetto Comunicación"] {
    width: min(200px, 80%);
    height: auto;
    margin:0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}