/* ==========================================================================
   TIC.LA - ECOSISTEMA DE SOLUCIONES DIGITALES Y E-LEARNING IA
   HOJA DE ESTILOS PRINCIPAL (DISEÑO PREMIUM & ULTRA-MÓDERNO)
   ========================================================================== */

/* System Design & Global Variables */
:root {
    /* Primary Brand Palette */
    --primary: #FF6B00;
    --primary-hover: #FF3D00;
    --primary-light: #FF8533;
    --primary-gradient: linear-gradient(135deg, #FF6B00 0%, #FF3D00 50%, #E05E00 100%);
    --primary-glow: rgba(255, 107, 0, 0.3);
    --primary-glow-strong: rgba(255, 107, 0, 0.55);
    
    /* Secondary & Accent Colors (Multi-dimensional Palette) */
    --accent-cyan: #38BDF8;
    --accent-indigo: #6366F1;
    --accent-green: #4ADE80;
    
    /* Backgrounds & Surfaces (Luxury Slate Navy & Ambient Glass) */
    --bg-dark: #0A0E1A;
    --bg-surface: #0F172A;
    --bg-card-dark: #1E293B;
    --bg-card-glass: rgba(15, 23, 42, 0.75);
    --bg-card-glass-hover: rgba(30, 41, 59, 0.9);
    
    /* Typography Colors (Ultra High Contrast) */
    --text-white: #FFFFFF;
    --text-heading: #FFFFFF;
    --text-gray: #E2E8F0;
    --text-muted: #CBD5E1;
    --text-dark: #0F172A;
    
    /* Borders & Glows */
    --border-dark: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(255, 107, 0, 0.45);
    
    /* Fonts */
    --font-heading: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animations & Transitions */
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-sm: 10px;
    --box-shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 25px var(--primary-glow);
}

/* Base Normalization & Smooth Behavior */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.4) 0%, transparent 70%);
    background-attachment: fixed;
}

/* Text Selection */
::selection {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0A0E1A;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 5px;
    border: 2px solid #0A0E1A;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

body, p, li, td, th, .glass-panel, .glass-panel p, .form-group label {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
}

.text-center, .center-text, p.text-center, p.center-text, .badge, .container.text-center > h1, .container.text-center > h2, .container.text-center > h3, .container.text-center > p, .container.text-center > span {
    text-align: center !important;
    text-align-last: center !important;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Glassmorphism Panels - Dynamic Hover & Shimmer */
.glass-panel {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4), rgba(56, 189, 248, 0.4), transparent);
}

.glass-panel:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-glass-hover);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px var(--primary-glow);
}

/* Layout Containers */
#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#app {
    flex: 1;
    width: 100%;
    margin-top: 80px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
    position: relative;
}

.text-center { text-align: center; }

/* Buttons & CTA - Premium Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(255, 107, 0, 0.55);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-heading);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-text {
    background: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Grids & Responsive Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid-3, .grid-4, .grid-2 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 56px 0;
    }
}

/* Badge Tags */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.15);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-control {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-dark);
    color: var(--text-heading);
    padding: 14px 18px;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px var(--primary-glow);
    background-color: rgba(15, 23, 42, 0.9);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Utility Margins */
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* Gradient Typography */
.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 20%, #E2E8F0 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Premium Image Panels */
.premium-img-panel {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    position: relative;
}

.premium-img-panel:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--box-shadow-premium);
}

.premium-img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.premium-img-panel:hover img {
    transform: scale(1.03);
}
