/* ========================================================
   PALETA DE COLORES OFICIAL TENLAB
======================================================== */
:root {
    --tenlab-white: #ECE9E9;
    --tenlab-black: #1D2121;
    --tenlab-mint: #99A88C;
    --tenlab-blue: #335C67;
    --tenlab-heat: #E09F3E;
    --tenlab-red: #9E2A2B;
}

/* ========================================================
   FUENTES GIBSON
======================================================== */
@font-face {
    font-family: 'GibsonCustom';
    src: url('/Tipografias/GibsonRegular.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GibsonCustom';
    src: url('/Tipografias/GibsonSemiBd.OTF') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* ========================================================
   RESET GENERAL
======================================================== */

html,
body {
    overflow-x: hidden !important;
    font-family: 'GibsonCustom', sans-serif !important;
    margin: 0;
    padding: 0;
}

/* OCULTA SCROLLBAR VISUAL */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

* {
    scrollbar-width: none;
}

/* ========================================================
   TIPOGRAFÍA GLOBAL
======================================================== */

body,
p,
span,
div,
input,
textarea,
select,
button,
a,
li,
ul {
    font-family: 'GibsonCustom', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn-comprar,
.tenlab-title,
b,
strong,
th {
    font-family: 'GibsonCustom', sans-serif !important;
    font-weight: 600 !important;
}

/* ========================================================
   NAVBAR
======================================================== */

.aNavbar,
.nav-link,
.nav-item a {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.aNavbar:hover,
.nav-link:hover,
.nav-item a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* ========================================================
   BUSCADOR NAVBAR
======================================================== */

.buscador-nav {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 5px 15px;
    height: 38px;
}

.buscador-nav input {
    width: 160px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #000;
}

.buscador-nav input::placeholder {
    color: #777;
}

.buscador-nav button {
    border: none;
    background: transparent;
    color: #000;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
}

/* ========================================================
   BOTÓN SUSCRIBIRME
======================================================== */

.btn-suscribirme {
    background-color: var(--tenlab-red);
    color: white !important;
    border: none;
    border-radius: 4px;
    padding: 8px 22px;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-suscribirme:hover {
    opacity: 0.85;
    color: white;
    text-decoration: none;
}

/* ========================================================
   MENÚ PERFIL
======================================================== */

.menu-perfil-fixed {
    display: none;
    position: fixed;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid var(--tenlab-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 8px 0;
}

.menu-perfil-fixed a {
    display: block;
    padding: 12px 20px;
    color: var(--tenlab-black);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.menu-perfil-fixed a:hover {
    background-color: var(--tenlab-white);
}

/* ========================================================
   SIDEBAR
======================================================== */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-tenlab {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: white;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 20px;
    text-align: center;
}

.sidebar-tenlab.active {
    left: 0;
}

.sidebar-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.btn-close-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 15px;
}

.sidebar-links a {
    display: block;
    color: var(--tenlab-black);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.2s;
}

.sidebar-links a:hover {
    color: var(--tenlab-heat);
    font-weight: 600;
}

.sidebar-divider {
    width: 80%;
    margin: 25px auto;
    border-top: 1px solid var(--tenlab-white);
}

/* ========================================================
   BOTÓN SIDEBAR
======================================================== */

.btn-suscribete-ahorra {
    display: inline-block !important;
    background-color: var(--tenlab-heat);
    color: white !important;
    border-radius: 20px;
    padding: 8px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-suscribete-ahorra:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* ========================================================
   CARRITO
======================================================== */

.carrito-nav {
    transition: opacity 0.2s ease;
}

.carrito-nav:hover {
    opacity: 0.7;
}

/* ========================================================
   FOOTER
======================================================== */

footer {
    overflow: hidden !important;
}

.footer-logo img {
    max-height: 120px;
    width: auto;
}

.footer-phrase {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-phrase span {
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.footer-social a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s;
}

.footer-social a:hover {
    transform: scale(1.08);
}

.footer-social img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.footer-powered {
    text-align: center;
    font-size: 0.8rem;
}

.footer-powered a {
    color: white;
    text-decoration: none;
}

.footer-powered a:hover {
    opacity: 0.7;
}

/* ========================================================
   RESPONSIVE TABLET
======================================================== */

@media (max-width: 992px) {

    footer {
        padding: 3rem 2rem !important;
    }

    .footer-phrase {
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        gap: 5px;
    }

    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-powered {
        margin-top: 20px;
    }
}

/* ========================================================
   RESPONSIVE MOBILE
======================================================== */

@media (max-width: 768px) {

    footer {
        padding: 2.5rem 1.2rem !important;
    }

    .footer-logo {
        justify-content: center !important;
        margin-bottom: 25px;
    }

    .footer-logo img {
        max-height: 90px;
    }

    .footer-phrase {
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
        line-height: 1.6;
    }

    .footer-social {
        justify-content: center;
        margin-top: 25px;
    }

    .footer-social a {
        width: 50px;
        height: 50px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        font-size: 1rem;
    }

    .footer-powered {
        margin-top: 20px;
        font-size: 0.75rem;
    }

    .footer-powered a {
        display: block;
        margin-bottom: 10px;
    }

    footer hr {
        margin: 25px 0 !important;
    }

    .buscador-nav input {
        width: 100px;
    }

    .sidebar-tenlab {
        width: 280px;
    }
}