/**
 * Base CSS Styles
 * Global reset and base styles for WebAR
 */

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

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
 * TYPOGRAPHY
 * =========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-enfasis-amarillo);
    filter: brightness(0.9);
}

/* ===========================================
 * IMAGES
 * =========================================== */

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
 * LISTS
 * =========================================== */

ul,
ol {
    list-style: none;
}

/* ===========================================
 * BUTTONS
 * =========================================== */

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn--primary {
    background: var(--color-accent-gradient);
    color: var(--color-text-primary);
    border: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: var(--border-width) solid var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-accent-purple);
    color: var(--color-accent-purple-light);
}

/* ===========================================
 * FORMS
 * =========================================== */

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ===========================================
 * LAYOUT
 * =========================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-16) 0;
}

/* ===========================================
 * MESSAGES
 * =========================================== */

.messages-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-card);
    border: var(--border-width) solid var(--color-border);
    backdrop-filter: blur(10px);
    animation: slideIn var(--transition-slow) ease;
}

.message--success {
    border-color: var(--color-success);
}

.message--warning {
    border-color: var(--color-warning);
}

.message--error {
    border-color: var(--color-error);
}

.message--info {
    border-color: var(--color-info);
}

.message__close {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.message__close:hover {
    color: var(--color-text-primary);
}

.message--dismissed {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===========================================
 * ERROR PAGES
 * =========================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
}

.error-page h1 {
    font-size: 8rem;
    font-weight: var(--font-extrabold);
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page h2 {
    margin-bottom: var(--space-4);
}

.error-page p {
    margin-bottom: var(--space-8);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
 * ANIMATIONS
 * =========================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .error-page h1 {
        font-size: 5rem;
    }
}

/* ==========================================================================
   HEADER & NAVIGATION (INFOWEB EXACT STYLES)
   ========================================================================== */

/* ==========================================================================
   HEADER & NAVIGATION (INFOWEB EXACT STYLES)
   ========================================================================== */

:root {
    --color-primario: #050707;
    /* Negro */
    --color-secundario: #FFFFFF;
    /* Blanco */
    --color-enfasis-amarillo: #F4D800;
    /* Amarillo */
    --color-plomo-claro: #ECF1F2;
    /* Plomo Claro */
    --color-plomo-oscuro: #A8A8A8;
    /* Plomo Oscuro */
    --color-enfasis-rojo: #FF3737;
    /* Rojo */
}

.site-header {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 1rem 2rem;
    color: #ffffff;
    width: 100%;
    height: 80px;
    z-index: 1000;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Menu Toggle (Hamburguesa) */
.menu-header-container {
    position: fixed;
    width: 30px;
    height: 30px;
    top: 25px;
    /* Ajuste para centrar en header height 80px */
    right: 2%;
    cursor: pointer;
    z-index: 2001;
}

.menu-header-container span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-secundario);
    margin-top: 6px;
    transform-origin: 0px 100%;
    transition: all 300ms;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.7);
}

/* Animación Hamburguesa Activa */
.activemenu--barra-1,
.activemenu--barra-2,
.activemenu--barra-3 {
    background: var(--color-enfasis-amarillo) !important;
    box-shadow: none !important;
}

.activemenu--barra-1 {
    transform: rotate(45deg) translate(-4px, 1px);
}

.activemenu--barra-2 {
    opacity: 0;
    margin-left: -30px;
}

.activemenu--barra-3 {
    transform: rotate(-45deg) translate(-4px, 1px);
}

/* Menú Lateral (Sidebar) */
.container_lateral_menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    max-width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.90);
    align-items: center;
    justify-content: flex-start;
    z-index: 2000;
    transform: translateX(110%);
    transition: all 300ms ease;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.menu__active {
    transform: translateX(0);
}

.lateral-menu-nav {
    width: 100%;
    height: 100vh;
    padding: 100px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.container-lateral-menu-header {
    list-style: none;
    padding: 0;
    width: 100%;
}

.container-lateral-menu-header li {
    margin: 20px 0;
    width: 100%;
}

.container-lateral-menu-header li a {
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 8px 0 8px 30px;
    text-align: left;
    width: 100%;
    transition: color 0.3s;
    font-family: 'Nanum Gothic', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.container-lateral-menu-header li a:hover {
    color: var(--color-enfasis-amarillo);
}

/* Utility */
.no-scroll {
    overflow: hidden;
}