/* ==========================================================================
   PARS AKADEMIE — Global Design System
   Core styles and utility classes extracted from index.html
   ========================================================================== */

/* Base Styles */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: radial-gradient(circle at top right, #151515, #0a0a0a 50%, #080808 100%);
    color: #f8fafc;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Fixes for Headings (Prevents text clipping on mobile & long words) */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li,
a {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Global Responsive Headings to prevent overflow on mobile */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.875rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.5rem !important; line-height: 1.4 !important; }
    h4 { font-size: 1.25rem !important; line-height: 1.4 !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.125rem !important; }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow: visible !important;
    padding-bottom: 0.05em;
    /* Prevents descender clipping in some browsers */
}

/* Material Symbols Customization */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* Custom Image Filters (Disabled hover illumination as per request) */
img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Glass Card Architecture */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(179, 142, 93, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    border-color: rgba(179, 142, 93, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* Mobile Layout Fixes */
@media (max-width: 768px) {
    /* Removed padding override on .glass-card to allow edge-to-edge images */
}

/* Premium Gradients & Effects */
.text-gold-gradient {
    background: linear-gradient(to right, #C5A982, #B38E5D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;

    /* 
     * EL DIAGNÓSTICO DEL USUARIO ES CORRECTO: La caja era más pequeña que la letra.
     * Añadimos padding para ensanchar la caja de renderizado.
     * IMPORTANTE: No usar margin-right negativo, porque encoge la caja y vuelve a causar el corte.
     */
    padding-right: 0.25em;
    padding-left: 0.05em;
    padding-bottom: 0.1em;
}

.bg-gold-gradient {
    background: linear-gradient(to right, #C5A982, #B38E5D);
}

.cinematic-glow {
    background: radial-gradient(circle at center, rgba(179, 142, 93, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Section Variations */
.bg-section-alt {
    background: transparent;
}

.bg-section-deep {
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
}

/* Custom Scrollbar (Optional but recommended for consistency) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #B38E5D;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C5A982;
}

/* Fix for overly wide tracking and large text on mobile for small uppercase labels */
@media (max-width: 768px) {
    .tracking-\[0\.3em\] {
        letter-spacing: 0.15em !important;
    }
    .text-sm.tracking-\[0\.3em\] {
        font-size: 0.75rem !important; /* Reduces 14px to 12px on mobile */
    }
    .text-\[10px\].tracking-\[0\.3em\] {
        font-size: 0.55rem !important; /* Reduces 10px to roughly 9px on mobile */
    }
}