/* ==========================================================================
   FenixDevApp - Estilos Autocontenidos para Artículos y Recursos
   Garantiza que todos los artículos carguen con diseño premium sin depender
   de scripts externos o CDNs que puedan ser bloqueados localmente.
   ========================================================================== */

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

/* --- Reset Básico & Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body, .bg-slate-50 {
    background-color: #080b11 !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    padding: 2.5rem 1rem;
}

/* --- Contenedor Principal del Artículo --- */
article, .max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #0d121e !important;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 107, 53, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- Cabecera / Hero de los Artículos --- */
.bg-gradient-to-br {
    padding: 3rem 2rem;
    text-align: center;
    color: #ffffff !important;
    position: relative;
}

/* Variaciones de Gradientes */
.from-indigo-700.to-slate-900,
.from-indigo-600.to-purple-800 {
    background: linear-gradient(135deg, #3730a3 0%, #0f172a 100%) !important;
}

.from-amber-500.to-rose-600 {
    background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%) !important;
}

.from-emerald-600.to-teal-800 {
    background: linear-gradient(135deg, #059669 0%, #115e59 100%) !important;
}

.from-blue-600.to-indigo-800 {
    background: linear-gradient(135deg, #2563eb 0%, #3730a3 100%) !important;
}

.from-purple-600.to-pink-600 {
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%) !important;
}

.from-cyan-600.to-blue-800 {
    background: linear-gradient(135deg, #0891b2 0%, #1e40af 100%) !important;
}

/* Tag / Badge en la cabecera */
.bg-white\/20, .bg-white\/10 {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Título Principal */
h1, .text-3xl, .text-4xl, .text-5xl {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    h1, .text-3xl, .text-4xl, .text-5xl {
        font-size: 3rem;
    }
    .bg-gradient-to-br {
        padding: 4rem 3rem;
    }
}

/* Subtítulo de Cabecera */
.text-amber-100, .text-indigo-100, .text-emerald-100, .text-blue-100, .text-purple-100, .text-cyan-100 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.15rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* --- Cuerpo del Artículo --- */
.p-8, .p-12, .p-6, .md\:p-12, .space-y-12, .space-y-8 {
    padding: 2rem;
}

@media (min-width: 768px) {
    .p-8, .p-12, .md\:p-12 {
        padding: 3rem;
    }
}

h2, h3, .text-2xl, .text-xl {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p, li {
    color: #cbd5e1 !important;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

strong, b {
    color: #ffffff !important;
    font-weight: 700;
}

/* --- Cajas Destacadas & Tarjetas Interactivas --- */
.flex, .items-start, .gap-6, .p-6, .rounded-2xl {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.flex:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Iconos Cuadrados */
.flex-shrink-0, .w-12, .h-12 {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%) !important;
    color: #ffffff !important;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* --- Bloques de Código & Comandos --- */
pre, code, .bg-slate-900, .bg-gray-900 {
    background-color: #04060a !important;
    color: #38bdf8 !important;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
    display: block;
}

code {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0;
}

/* --- Enlaces & Botones de Navegación --- */
a {
    color: #ff6b35 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8c42 !important;
    text-decoration: underline;
}

.btn, button, .inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #e85d04 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
}

.btn:hover, button:hover, .inline-flex:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* --- Pie de Página del Artículo --- */
footer, .border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #94a3b8 !important;
}
