/** --- Base */
/* Font Faces */
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-Thin.ttf);
    font-style: normal;
    font-weight: 100;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-ExtraLight.ttf);
    font-style: normal;
    font-weight: 200;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-Light.ttf);
    font-style: normal;
    font-weight: 300;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-Regular.ttf);
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-Medium.ttf);
    font-style: normal;
    font-weight: 500;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-SemiBold.ttf);
    font-style: normal;
    font-weight: 600;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-Bold.ttf);
    font-style: normal;
    font-weight: 700;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-ExtraBold.ttf);
    font-style: normal;
    font-weight: 800;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/srcs/fonts/Montserrat-Black.ttf);
    font-style: normal;
    font-weight: 900;
}

/* Animaciones */
@keyframes down {
    0% {
        opacity: 0;
        transform: translateY(-8rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ahora si xd */
:root {
    /** Colores */
    --color-1: #0726D9;
    --color-2: #031240;
    --color-3: #1760BF;
    --color-4: #3D9DF2;
    --color-5: #52C5F2;

    --blanco: #FFF;
    --negro: #FFF;
    --gris: #ebebeb;

    --color-success: #22bb33;
    --color-waring: #f0ad4e;
    --color-danger: #bb2124;

    /** Tipografia */
    --fuente: 'Montserrat', sans-serif;
}

body {
    --text-color: var(--color-2);

    --bg: var(--blanco);
}

/** Globales  */
html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuente);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg);
    position: relative;
}

img {
    display: block;
    width: 100%;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

.contenedor {
    width: 95%;
    margin: 0 auto;
    max-width: 120rem;
}

.btn {
    display: inline-block;
    background-color: var(--color-4);
    color: var(--blanco);
    padding: 1.5rem 4rem;
    border-radius: 5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 0;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-.3rem);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
}
.header__logo {
    color: var(--blanco);
    text-align: center;
    margin: 0;
    font-size: 2.4rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-3) 0%, var(--color-4) 100%);
    color: var(--blanco);
    padding: 10rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.cta-button {
    background-color: var(--bg);
    color: var(--color-3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.stat-label {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Elementos decorativos */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 3rem;
    height: 3rem;
    top: -15rem;
    right: -10rem;
}

.circle-2 {
    width: 20rem;
    height: 20rem;
    bottom: -5rem;
    left: -5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Sections */
.section {
    scroll-margin-top: 2rem;
}
/*
.section__name {

} */

@media screen and (min-width: 790px) {
    .section-productos-layout {
        display: grid;
        grid-template-columns: 25rem 1fr;
        gap: 1rem;
    }
}
/* Productos */
@media screen and (min-width: 520px) {
    .productos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media screen and (min-width: 1060px) {
    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}
.producto {
    margin-bottom: 5rem;
    cursor: pointer;
    opacity: 0;
}
.swal2-popup .producto {
    opacity: 1;
}
.producto:last-child {
    margin-bottom: 0;
}
.producto.visible {
    animation: down .3s ease-in-out forwards;
}
.producto.ocultar {
    display: none;
}
.producto__imagen {
    border: 2px solid var(--color-5);
    border-radius: .5rem;
    height: 15rem;
    width: 100%;
    object-fit: contain;
    padding: 1rem;
    user-select: none;
    transition: border .2s ease-in-out;
}
.swal2-popup .producto__imagen {
    border: 0;
}
.producto:hover .producto__imagen {
    border-width: 4px;
}
.producto__name {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    margin: 1rem 0;
}
.producto__precio {
    margin: 0;
}
.producto-actions {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.producto__action {
    height: 4rem;
    width: 4rem;
    padding: .9rem;
}
.producto__action--imagen {
    width: 100%;
}

/* Aside */
.aside {
    text-align: center;
    margin-bottom: 4rem;
}
@media screen and (min-width: 790px) {
    .aside {
        width: 25rem;
    }
}
.aside__name {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
}
.aside .form-filtros .campo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}
.aside .form-filtros .campo:last-child {
    margin-bottom: 0;
}
.aside .form-filtros .campo__input--checkbox {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    border-radius: .5rem;
    border: 2px solid var(--color-4);
}
.aside .form-filtros .campo__input--checkbox:checked {
    background-color: var(--color-5);
}
.aside .form-filtros .campo__input--checkbox:checked::before {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.aside .form-filtros .campo__label {
    font-size: 1.8rem;
    cursor: pointer;
}
.form__reset {
    padding: 1rem 3.5rem;
    margin-top: 1rem;
    border: 0;
}

/* Footer */
.footer {
    margin-top: 5rem;
    background-color: var(--color-3);
    color: var(--blanco);
    padding: 1rem 0;
}
.footer a {
    color: var(--blanco);
    text-decoration: underline;
}
@media screen and (min-width: 540px) {
    .footer-sections {
        display: flex;
        align-self: center;
        justify-content: space-between;
    }
}
.footer-section {
    margin-bottom: 4rem;
    width: 100%;
}
.footer-section__name {
    font-size: 2.4rem;
    margin: 0;
    margin-bottom: 1rem;
}
.footer__copy {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    margin-top: 2rem;
}

/* Alertas */
.swal2-popup {
    font-size: 1.6rem;
}