/**
 * @STATUS: FROZEN
 * DTRG Theme CSS - Master Stylesheet
 * Sistema de Diseño Bento Grid
 */

:root {
    --dtrg-bg-main: #020617;
    --dtrg-bg-card: rgba(255, 255, 255, 0.02);
    --dtrg-border: rgba(255, 255, 255, 0.1);
    --dtrg-text-1: #ffffff;
    --dtrg-text-2: #94a3b8;
    --dtrg-text-3: #64748b;

    /* Brand Colors */
    --dtrg-accent: #3b82f6; /* Blue */
    --dtrg-emerald: #10b981;
    --dtrg-violet: #8b5cf6;
    --dtrg-amber: #f59e0b;
    --dtrg-red: #ef4444;

    /* Bento Grid */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Layout */
.dtrg-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--dtrg-bg-main);
}
.dtrg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Components */
.dtrg-bento-card {
    background: var(--dtrg-bg-card);
    border: 1px solid var(--dtrg-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}
.dtrg-bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Grids */
.dtrg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.dtrg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) {
    .dtrg-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .dtrg-grid-4 { grid-template-columns: 1fr; }
}

/* Buttons */
.dtrg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}
.btn-emerald { background: linear-gradient(135deg, var(--dtrg-emerald), #059669); color: white; }
.btn-emerald:hover { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.btn-glass { background: rgba(255,255,255,0.05); border: 1px solid var(--dtrg-border); color: white; }
.btn-glass:hover { background: rgba(255,255,255,0.1); }
.btn-offline { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--dtrg-red); cursor: not-allowed; }

/* Utilities */
.text-center { text-align: center; }
.text-white { color: var(--dtrg-text-1); }
.text-muted { color: var(--dtrg-text-2); }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-10 { margin-bottom: 40px; }

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
}
/* Glow Effects */
.glow-emerald {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}
.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
}
.border-glow {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15) !important;
}
/* Mesh Gradient Background */
.mesh-bg {
    background: 
        radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        linear-gradient(to bottom right, #0B1120, #020617) !important;
}
/* Button Hover Glow */
.btn-glow {
    transition: all 0.3s ease;
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}
.float-anim {
    animation: float 6s ease-in-out infinite;
}
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* =============================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ============================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .dtrg-section {
        padding: 60px 0;
    }
    .dtrg-container {
        padding: 0 16px;
    }
    /* Landing page grids - 2 columns on tablet */
    section[style*="grid-template-columns: repeat(4"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    section[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Hero text size */
    section h1[style*="font-size: clamp"] {
        font-size: clamp(32px, 5vw, 56px) !important;
    }
    /* Service slider */
    .service-slider .slide > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .dtrg-section {
        padding: 40px 0;
    }
    .dtrg-container {
        padding: 0 12px;
    }
    
    /* Typography */
    h1, h2, h3 {
        word-wrap: break-word;
    }
    
    /* Hero section mobile */
    section[style*="min-height: 100vh"] {
        min-height: auto !important;
        padding: 100px 0 60px !important;
    }
    section h1[style*="font-size: clamp"] {
        font-size: clamp(28px, 8vw, 40px) !important;
        line-height: 1.2 !important;
    }
    section h2[style*="font-size: 42px"] {
        font-size: 28px !important;
    }
    
    /* All grids to single column */
    section[style*="grid-template-columns: repeat(4"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    section[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Stats cards */
    div[style*="display: grid"][style*="stats"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* CTAs */
    a[style*="display: inline-flex"],
    button[style*="display: inline-flex"] {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    
    /* Planes cards */
    .glass-card {
        padding: 20px !important;
    }
    
    /* Demo section */
    section#demo > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    section#demo h2 {
        font-size: 28px !important;
    }
    
    /* Testimonials */
    section#testimonios > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    section h1[style*="font-size: clamp"] {
        font-size: 24px !important;
    }
    section h2 {
        font-size: 22px !important;
    }
    section p[style*="font-size: 18px"] {
        font-size: 15px !important;
    }
    
    /* Stats to 2 columns */
    div[style*="display: grid"][style*="stats"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    div[style*="font-size: 36px"] {
        font-size: 28px !important;
    }
    
    /* Buttons */
    .dtrg-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    /* Cards */
    .glass-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    /* Chat mockup in slider */
    .slide div[style*="max-width: 300px"] {
        max-width: 100% !important;
    }
}

/* Client Panel Responsive */
@media (max-width: 1024px) {
    .client-panel-wrapper .dtrg-spa-container {
        flex-direction: column !important;
    }
    .client-panel-wrapper aside.dtrg-sidebar {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 12px !important;
        gap: 8px !important;
    }
    .client-panel-wrapper aside.dtrg-sidebar a {
        white-space: nowrap !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    .client-panel-wrapper main.dtrg-main {
        padding: 16px !important;
    }
}

@media (max-width: 640px) {
    .client-panel-wrapper aside.dtrg-sidebar {
        flex-wrap: wrap !important;
    }
    .client-panel-wrapper aside.dtrg-sidebar a {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    .client-panel-wrapper .welcome-section {
        flex-direction: column !important;
        text-align: center !important;
    }
    .client-panel-wrapper .modules-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Utility classes */
.hide-mobile { display: block; }
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
