@font-face {
    font-family:"nanosans";
    src: url('./NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf');
}

/* ===== RESET Y BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
    box-shadow: 0px 15px 40px rgba(225, 235, 80, 0.993);
    background-color: #24035ae6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== FOOTER ===== */
footer {
    box-shadow: 0px -20px 40px rgb(225, 235, 80);
    background-color: #24035ae6;
    height: 100%;
}

/* ===== TIPOGRAFÍA ===== */
h1 {
    text-shadow: -1px -2px rgb(176, 0, 0);
    color: rgb(232, 225, 92);
    font-size: clamp(40px, 8vw, 100px);
    margin: 5px;
    padding: 5px;
    width: auto;
}

h1:hover {
    color: #f2fe00;
}

h2 {
    margin: 40px 20px;
    justify-self: center;
    text-align: center;
    text-shadow: 0px 2px #000000dd;
    color: rgb(223, 234, 22);
}

h3 {
    font-size: 30px;
}

/* ===== NAVEGACIÓN ===== */
nav {
    display: flex;
    font-weight: 600;
    padding-right: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

nav a:hover {
    color: #ffffff;
}

/* ===== LINKS ===== */
a {
    text-decoration: none;
    color: rgb(176, 0, 0);
    text-shadow: 1px 1px black;
}

/* ===== LOGOS ===== */
#logomain {
    padding-left: 20px;
    height: 120px;
    width: auto;
}

#logofinal {
    width: 150px;
    height: 150px;
    margin-top: 60px;
}

/* ===== CUERPO INDEX ===== */
.cuerpo {
    background-color: #ffffff;
    margin-top: 30px;
    padding-bottom: 80px;
}

/* ===== VIDEO YOUTUBE ===== */
.video {
    justify-self: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.video-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 1100px;
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

#videoyt {
    width: min(800px, 90vw);
    height: auto;
    aspect-ratio: 16/9;
}

#blunt {
    height: clamp(80px, 12vw, 220px);
    flex-shrink: 0;
}

/* ===== SECCIÓN TEAM ===== */
#mainteam {
    background-color: black;
    padding-bottom: 60px;
    box-shadow: 0px 15px 40px rgb(0, 0, 0);
}

.team {
    margin-top: 60px;
    background-color: black;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0px -15px 40px rgba(0, 0, 0, 0.715);
    padding: 0 10px;
}

.lauti, .juli {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lauti > p, .juli > p {
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: 0;
    font-size: clamp(28px, 4vw, 50px);
    color: rgb(223, 234, 22);
    text-shadow: 2px 3px rgb(168, 0, 0);
    text-align: center;
}

#formatovideo, #videolauti {
    width: min(480px, 90vw);
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    margin-left: 0;
}

#jul1, #jul2 {
    width: min(480px, 90vw);
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    padding-left: 0;
    margin-left: 0;
}

#tim {
    justify-self: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tim > h2 {
    color: rgb(223, 234, 22);
    font-size: clamp(50px, 8vw, 90px);
    text-shadow: 2px 3px rgb(168, 0, 0);
    justify-self: center;
    margin: 5px;
}

#titulito {
    margin-left: 0;
    text-align: center;
    font-size: clamp(30px, 5vw, 50px);
    color: rgb(223, 234, 22);
    text-shadow: 2px 3px rgb(168, 0, 0);
    padding: 20px 0 0 0;
}

.gonza {
    display: flex;
    background-color: black;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.gonza > video, #videogonza {
    width: min(480px, 90vw);
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* ===== TARJETAS DE PRODUCTOS ===== */
section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
}

.productosmain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tarjeta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px;
    justify-self: center;
}

.tablaarg {
    width: 100%;
    max-width: 380px;
    height: 380px;
    object-fit: contain;
    background-color: #f5f5f5;
}

.esp {
    text-align: center;
}

/* ===== SECCIÓN PUBLITABLA (hojaT) ===== */
.publitabla {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 80px;
    margin-top: 60px;
    padding: 0 20px;
}

.publitabla > p {
    text-align: center;
    font-size: clamp(14px, 2.5vw, 20px);
    max-width: 300px;
}

#videomanual, .publitabla > video {
    width: min(480px, 90vw);
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
}

/* ===== SECCIÓN PAGO (hojaS) ===== */
.alias {
    margin-left: 0;
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#realias {
    font-size: 23px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-shadow: 0px -3px rgb(255, 245, 55);
    color: rgb(115, 5, 174);
}

#imagenmercado {
    width: 110px;
}

#videoberrics {
    width: 100%;
    height: clamp(200px, 40vw, 400px);
    margin-bottom: 40px;
    margin-top: 60px;
    object-fit: cover;
    display: block;
}

/* ===== FOOTER ===== */
.logoypie {
    flex-direction: column;
    display: flex;
    align-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logoypie p {
    color: rgb(200, 200, 200);
    font-size: clamp(12px, 2vw, 16px);
    text-align: center;
    max-width: 90vw;
}

#dolar {
    color: rgba(224, 222, 92, 0.959);
}

#plug {
    color: rgba(224, 222, 92, 0.959);
}

/* ===== RESPONSIVE: TABLET (max 900px) ===== */
@media (max-width: 900px) {
    section {
        grid-template-columns: 1fr;
    }

    .productosmain {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .team {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
    }

    #tim {
        flex-direction: column;
        gap: 0px;
    }

    #formatovideo, #videolauti, #jul1, #jul2 {
        width: min(220px, 38vw);
    }

    .gonza {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .gonza > video, #videogonza {
        width: min(220px, 32vw);
    }
}

/* ===== RESPONSIVE: MOBILE (max 600px) ===== */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        text-align: center;
    }

    #logomain {
        padding-left: 0;
        height: 60px;
    }

    h1 {
        font-size: 40px;
        text-align: center;
        margin: 0;
        padding: 5px;
    }

    nav {
        justify-content: center;
        padding-right: 0;
        gap: 15px;
        padding-bottom: 10px;
    }

    .video {
        flex-direction: column;
    }

    .video-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #blunt {
        display: none; /* En mobile se ocultan las imágenes laterales del video */
    }

    section {
        grid-template-columns: 1fr;
    }

    .productosmain {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .tarjeta {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .tablaarg {
        width: 110px;
        height: 140px;
        flex-shrink: 0;
    }

    .esp {
        text-align: left;
        font-size: 14px;
    }

    .esp ul {
        padding-left: 16px;
        margin: 5px 0;
    }

    h2 {
        margin: 30px 10px;
        font-size: clamp(24px, 6vw, 40px);
    }

    .publitabla {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 40px;
    }

    .alias {
        padding: 20px 15px;
    }

    .team {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .gonza {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .gonza > video, #videogonza {
        width: min(120px, 32vw);
    }

    #formatovideo, #videolauti, #jul1, #jul2 {
        width: min(160px, 35vw);
    }

    #tim {
        flex-direction: column;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 2px;
        min-width: fit-content;
    }

    #tim > h2 {
        font-size: clamp(28px, 7vw, 50px);
        margin: 2px;
    }

    #videomanual, .publitabla > video {
        width: min(160px, 38vw);
    }

    #logofinal {
        width: 100px;
        height: 100px;
        margin-top: 30px;
    }

    h3 {
        font-size: 22px;
    }
}
