/* ==========================================================================
   AIDITEC SYSTEMS - ESTILOS DEL CONSTRUCTOR VISUAL Y WEB
   ========================================================================== */

/* UTILIDADES BASE */
.glass { background: rgba(var(--c-bg-rgb), 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); }
.glass-panel { background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.6) 100%); border: 1px solid rgba(255, 255, 255, 0.05); }

/* 🌟 1. SISTEMA GLOBAL DE TIPOGRAFÍA 🌟 */
h1, h2, h3, h4, h5, h6, .title-huge, .title-lg, .title-md, .title-sm, .el-w-heading {
    font-family: 'Roboto Condensed', sans-serif !important;
}

.title-huge { font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.1; margin-bottom: 0; }
@media (min-width: 768px) { .title-huge { font-size: 3rem; } }
@media (min-width: 1024px) { .title-huge { font-size: 3.5rem; } }

.title-lg { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.2; margin-bottom: 0; color: inherit; }
@media (min-width: 768px) { .title-lg { font-size: 2rem; } }

.title-md { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; color: inherit; }
.title-sm { font-size: 0.9rem; font-weight: 700; margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.05em; color: inherit; }

.text-body, .article-body p { font-size: 1rem; line-height: 1.7; font-weight: 300; opacity: 0.9; margin-bottom: 0; color: inherit;}
.text-body-sm { font-size: 0.875rem; line-height: 1.6; font-weight: 300; opacity: 0.8; color: inherit;}

.article-body h2 { font-family: 'Roboto Condensed', sans-serif !important; font-size: 2rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; text-transform: uppercase; color: var(--c-prim, #F28F22); }
.article-body h3 { font-family: 'Roboto Condensed', sans-serif !important; font-size: 1.5rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 1rem; }
.article-body h4 { font-family: 'Roboto Condensed', sans-serif !important; font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 1rem; }
.article-body ul { list-style-type: disc; padding-left: 2rem; margin-bottom: 1.5rem; opacity: 0.9; }
.article-body a { color: var(--c-prim, #F28F22); text-decoration: underline; font-weight: 400; }

.article-body b, .article-body strong { font-weight: 700; }
.article-body i, .article-body em { font-style: italic; }
.article-body u { text-decoration: underline; text-underline-offset: 4px; }

/* 🌟 2. SISTEMA GLOBAL DE ETIQUETAS (PILLS) 🌟 */
.badge-pill { display: inline-block; padding: 0.6rem 1.5rem; border-radius: 9999px; border: 1px solid; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4em; backdrop-filter: blur(4px); margin-bottom: 0; }
.badge-pill-orange { border-color: rgba(var(--c-prim-rgb, 242, 143, 34), 0.3); color: var(--c-prim, #F28F22); background-color: rgba(var(--c-prim-rgb, 242, 143, 34), 0.1); box-shadow: 0 0 20px rgba(var(--c-prim-rgb, 242, 143, 34), 0.15); }
.badge-pill-white { border-color: rgba(255,255,255,0.3); color: #fff; background-color: rgba(255,255,255,0.1); box-shadow: 0 0 20px rgba(255,255,255,0.15); }

/* 🌟 3. SISTEMA GLOBAL DE BOTONES 🌟 */
.btn-standard { display: inline-flex; justify-content: center; align-items: center; padding: 0.75rem 1.75rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.2em; transition: transform 0.5s cubic-bezier(0.25,1,0.5,1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; text-decoration: none; text-align: center; border: transparent; cursor: pointer; position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.btn-orange { background-color: var(--c-prim, #F28F22); color: #000 !important; }
.btn-orange:hover { background-color: color-mix(in srgb, var(--c-prim, #F28F22) 80%, white); }
.btn-dark { background-color: var(--c-sec, #050505); color: #fff !important; border: 1px solid rgba(255,255,255,0.1); }
.btn-dark:hover { background-color: color-mix(in srgb, var(--c-sec, #050505) 80%, white); }

/* APPLE TV HOVER GLARE EFFECT (Solo Botones) */
.btn-standard::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle at var(--tv-x, 50%) var(--tv-y, 50%), rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 10;
}
.btn-standard:hover::after { opacity: 1; }

/* 🌟 4. PANELES, TARJETAS Y ELEMENTOS DEL WIDGET 🌟 */
.card-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 1.5rem; transition: transform 0.5s cubic-bezier(0.25,1,0.5,1), background-color 0.3s ease, border-color 0.3s ease; overflow: hidden; position: relative; }
.card-panel:hover { transform: translateY(-5px); border-color: rgba(var(--c-prim-rgb, 242, 143, 34), 0.3); background: rgba(255,255,255,0.05); }

/* WIDGET: CAJA IMAGEN */
.el-w-imagebox { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; overflow: hidden; height: 100%; text-align: center; transition: all 0.3s;}
.el-w-imagebox:hover { border-color: var(--c-prim, #F28F22); transform: translateY(-3px); background: rgba(255, 255, 255, 0.06); }
.el-w-imagebox-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.el-w-imagebox-img-wrapper { width: 100%; height: 260px; background: transparent; display: flex; align-items: center; justify-content: center; padding: 30px 20px 10px 20px; }
.el-w-imagebox-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }
.el-w-imagebox-content { padding: 15px 20px 30px 20px; display: flex; flex-direction: column; flex-grow: 1; background: transparent;}
.el-w-imagebox-content h4 { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s;}
.el-w-imagebox:hover .el-w-imagebox-content h4 { color: var(--c-prim, #F28F22); }
.el-w-imagebox-content p { font-size: 1rem; color: #9ca3af; line-height: 1.6; margin: 0; }

/* OTROS WIDGETS */
.el-w-divider { margin: 15px auto; border: none; }
.el-w-spacer { transition: height 0.2s; }
.el-w-icon { display: block; padding: 10px; }
.el-w-iconbox { text-align: center; padding: 15px; }
.el-w-map iframe { width: 100%; border: none; border-radius: 5px; }

/* 🌟 ANIMACIONES PARA WIDGETS CMS FRONTEND 🌟 */
@keyframes animFadeCMS { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes animPulseCMS { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes animTypingCMS { from { max-width: 0; } to { max-width: 100%; } }
@keyframes animBlinkCMS { 50% { border-color: transparent; } }
@keyframes animUnderlineCMS { 0% { width: 0; } 100% { width: 100%; } }

@keyframes animNeonCMS { 
    0%, 100% { text-shadow: 0 0 5px var(--anim-color), 0 0 10px var(--anim-color), 0 0 20px var(--anim-color); } 
    50% { text-shadow: 0 0 2px var(--anim-color), 0 0 5px var(--anim-color); } 
}
@keyframes animGlitchCMS {
    0%, 100% { transform: translate(0); } 20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}
@keyframes animGradientCMS { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes animFlipCMS { 0%, 100% { transform: rotateX(0deg); } 50% { transform: rotateX(180deg); } }
@keyframes animFloatCMS { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes animLightningSweepCMS { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes animLightningFlashCMS {
    0%, 91%, 95%, 99%, 100% { filter: drop-shadow(0 0 0 transparent); transform: translate(0,0) skewX(0deg); }
    92% { filter: drop-shadow(0 0 10px var(--anim-color)); transform: translate(-2px, 1px) skewX(-5deg); }
    93% { filter: drop-shadow(0 0 20px #fff) drop-shadow(0 0 30px var(--anim-color)); transform: translate(2px, -2px) skewX(10deg); }
    97% { filter: drop-shadow(0 0 15px var(--anim-color)); transform: translate(-1px, 2px) skewX(-2deg); }
}
@keyframes animHologramCMS {
    0%, 100% { text-shadow: 2px 0 var(--anim-color), -2px 0 #0ff; opacity: 0.9; }
    50% { text-shadow: -2px 0 var(--anim-color), 2px 0 #0ff; opacity: 0.7; }
}