
/* ==========================================
   CONFIGURACIÓN GENERAL
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: #080808;
    color: #f7f3eb;
    font-family: "Montserrat", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

/* ==========================================
   NAVEGACIÓN
========================================== */


/* ==========================================
   NAV MCMS - ESTILO ORIGINAL ADAPTADO
========================================== */

nav {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 90px;
}

a {
    text-decoration: none;
}

/* LOGO PRINCIPAL */

nav .link {
    position: absolute;
    padding: 20px 50px;
    margin-top: -0.5%;
}

nav .link img {
    width: 189px;
}

/* LISTA DE NAVEGACIÓN */

nav ul {
    float: right;
    z-index: 9999;
    margin-right: 22%;
    margin-top: 5px;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    z-index: 9999;
    margin: 0 12px;
}

nav ul li a {
    z-index: 9999;
    color: #fff;
    font-size: 15px;
    font-family: "Quicksand", sans-serif;
    border-radius: 3px;
    padding: 2px 9px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: normal;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #d8b777;
}

/* LOGO YOUNGFEST */

nav .liyf {
    transition: 0.5s;
    object-fit: cover;
    margin-top: -12%;
    margin-left: 99%;
}

nav .liyf img {
    width: 180px;
    max-height: none;
    object-fit: contain;
}

nav .liyf:hover {
    transform: scale(1.1);
}

/* EFECTO HOVER */

nav #zoom {
    transition: 0.5s;
    object-fit: cover;
}

nav #zoom:hover {
    transform: scale(1.2);
}

/* BOTÓN MENÚ MÓVIL */

nav .checkbtm {
    margin-top: 2%;
    position: absolute;
    display: none;
    cursor: pointer;
}

nav #check {
    display: none;
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 1050px) {

    nav ul {
        margin-right: 15%;
    }

    nav ul li {
        margin: 0 6px;
    }

    nav ul li a {
        font-size: 13px;
    }

    nav .liyf img {
        width: 140px;
    }
}

/* ==========================================
   MENÚ RESPONSIVE
========================================== */

@media (max-width: 800px) {

    nav {
        height: 90px;
    }

    nav .checkbtm {
        display: block;
        z-index: 10000;
        top: 0;
        left: 22px;
        margin-top: 25px;
    }

    nav .checkbtm img {
        width: 43px;
    }

    nav .link {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        margin: 0;
    }

    nav .link img {
        width: 170px;
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: calc(100dvh - 90px);
        background: black;
        top: 90px;
        left: -110%;
        margin: 0;
        padding: 30px 15px;

        float: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;

        text-align: center;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    nav ul li {
        display: block;
        margin: 0;
        line-height: 40px;
    }

    nav ul li a {
        font-size: 16px;
    }

    nav #check:checked ~ ul {
        left: 0;
    }

    nav .liyf {
        margin: 10px 0 0;
    }

    nav .liyf img {
        width: 160px;
    }

    nav #zoom:hover {
        transform: scale(1.05);
    }
}

/* ==========================================
   CELULARES PEQUEÑOS
========================================== */

@media (max-width: 400px) {

    nav .link img {
        width: 145px;
    }

    nav .checkbtm {
        left: 15px;
    }

    nav .checkbtm img {
        width: 38px;
    }
}


/* ==========================================
   PORTADA PRINCIPAL
========================================== */

.campaign-hero {
    min-height: 760px;
    height: 92svh;
    max-height: 1050px;

    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;

    margin-top: 90px;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #050505e8 0%,
            #050505b0 48%,
            #05050555 100%
        ),
        linear-gradient(
            0deg,
            #080808 0%,
            transparent 35%
        );
}

.hero-content {
    position: relative;
    z-index: 1;

    width: min(1200px, 90%);
    margin: auto;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d8b777;
}

.hero-content h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(82px, 13vw, 185px);
    line-height: 0.85;
    letter-spacing: 2px;
    margin: 28px 0;
}

.hero-content h1 em {
    font-style: normal;
    color: #d8b777;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
    max-width: 600px;
    color: #eee5d8;
}

.hero-link {
    display: inline-flex;
    gap: 20px;
    align-items: center;

    margin-top: 30px;
    padding: 17px 23px;

    border: 1px solid #d8b777;
    color: #f8e6c0;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    transition: 0.3s;
}

.hero-link:hover,
.more-button:hover {
    background: #d8b777;
    color: #111;
    transform: translateY(-3px);
}

.hero-link span {
    font-size: 22px;
}

.hero-side {
    position: absolute;
    bottom: 40px;
    right: 5%;

    color: #e8d9bb80;
    letter-spacing: 4px;
    font-size: 10px;
}

/* ==========================================
   SECCIONES GENERALES
========================================== */

.gallery-section,
.campaign-section {
    padding: 105px max(22px, 5vw);
}

.gallery-section {
    background: radial-gradient(
        ellipse at 50% 0%,
        #292015 0%,
        #0b0b0b 60%
    );
}

.section-intro {
    max-width: 900px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-intro h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.95;

    margin: 18px 0;
    letter-spacing: 1px;
}

.section-intro h2 span {
    color: #d8b777;
}

.section-intro p {
    font-size: 14px;
    line-height: 1.8;
    color: #b8b2a9;
}

/* ==========================================
   GALERÍA DE IMÁGENES
========================================== */

.photo-gallery {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 18px;
    align-items: center;
}

.photo-gallery figure {
    margin: 0;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ffffff20;
}

.photo-gallery figure:nth-child(2) {
    height: 440px;
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.photo-gallery figure:hover img {
    transform: scale(1.04);
}

/* ==========================================
   SECCIÓN DE CAMPAÑAS
========================================== */

.campaign-section {
    background: linear-gradient(
        #0b0b0b,
        #11100e 45%,
        #080808
    );
}

/* ==========================================
   FILTROS POR AÑO
========================================== */

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;

    margin: 0 auto 20px;
}

.filter {
    background: #ffffff08;
    border: 1px solid #ffffff26;
    border-radius: 100px;

    color: #ddd;
    padding: 11px 20px;
    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
    transition: 0.25s;
}

.filter:hover,
.filter.active {
    background: #d8b777;
    border-color: #d8b777;
    color: #14110d;
}

.result-count {
    text-align: center;
    font-size: 12px;
    color: #8e8981;
    margin: 0 0 32px;
}

/* ==========================================
   GRID DE CAMPAÑAS
========================================== */

.campaign-grid {
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ==========================================
   TARJETAS DE CAMPAÑAS
========================================== */

.campaign-card {
    min-width: 0;

    border: 1px solid #ffffff1c;
    border-radius: 16px;
    background: #181715;

    overflow: hidden;

    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.campaign-card:hover {
    transform: translateY(-6px);
    border-color: #d8b77775;
    box-shadow: 0 15px 35px #0008;
}

.campaign-card[hidden] {
    display: none !important;
}

/* ==========================================
   VIDEOS IFRAME
========================================== */

.campaign-media {
    aspect-ratio: 16 / 9;
    background: #000;
}

.campaign-media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   INFORMACIÓN DE CADA CAMPAÑA
========================================== */

.campaign-copy {
    padding: 24px;
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #d8b777;
}

.campaign-meta time {
    color: #a5a099;
    letter-spacing: 0;
}

.campaign-copy h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.8px;

    margin: 19px 0 10px;
}

.campaign-copy p {
    font-size: 12px;
    line-height: 1.8;
    color: #c4beb5;
    margin: 0;
}

/* CAMPAÑAS DESTACADAS */

.campaign-card.featured {
    border-color: #d8b77755;
    background: #211d17;
}

/* ==========================================
   BOTÓN MÁS CAMPAÑAS
========================================== */

.more-wrap {
    text-align: center;
    margin-top: 60px;
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;

    padding: 18px 25px;
    border: 1px solid #d8b777;
    color: #d8b777;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    transition: 0.3s;
}

.more-button span {
    font-size: 22px;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
    background: radial-gradient(
        circle at top,
        #171717,
        #000 75%
    );

    padding: 80px 30px;
    color: #eee;
    border-top: 1px solid #ffffff1a;
}

.footer-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "logo logo logo"
        "menu young social";

    gap: 50px;
    text-align: center;
}

.footer-logo {
    grid-area: logo;
}

.footer-menu {
    grid-area: menu;
}

.footer-youngfest {
    grid-area: young;
}

.footer-social {
    grid-area: social;
}

.footer-logo img {
    width: 200px;
    max-width: 100%;
}

.footer-youngfest img {
    width: 170px;
    max-width: 100%;
}

.footer-menu h2,
.footer-social h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
}

.footer-menu a {
    display: block;
    margin: 12px 0;
    font-size: 12px;
    color: #d2d2d2;
}

.footer-menu a:hover,
.instagram a:hover {
    color: #d8b777;
}

.instagram a {
    font-size: 12px;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.icons img {
    width: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.icons img:hover {
    opacity: 1;
}

/* ==========================================
   WHATSAPP FLOTANTE
========================================== */

.contw {
    position: fixed;
    z-index: 999;
    bottom: 12px;
    right: 12px;
}

.botonw {
    width: 80px;
    transition: transform 0.3s;
}

.botonw:hover {
    transform: scale(1.08);
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 1050px) {

    .campaign-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    nav ul {
        gap: 12px;
    }

    nav li a {
        font-size: 11px;
    }

    .liyf img {
        width: 100px;
    }
}

/* ==========================================
   MENÚ MÓVIL Y TABLETS PEQUEÑAS
========================================== */

@media (max-width: 800px) {

    nav {
        padding: 0 20px;
    }

    nav .link {
        margin: auto;
    }

    nav .link img {
        width: 155px;
    }

    .checkbtm {
        display: block;
        position: absolute;
        left: 20px;
        cursor: pointer;
        z-index: 2;
    }

    .checkbtm img {
        width: 37px;
    }

    nav ul {
        position: fixed;
        left: -110%;
        top: 90px;

        width: 100%;
        height: calc(100dvh - 90px);

        background: #070707;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 30px;

        transition: left 0.3s;
        overflow: auto;
    }

    #check:checked ~ ul {
        left: 0;
    }

    nav li a {
        font-size: 15px;
    }

    .liyf img {
        width: 150px;
    }

    .campaign-hero {
        min-height: 610px;
        height: 75svh;
    }

    .hero-content h1 {
        font-size: clamp(70px, 15vw, 120px);
    }

    .photo-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .photo-gallery figure {
        height: 260px;
    }

    .photo-gallery figure:nth-child(2) {
        height: 310px;
    }

    .photo-gallery figure:last-child {
        grid-column: 1 / -1;
        height: 270px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "menu"
            "young"
            "social";

        gap: 30px;
    }
}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 600px) {

    .campaign-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section,
    .campaign-section {
        padding: 75px 18px;
    }

    .campaign-hero {
        min-height: 560px;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, #000d, #0006),
            linear-gradient(0deg, #080808, transparent 45%);
    }

    .hero-content h1 {
        font-size: 76px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-side {
        display: none;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .photo-gallery figure,
    .photo-gallery figure:nth-child(2),
    .photo-gallery figure:last-child {
        grid-column: auto;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .campaign-copy {
        padding: 22px;
    }

    .filter {
        padding: 10px 15px;
    }

    .botonw {
        width: 65px;
    }
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
