/* ============================================================
   REGLAS ESPECÍFICAS: UNIVERSO 7 - INTELIGENCIA ARTIFICIAL & AUTOMATIZACIÓN
   TEMÁTICA: CRISTAL AHUMADO ORO 24K (GOLD SMOKED GLASSMORPHISM)
   ============================================================ */

/* Títulos con efecto Oro Metálico Brillante */
.uni7-gold-title,
#universe-header h2 {
    background: linear-gradient(135deg, #FFF6D6 0%, #FFD700 28%, #D4AF37 55%, #FFF0AA 75%, #AA771C 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 14px rgba(255, 215, 0, 0.35)) !important;
}

/* ------------------------------------------------------------
   1. CONTENEDOR DEL GENERADOR DE ESTRATEGIAS (GOLD GLASS)
   ------------------------------------------------------------ */
.u7-strategy-generator-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.09) 0%, rgba(255, 255, 255, 0.03) 25%, rgba(18, 15, 8, 0.7) 100%) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 22px;
    padding: 38px 32px;
    box-shadow: none !important;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.u7-strategy-generator-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 20%, #FFF8DC 50%, #FFD700 80%, transparent 100%);
    box-shadow: 0 0 15px #FFD700;
}

.u7-kicker-gold {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 2.2px;
    color: #FFE680;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.u7-input-wrapper {
    display: flex;
    gap: 14px;
    max-width: 700px;
    margin: 26px auto 0 auto;
    position: relative;
}

@media (max-width: 640px) {
    .u7-input-wrapper {
        flex-direction: column;
    }
}

.u7-input-gold {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    padding: 16px 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.u7-input-gold:focus {
    border-color: #FFD700;
    background: rgba(10, 8, 4, 0.75);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.45);
}

.u7-input-gold::placeholder {
    color: rgba(255, 245, 200, 0.5);
}

/* BOTONES ORO 24K BRILLANTE (REFLEXIÓN METÁLICA) */
.u7-btn-generate,
.u7-gold-cta-btn,
.uni7-btn-agente {
    background: linear-gradient(135deg, #D4AF37 0%, #FFF6C5 30%, #E5B939 52%, #FFD700 78%, #AA771C 100%) !important;
    color: #120E03 !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    border: 1px solid rgba(255, 250, 205, 0.85) !important;
    padding: 15px 28px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        0 4px 18px rgba(212, 175, 55, 0.5), 
        0 0 30px rgba(255, 215, 0, 0.3), 
        inset 0 1px 1px #FFFFFF,
        inset 0 -1px 2px rgba(170, 119, 28, 0.5) !important;
}

.u7-btn-generate:hover,
.u7-gold-cta-btn:hover,
.uni7-btn-agente:hover {
    background: linear-gradient(135deg, #FFF3B0 0%, #FFD700 35%, #FFF8DC 65%, #D4AF37 100%) !important;
    color: #000 !important;
    transform: translateY(-2px) scale(1.015) !important;
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.7), 
        0 0 50px rgba(212, 175, 55, 0.6), 
        inset 0 1px 2px #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* Spinner Dorado */
.u7-gold-spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 215, 0, 0.18);
    border-top: 3px solid #FFD700;
    border-right: 3px solid #FFF6C5;
    border-radius: 50%;
    margin: 0 auto;
    animation: u7Spin 0.75s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes u7Spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   2. TRÍADA DE AGENTES (RESULTADO GENERADOR - GLASS)
   ------------------------------------------------------------ */
.u7-triada-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.u7-triada-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.07) 0%, rgba(255, 255, 255, 0.02) 25%, rgba(18, 15, 8, 0.65) 100%) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
}

.u7-triada-card:hover {
    transform: translateY(-4px);
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 255, 255, 0.04) 25%, rgba(24, 20, 10, 0.75) 100%) !important;
    box-shadow: none !important;
}

.u7-triada-card-num {
    position: absolute;
    top: 14px; right: 16px;
    font-size: 10.5px;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.u7-triada-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(170, 119, 28, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFE680;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

/* ------------------------------------------------------------
   3. TARJETAS DE AGENTES (CRISTAL AHUMADO ORO / GLASSMORPHISM)
   ------------------------------------------------------------ */
.uni7-card-agente,
#universe-overlay[data-universe*="IA"] .pricing-card,
#universe-overlay[data-universe*="IA"] .feed-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(18, 15, 8, 0.65) 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 18px !important;
    padding: 28px !important;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease !important;
}

.uni7-card-agente:hover,
#universe-overlay[data-universe*="IA"] .pricing-card:hover,
#universe-overlay[data-universe*="IA"] .feed-card:hover {
    transform: translateY(-6px) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 255, 255, 0.05) 30%, rgba(25, 20, 10, 0.75) 100%) !important;
    border-color: rgba(255, 215, 0, 0.8) !important;
    box-shadow: none !important;
}

#universe-overlay[data-universe*="IA"] .pricing-card::before,
#universe-overlay[data-universe*="IA"] .pricing-card.featured::before,
.uni7-badge-featured {
    display: none !important;
}

.uni7-agent-tag {
    font-size: 11.5px;
    font-weight: 900;
    color: #FFE680;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.uni7-price-block {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.uni7-price-col {
    display: flex;
    flex-direction: column;
}

.uni7-price-label {
    font-size: 10.5px;
    color: rgba(255, 245, 200, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
}

.uni7-price-val {
    font-size: 16px;
    font-weight: 900;
    color: #FFE680;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.uni7-price-val.renta {
    color: #FFFFFF;
    font-size: 17px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Iconos de check dorados */
.uni7-card-agente .material-symbols-outlined {
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* ------------------------------------------------------------
   4. RUTA DE IMPLEMENTACIÓN NEÓN ORO PURO
   ------------------------------------------------------------ */
.uni7-timeline-gold .galax-neon-line {
    background: linear-gradient(180deg, #D4AF37 0%, #FFF8DC 50%, #FFD700 100%) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7) !important;
}

.uni7-timeline-gold .galax-neon-ring {
    border-color: #FFD700 !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.4) !important;
}

.uni7-timeline-gold .galax-neon-ring .material-symbols-outlined {
    color: #FFF6C5 !important;
    text-shadow: 0 0 15px #FFD700 !important;
}

/* ------------------------------------------------------------
   5. BOTÓN VOLVER Y BOTÓN ENVIAR CHAT EN ORO 24K (EXCLUSIVO U7)
   ------------------------------------------------------------ */
#universe-overlay[data-universe*="IA"] #universe-back {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.16) 0%, rgba(212, 175, 55, 0.06) 100%) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.65) !important;
    color: #FFE680 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5) !important;
}

#universe-overlay[data-universe*="IA"] #universe-back:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #FFF6C5 30%, #E5B939 52%, #FFD700 78%, #AA771C 100%) !important;
    color: #120E03 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.8), inset 0 1px 2px #FFFFFF !important;
    text-shadow: none !important;
}

#universe-overlay[data-universe*="IA"] #universe-back .material-symbols-outlined {
    color: inherit !important;
}

#universe-overlay[data-universe*="IA"] .uc-send {
    background: linear-gradient(135deg, #D4AF37 0%, #FFF6C5 30%, #E5B939 52%, #FFD700 78%, #AA771C 100%) !important;
    border: 1px solid rgba(255, 250, 205, 0.85) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5), 0 0 25px rgba(255, 215, 0, 0.35), inset 0 1px 1px #FFFFFF !important;
}

#universe-overlay[data-universe*="IA"] .uc-send:hover {
    background: linear-gradient(135deg, #FFF3B0 0%, #FFD700 35%, #FFF8DC 65%, #D4AF37 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.7), inset 0 1px 2px #FFFFFF !important;
    transform: scale(1.08) !important;
}

#universe-overlay[data-universe*="IA"] .uc-send .material-symbols-outlined {
    color: #120E03 !important;
    font-weight: 900 !important;
}

/* ============================================================
   RESPONSIVE DESIGN (TABLETAS & CELULARES)
   ============================================================ */

/* 1. TABLETAS (<= 1100px - iPad Pro 13, iPad Air, Surface, Foldables) */
@media (max-width: 1100px) {
    .u7-strategy-generator-box {
        padding: 30px 24px;
    }
    .uni7-gold-title {
        font-size: 23px !important;
    }
    .uni7-card-agente {
        padding: 22px !important;
    }
    .u7-triada-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
}

/* 2. CELULARES Y PANTALLAS PEQUEÑAS (<= 768px) */
@media (max-width: 768px) {
    /* Generador de Estrategias */
    .u7-strategy-generator-box {
        padding: 20px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .uni7-gold-title {
        font-size: 19px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .u7-kicker-gold {
        font-size: 9.5px !important;
        letter-spacing: 1px !important;
        padding: 4px 10px !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .u7-input-wrapper {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .u7-input-gold {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }
    .u7-btn-generate {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: normal !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Tríada de resultados */
    .u7-triada-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .u7-triada-card {
        padding: 16px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .u7-gold-cta-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    /* Grids a 1 columna */
    .u-section-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Cards Agentes & RPA */
    .uni7-card-agente {
        padding: 18px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .uni7-price-block {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        margin: 14px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .uni7-price-block > div[style*="width:1px"] {
        width: 100% !important;
        height: 1px !important;
        background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent) !important;
    }
    .uni7-price-col {
        width: 100% !important;
        text-align: left !important;
        min-width: 0 !important;
    }
    .uni7-price-col[style*="text-align:right"] {
        text-align: left !important;
    }
    .uni7-price-val {
        font-size: 14px !important;
        word-break: break-word !important;
    }
    .uni7-price-val.renta {
        font-size: 14.5px !important;
        word-break: break-word !important;
    }
    .uni7-btn-agente {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }
}

