* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #fdc000;
    color: #000;
    font-family: "Figtree", sans-serif;
}

:root {
    --max-width: 1200px;
    --side-padding: 5vw;
}

/* HEADER */

.site-header {
    width: min(
        var(--max-width),
        calc(100% - var(--side-padding) * 2)
    );

    margin: 0 auto;
    padding: 20px 0;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    position: absolute;
    top: 30px;
    left: max(
        var(--side-padding),
        calc((100% - var(--max-width)) / 2)
    );
    width: 200px;
    z-index: 1000;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.menu {
    position: absolute;
    top: 25px;
    right: max(
        var(--side-padding),
        calc((100% - var(--max-width)) / 2)
    );
    display: flex;
    gap: 32px;
    z-index: 1000;
}

.menu a {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
padding: 2px 6px;
transition: background-color 0.25s ease, color 0.25s ease;
}

.menu a:hover {

  background-color: #000;
     color: #fdc000;
}

/* INTRO */

.intro {
    width: min(var(--max-width), calc(100% - var(--side-padding) * 2));
    margin: 0 auto;

    padding-top: 180px;
    padding-bottom: 60px;
}

.intro p {
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    line-height: 1;
}

.intro a {
    color: #000;
    text-decoration: none;
    padding: 0 4px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.intro a:hover {
    background-color: #000;
    color: #fdc000;
}
.intro p span {
    display: block;
}

/* CARDS */


.container {
    width: min(var(--max-width), calc(100% - var(--side-padding) * 2));
    margin: 0 auto;
    padding: 0 0 90px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    width: 100%;
    height: clamp(300px, 30vw, 500px);
    overflow: hidden;
    border-radius: 24px;
    background: #fdc000;
    transition: transform 0.35s ease;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-10px) rotate(-1deg);
}

.imgbox {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.imgbox img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.48, -0.28, .41, 1.4);
}

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

/* STICKER */

.sticker {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #fdc000;
    color: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;

    text-align: center;

    font-size: 0.85rem;
    line-height: 0.95;
    font-weight: 700;

    z-index: 10;

    transform: rotate(8deg);

    transition:
        transform 0.35s ease,
        background-color 0.35s ease;

}

.card:hover .sticker {
    transform: rotate(-5deg) scale(1.08);
}

.sticker-allo {
    background: #000;
    color: #fdc000;
}

.sticker-rojo {
    background: #e64416;
    color: #000;
}

/* CONTENIDO DESPLEGABLE */

.content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;

    max-height: 70px;

    padding: 14px 18px 20px;

    background: #fffeea;
    border-radius: 20px 20px 0 0;

    overflow: hidden;

    transition:
        max-height 0.5s cubic-bezier(.48, -0.28, .41, 1.4);
}

.card:hover .content {
    max-height: 100%;
}

.content h2 {
    margin-top: 7px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #000;
}

.content p {
    max-width: 240px;
    margin: 12px auto 0;
    padding: 0;

    line-height: 1.4;
    text-align: center;
    color: #000;

    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.35s ease 0.1s,
        transform 0.5s ease;
}

.card:hover .content p {
    opacity: 1;
    transform: translateY(0);
}



/* FOOTER */

.site-footer {
    width: min(var(--max-width), calc(100% - var(--side-padding) * 2));
    margin: 0 auto;
    padding: 15px 0 35px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 2px solid #000;

    font-size: 0.9rem;
    font-weight: 600;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #000;
        text-decoration: none;
}
.site-footer a:hover {
    color: #000;
        text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card {
        height: clamp(350px, 40vw, 500px);
    }
    .intro {
        margin-top: 10px;
        padding-top: 180px;
    }

    .intro p {
        margin-top: 0;
        margin-bottom: 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {

    :root {
        --side-padding: 8vw;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card {
        height: 350px;
        border-radius: 20px;
    }

    .menu {
        gap: 5px;
    }

    .menu a {
        font-size: 0.95rem;
    }

    .logo {
        width: 140px;
    }


    .intro {
        margin-top: 10px;
        padding-top: 130px;
    }

    .intro p {
        margin-top: 0;
        margin-bottom: 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    .logo {
        margin-top: 40px;
         left: 7vw;
    }
    .intro {
        margin-top: 10px;
        padding-top: 160px;
    }
    .menu {
           left: 6vw;
           right: auto;
           justify-content: flex-start;
           text-align: left;
       }

}

/* =========================
   SELECTOR DE IDIOMA
========================= */

.language-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.language-switch span {
    font-size: 0.95rem;
    font-weight: 600;
}

.lang {
    border: 0;
    background: transparent;
    padding: 2px 4px;
    color: #000;
    font-family: "Figtree", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.lang:hover,
.lang.active {
    background: #000;
    color: #fdc000;
}
