/* public/css/styles.css - Sistema de Identidad Visual Única Axolín (Estilo Prehispánico, Acuático y Gamificado) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --bg-color: #f0f4f8;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    
    /* Paleta de Colores Exclusiva Axolín (Temática Prehispánica, Acuática y Ajolote) */
    --green: #2ecc71;            /* Verde Nopal / Selva */
    --green-dark: #27ae60;
    --green-light: #e8f8f5;
    
    --blue: #00a8ff;             /* Azul Agua Xochimilco */
    --blue-dark: #0097e6;
    --blue-light: #e6f7ff;
    
    --purple: #fd79a8;           /* Rosa Ajolote Mexicano */
    --purple-dark: #e84393;
    --purple-light: #fff0f5;
    
    --yellow: #f1c40f;           /* Oro Cacao Azteca */
    --yellow-dark: #f39c12;
    
    --orange: #e67e22;           /* Naranja Cempasúchil */
    --orange-dark: #d35400;
    
    --red: #ff4b4b;
    --red-dark: #ea2b2b;
    
    --border-radius: 22px;
    --transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* --- EFECTO DE BOTONES 3D (Estilo Físico/Táctil Gamificado) --- */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 2px solid #2d3748;
    user-select: none;
    box-shadow: 0 5px 0px 0px #2d3748;
}

.btn-green {
    background-color: var(--green);
    color: #ffffff;
}
.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0px 0px #2d3748;
}
.btn-green:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0px 0px #2d3748;
}

.btn-blue {
    background-color: var(--blue);
    color: #ffffff;
}
.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0px 0px #2d3748;
}
.btn-blue:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0px 0px #2d3748;
}

.btn-purple {
    background-color: var(--purple);
    color: #ffffff;
}
.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0px 0px #2d3748;
}
.btn-purple:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0px 0px #2d3748;
}

.btn-outline {
    background-color: #ffffff;
    color: var(--text-main);
    border: 2px solid #2d3748;
    box-shadow: 0 5px 0px 0px #2d3748;
}
.btn-outline:hover {
    background-color: #f7f9fa;
    transform: translateY(-2px);
    box-shadow: 0 7px 0px 0px #2d3748;
}
.btn-outline:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0px 0px #2d3748;
}

/* --- HEADER / NAVEGACIÓN --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid #2d3748;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-stats-compact-mobile {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--green-light);
    border: 2px solid #2d3748;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 3px 0px 0px #2d3748;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #2d3748;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 0.95rem;
    background: white;
    padding: 8px 16px;
    border: 2px solid #2d3748;
    border-radius: 18px;
    box-shadow: 0 4px 0px 0px #2d3748;
}

.stat-xp { color: var(--yellow-dark); }
.stat-streak { color: var(--orange); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    background-color: var(--blue-light);
    border: 2px solid #2d3748;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--blue-dark);
    text-transform: uppercase;
    box-shadow: 0 3px 0px 0px #2d3748;
}

/* --- TARJETAS GAMIFICADAS (CARDS) --- */
.card-duo {
    background-color: var(--card-bg);
    border: 2px solid #2d3748;
    border-bottom: 7px solid #2d3748;
    border-radius: var(--border-radius);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 0px 0px rgba(45, 55, 72, 0.05);
}

.card-duo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0px 0px rgba(45, 55, 72, 0.08);
}

/* --- DISEÑO RESPONSIVO (GRID) --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- VISTA DE ESTUDIANTE (RUTA DE APRENDIZAJE) --- */
.roadmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.course-title-section {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.lesson-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.node-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e5e5e5;
    border-bottom: 6px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: #fff;
    transition: var(--transition);
    z-index: 2;
}

.lesson-node.completed .node-circle {
    background-color: var(--green);
    border-bottom-color: var(--green-dark);
}

.lesson-node.active .node-circle {
    background-color: var(--blue);
    border-bottom-color: var(--blue-dark);
    animation: pulse 2s infinite;
}

.node-title {
    margin-top: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Conectores entre nodos */
.roadmap-connector {
    width: 4px;
    height: 40px;
    background-color: var(--border-color);
    margin: -10px 0;
    z-index: 1;
}

/* --- EDITOR DE AVATAR (EN TIEMPO REAL) --- */
.avatar-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .avatar-workspace {
        grid-template-columns: 1fr;
    }
}

.avatar-preview-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, var(--blue-light) 0%, #ffffff 80%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    min-height: 350px;
    position: relative;
}

.avatar-render {
    position: relative;
    width: 200px;
    height: 250px;
}

.avatar-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.avatar-layer svg {
    width: 100%;
    height: 100%;
}

.editor-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-tab-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    color: var(--purple-dark);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.option-btn {
    position: relative;
    border: 2px solid var(--border-color);
    border-bottom: 5px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    width: 100%;
    min-height: 105px;
}

.option-btn:hover {
    background-color: var(--blue-light);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.option-btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.option-btn.active {
    background-color: var(--purple-light);
    border-color: var(--purple);
    border-bottom-color: var(--purple-dark);
    box-shadow: 0 0 0 3px rgba(133, 73, 255, 0.15);
}

.option-btn.locked {
    background-color: #f7f9fa;
    opacity: 0.95;
}

.option-btn.locked:hover {
    background-color: #f2ebff;
    border-color: var(--purple);
}

.item-emoji {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
    transition: var(--transition);
}

.option-btn:hover .item-emoji {
    transform: scale(1.15) rotate(5deg);
}

.item-label {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.2;
}

.item-cost-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #fff3e0;
    color: var(--orange-dark);
    border: 1.5px solid var(--orange);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.color-dot.active {
    box-shadow: 0 0 0 2px var(--purple);
    transform: scale(1.1);
}

/* --- MAQUETADO DE TABLAS (PROFESOR / SUPERADMIN) --- */
.table-duo {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

.table-duo th {
    background-color: #f7f9fa;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.table-duo td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table-duo tr:last-child td {
    border-bottom: none;
}

.table-duo tr:hover td {
    background-color: #fafafa;
}

/* --- ALERTAS NOTIFICACIONES --- */
.alert-duo {
    padding: 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: var(--green-light);
    color: var(--green-dark);
    border-color: #c2e99d;
}

.alert-error {
    background-color: #fdeaea;
    color: var(--red-dark);
    border-color: #f9c7c7;
}

/* --- LECCIÓN INTERACTIVA (VISTA DE JUEGO) --- */
.lesson-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.progress-bar-container {
    width: 100%;
    height: 16px;
    background-color: #e5e5e5;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--green);
    width: 0%;
    transition: width 0.3s ease-out;
}

.question-box {
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.answer-option {
    background-color: white;
    border: 2px solid var(--border-color);
    border-bottom: 5px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.answer-option:hover {
    background-color: var(--blue-light);
    border-color: var(--blue);
}

.answer-option.selected {
    background-color: var(--blue-light);
    border-color: var(--blue);
    border-bottom-color: var(--blue-dark);
}

.answer-option.correct {
    background-color: var(--green-light);
    border-color: var(--green);
    border-bottom-color: var(--green-dark);
    color: var(--green-dark);
}

.answer-option.incorrect {
    background-color: #fdeaea;
    border-color: var(--red);
    border-bottom-color: var(--red-dark);
    color: var(--red-dark);
}

.number-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* --- RESPONSIVIDAD DE LA BARRA DE NAVEGACIÓN Y COMPONENTES --- */
@media (max-width: 950px) {
    /* Los estilos de navegación móvil se han consolidado en la sección unificada al final del archivo */
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
        margin: 15px auto;
    }
    .card-duo {
        padding: 18px;
    }
    .btn-3d {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    .lesson-container {
        padding: 0 10px;
        margin: 20px auto;
    }
}

/* --- SISTEMA DE TOAST NOTIFICATIONS (NOTIFICACIONES FLOTANTES) --- */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    background: white;
    border: 2px solid var(--border-color);
    border-bottom: 5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-weight: 800;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
}

.toast-success {
    background-color: var(--green-light);
    border-color: var(--green);
    border-bottom-color: var(--green-dark);
    color: var(--green-dark);
}

.toast-error {
    background-color: #fdeaea;
    border-color: var(--red);
    border-bottom-color: var(--red-dark);
    color: var(--red-dark);
}

/* --- ANIMACIONES PARA LA PIÑATA Y CONFETI --- */
@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3s linear forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- ESTILOS DE FORMULARIOS PREMIUM --- */
.form-input {
    width: 100%;
    border: 2px solid #2d3748;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-light);
}

select.form-input {
    cursor: pointer;
}

/* --- ANIMACIONES MICRO-INTERACTIVAS --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* --- FOOTER GENERAL (GLASSMORPHISM) --- */
.site-footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 2px solid var(--border-color);
    padding: 30px 20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.footer-text {
    font-weight: 600;
    color: var(--text-main);
}

.footer-legal {
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- OPTIMIZACIONES RESPONSIVAS PARA DISPOSITIVOS MÓVILES (SMARTPHONES/TABLETS) --- */
@media (max-width: 950px) {
    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 10px 4% !important;
        position: relative !important;
        top: auto !important;
    }
    
    .nav-stats-compact-mobile {
        display: flex !important;
    }
    
    .desktop-only-stat {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-stats {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        border-bottom: 2px solid var(--border-color) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
        padding: 20px 6% !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
        z-index: 999 !important;
    }
    
    .nav-stats.open {
        display: flex !important;
        animation: slideDownMenu 0.25s ease-out forwards;
    }
    
    @keyframes slideDownMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-user {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        border-top: 1px dashed var(--border-color) !important;
        padding-top: 15px !important;
        margin-top: 5px !important;
        gap: 12px !important;
    }

    .navbar .btn-3d {
        width: 100% !important;
        justify-content: center !important;
    }

    .container {
        padding: 0 15px;
        margin: 20px auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    h1 {
        font-size: 1.6rem !important;
        text-align: center;
    }
    
    p {
        font-size: 0.95rem !important;
        text-align: center;
    }

    /* Forzar a una sola columna el customizer en tablets */
    .avatar-workspace {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    form .btn-3d {
        width: 100% !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* Reducir padding de las tarjetas de cristal para dar espacio en teléfonos */
    .glass-card {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    /* Ajustar tamaño del probador en móviles */
    .fitting-aquarium {
        min-height: 290px !important;
        padding: 15px !important;
    }
    
    .aquarium-pedestal {
        bottom: 30px !important;
        width: 110px !important;
    }

    .customizer-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Ajustes para evitar que la cuadrícula de artículos desborde horizontalmente */
    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
        gap: 8px !important;
    }

    .option-btn {
        min-height: 85px !important;
        padding: 10px 6px !important;
    }

    .item-emoji {
        font-size: 1.6rem !important;
    }

    .item-label {
        font-size: 0.72rem !important;
    }

    .item-cost-badge {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
        top: 4px !important;
        right: 4px !important;
    }

    .site-footer {
        margin-top: 40px !important;
        padding: 20px 15px !important;
    }

    .footer-text {
        font-size: 0.78rem !important;
    }

    .footer-legal {
        font-size: 0.7rem !important;
    }
}

/* --- CLASES PARA TABLAS RESPONSIVAS --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
}

.table-duo th, .table-duo td {
    white-space: nowrap; /* Evita que los números y textos (ej: XP, días) se rompan en dos renglones */
}

/* --- CLASES DE GRIDS ADMINISTRATIVOS RESPONSIVOS --- */
.admin-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 950px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- ACCESIBILIDAD Y CORRECCIONES DE ANCHO MÓVIL --- */
.glass-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.fitting-aquarium {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.catalog-tabs {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.avatar-workspace {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* --- TOOLTIPS CONTEXTUALES PREMIUM --- */
.axolin-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    user-select: none;
    transition: all 0.15s ease-in-out;
    border: 1.5px solid var(--border-color);
}

.axolin-tooltip-trigger:hover {
    background-color: var(--purple-light);
    color: var(--purple-dark);
    border-color: var(--purple);
    transform: scale(1.1);
}

.axolin-tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #2d3748;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.45;
    width: 240px;
    text-align: left;
    white-space: normal;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    z-index: 10005;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-transform: none; /* Prevenir capitalización forzada */
}

.axolin-tooltip-trigger::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    z-index: 10005;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.axolin-tooltip-trigger:hover::after,
.axolin-tooltip-trigger:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
