/* ==================================================
   TENDENCIAS 2026 - AMERICA DAWN
   Bento Grid, Glassmorphism, Micro-interacciones
   ================================================== */

/* ==================================================
   1. GLASSMORPHISM REFINADO (Fondo sutil)
   ================================================== */

.glass-bg {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 160, 255, 0.08);
    border-radius: 28px;
}

/* ==================================================
   2. DEGRADADOS COMPLEJOS (Fondo animado sutil)
   ================================================== */

.gradient-orb {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 25s ease-in-out infinite;
}

.orb-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 120, 255, 0.4), rgba(0, 200, 255, 0.1));
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(100, 80, 255, 0.3), rgba(0, 160, 255, 0.05));
    animation-delay: -8s;
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.2), rgba(0, 100, 200, 0.05));
    animation-delay: -15s;
    animation-duration: 35s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(5%, 5%) scale(1.05);
    }
    66% {
        transform: translate(-3%, 8%) scale(0.98);
    }
}

/* ==================================================
   3. BENTO GRID (Layout profesional)
   ================================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.bento-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 160, 255, 0.06);
    border-radius: 28px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    backdrop-filter: blur(8px);
}

.bento-item:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 160, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

/* Tamaños variables del Bento Grid */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* ==================================================
   4. MICRO-INTERACCIONES PROFESIONALES
   ================================================== */

/* Botones con feedback táctil */
.btn-main {
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-main::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-main:active::after {
    width: 200%;
    height: 200%;
}

/* Cards con micro-interacción */
.box-icon, .ad-digital-card {
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.box-icon:hover, .ad-digital-card:hover {
    transform: translateY(-4px);
}

/* Links con efecto de línea */
a:not(.btn-main) {
    position: relative;
    text-decoration: none;
}

a:not(.btn-main)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #0080ff, #00ccff);
    transition: width 0.3s ease;
}

a:not(.btn-main):hover::after {
    width: 100%;
}

/* ==================================================
   5. TIPOGRAFÍA CINÉTICA SUTIL
   ================================================== */

.kinetic-text {
    transition: letter-spacing 0.3s ease, opacity 0.3s ease;
}

.kinetic-text:hover {
    letter-spacing: 1px;
}

h1, h2, .very-big {
    transition: transform 0.3s ease;
}

h1:hover, h2:hover {
    transform: translateX(2px);
}

/* ==================================================
   6. SCROLL ANIMATIONS (Revelado suave)
   ================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   7. EFECTO DE BRILLO EN BORDES (muy sutil)
   ================================================== */

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 160, 255, 0.3) 50%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glow-border:hover::before {
    opacity: 1;
}

/* ==================================================
   8. RESPONSIVE
   ================================================== */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bento-large, .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gradient-orb {
        filter: blur(60px);
        opacity: 0.15;
    }
}

/* ==================================================
   9. ACCESIBILIDAD - Respetar preferencias
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}