
/* ===================== GLOBAL STYLES ===================== */
@import url('utilities.css');

html {
    font-size: 68.75% !important; /* 62.5% + 10% = 68.75% (aumentado un 10%) */
    box-sizing: border-box;
}

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

/* Oculta elementos */
.hidden {
    display: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
h1,h2,h3,h4{
    margin: 0;
    color: var(--color-primary);
    letter-spacing: 0.3rem;
}
/* Contenedor central del sitio */
.site-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.nobold{
    font-weight: 400 !important;
}
.title-section {
    font-family: var(--font-title);
    font-size: var(--font-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.text-xl {
    font-size: var(--font-xl);
}
.text-l {
    font-size: var(--font-lg);
}
.text-m {
    font-size: var(--font-md);
}

.text-s {
    font-size: var(--font-sm);
}
a{
    text-decoration: none;
    color: inherit;
}

.text-l-upper {
    font-family: var(--font-title);
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}



/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.u-animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Tablet pequeño: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .title-section {
        font-size: var(--font-xxl);
    }

    .text-l {
        font-size: 2.5rem;
    }
    .text-m {
        font-size: 2rem;
    }

    .text-l-upper {
        font-size: 1.8rem;
    }

    .text-s {
        font-size: 1.4rem;
    }
}

/* Tablet grande: 1024px - 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
    .title-section {
        font-size: 4rem;
    }
    .text-xl {
        font-size: 3.5rem;
    }
    .text-l {
        font-size: 2rem;
    }
    .text-m {
        font-size: 1.8rem;
    }

    .text-l-upper {
        font-size: 1.8rem;
    }

    .text-s {
        font-size: 1.4rem;
    }
}

/* Desktop: 1280px+ */
@media (min-width: 1280px) {
    .title-section {
        font-size: 4.5rem;
    }
    .text-xl {
        font-size: 4rem;
    }
    .text-l {
        font-size: 2.2rem;
    }
    .text-m {
        font-size: 2rem;
    }

    .text-l-upper {
        font-size: 2rem;
    }

    .text-s {
        font-size: 1.6rem;
    }
}

/* ===================== SCROLL UTILITIES ===================== */

/* Scroll horizontal para contenedores con hijos que se desbordan */
.scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    direction: ltr; /* Mantener dirección normal */
    text-align: start; /* Alinear contenido al inicio */
    display: flex; /* Hacer flex para usar row-reverse */
    flex-direction: row; /* Invertir orden visual pero mantener contenido correcto */
}

/* Asegurar que el contenido hijo mantenga el orden correcto */
.scroll-x > * {
    direction: ltr; /* Los elementos hijos mantienen dirección normal */
    text-align: initial;
    flex-shrink: 0; /* Prevenir que los elementos se contraigan */
    order: 0; /* Mantener orden original en el DOM */
}

/* Mantener scroll en posición inicial */
.scroll-x {
    scroll-padding-left: 0;
    scroll-margin-left: 0;
    padding-left: 0;
    margin-left: 0;
    scroll-padding-inline-start: 0;
    scroll-margin-inline-start: 0;
}

/* Forzar que los elementos flexibles inicien desde la izquierda */
.scroll-x[style*="display: flex"],
.scroll-x.flex {
    justify-content: flex-start;
    align-items: flex-start;
}

.scroll-x::-webkit-scrollbar {
    height: 4px;
}

.scroll-x::-webkit-scrollbar-track {
    background: var(--color-surface-2);
    border-radius: var(--border-radius-sm);
}

.scroll-x::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--border-radius-sm);
}

.scroll-x::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}
