/* ==========================================================================
   JELODA - Yros AI Premium Stylesheet (p/yros/dom/index.css)
   ========================================================================== */

:root {
    --yros-primary: #3b82f6;
    --yros-primary-glow: rgba(59, 130, 246, 0.4);
    --yros-purple: #651fff;
    --yros-purple-glow: rgba(101, 31, 255, 0.3);
}

.yros-page-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Neural Background Canvas */
#neural-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.35;
    pointer-events: none;
}

#neural-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Hero Section */
.yros-hero {
    padding-top: 140px;
    position: relative;
    z-index: 2;
}

#yros-3d-title-container {
    width: 100%;
    height: 180px;
    margin: 0 auto;
    pointer-events: none;
    position: relative;
}

#yros-3d-title-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

.yros-core-wrapper {
    margin-bottom: 30px;
}

.yros-core {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    border: 1px solid rgba(101, 31, 255, 0.25);
    background: radial-gradient(circle, rgba(101, 31, 255, 0.15) 0%, rgba(3, 7, 18, 0.8) 100%);
    box-shadow: 0 0 35px var(--yros-purple-glow);
}

.yros-core i {
    font-size: 48px;
    color: #b388ff;
    animation: pulseIcon 4s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 15px #b388ff;
    }
}

.core-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(101, 31, 255, 0.2);
    border-radius: 50%;
    animation: ring-ripple 4s infinite linear;
}

.ring:nth-child(1) {
    width: 140px;
    height: 140px;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    width: 180px;
    height: 180px;
    animation-delay: 1.3s;
}

.ring:nth-child(3) {
    width: 220px;
    height: 220px;
    animation-delay: 2.6s;
}

@keyframes ring-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.yros-title {
    font-weight: 900 !important;
    font-size: 4rem !important;
    letter-spacing: -2px;
    text-align: center;
    width: 100%;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

.theme--light .yros-title {
    color: #111111 !important;
}

.theme--dark .yros-title {
    color: #ffffff !important;
}

.yros-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yros-subtitle {
    margin-bottom: 30px;
}

/* AI Cards Habilidades */
.ai-card {
    border-radius: 24px !important;
    padding: 30px 24px !important;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.theme--dark .ai-card {
    background: rgba(22, 22, 25, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.theme--light .ai-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(101, 31, 255, 0.03) !important;
}

.ai-card:hover {
    transform: translateY(-10px);
    border-color: var(--yros-primary) !important;
    box-shadow: 0 15px 35px var(--yros-primary-glow) !important;
}

.featured-ai-card {
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent) !important;
}

.ai-icon-box {
    background: rgba(59, 130, 246, 0.12);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.ai-card:hover .ai-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.ai-icon-box i {
    color: var(--yros-primary);
}

.ai-card h3 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.theme--dark .ai-card h3 { color: #ffffff; }
.theme--light .ai-card h3 { color: #111111; }

/* Chat Section */
.chat-section {
    position: relative;
    z-index: 2;
}

.chat-preview-card {
    max-width: 440px;
    width: 100%;
}

.chat-window-box {
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.theme--dark .chat-window-box {
    background: rgba(22, 22, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme--light .chat-window-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(101, 31, 255, 0.04);
}

.chat-header-box {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.theme--light .chat-header-box {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.01);
}

.chat-avatar-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-avatar-box i {
    font-size: 22px;
}

.chat-info-box h6 {
    font-size: 1rem;
}

.theme--light .chat-info-box h6 {
    color: #111111 !important;
}

.status-online {
    font-size: 0.78rem;
    color: #10b981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-online .status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.chat-messages-container {
    padding: 24px 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.user-message {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--yros-primary);
    align-self: flex-end;
}

.theme--dark .user-message {
    color: #60a5fa;
}

.yros-message {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    align-self: flex-start;
}

.theme--light .yros-message {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--yros-primary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-feat-item i {
    color: var(--yros-primary);
}

/* Tech Teaser */
.tech-grid .tech-item {
    padding: 20px;
    min-width: 150px;
}

.tech-grid .tech-item span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.theme--light .tech-grid .tech-item span {
    color: rgba(0, 0, 0, 0.1);
}

.tech-grid .tech-item:hover span {
    color: var(--yros-primary);
    transform: scale(1.1) translateY(-3px);
    text-shadow: 0 5px 15px var(--yros-primary-glow);
}

/* Button Glow effect */
.btn-primary-glow {
    position: relative;
    overflow: hidden;
}

.btn-primary-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.btn-primary-glow:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .yros-title {
        font-size: 2.8rem !important;
    }
    #yros-3d-title-container {
        height: 120px;
    }
    .tech-grid {
        gap: 20px !important;
    }
}

/* Badge Premium Override (Evita float: right de Materialize y centra) */
.badge-premium {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.08) 0%, rgba(101, 31, 255, 0.03) 100%) !important;
    border: 1px solid rgba(101, 31, 255, 0.25) !important;
    color: #651fff !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 4px 15px rgba(101, 31, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 15px;
}

.badge-premium i {
    font-size: 14px !important;
    margin-right: 5px;
    line-height: 1 !important;
}

.badge-premium:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.12) 0%, rgba(101, 31, 255, 0.06) 100%) !important;
    border-color: rgba(101, 31, 255, 0.4) !important;
    box-shadow: 0 6px 20px rgba(101, 31, 255, 0.1) !important;
}

.theme--dark .badge-premium {
    background: linear-gradient(135deg, rgba(179, 136, 255, 0.12) 0%, rgba(179, 136, 255, 0.04) 100%) !important;
    border: 1px solid rgba(179, 136, 255, 0.3) !important;
    color: #b388ff !important;
    box-shadow: 0 4px 15px rgba(179, 136, 255, 0.05) !important;
}

.theme--dark .badge-premium:hover {
    background: linear-gradient(135deg, rgba(179, 136, 255, 0.18) 0%, rgba(179, 136, 255, 0.06) 100%) !important;
    border-color: rgba(179, 136, 255, 0.45) !important;
    box-shadow: 0 6px 20px rgba(179, 136, 255, 0.15) !important;
}

/* ==========================================================================
   SUPPORT FOR LIGHT / DARK THEMES
   ========================================================================== */

/* Titles and Features Theme Colors */
.yros-section-title {
    transition: color 0.3s ease;
}
.theme--dark .yros-section-title {
    color: #ffffff;
}
.theme--light .yros-section-title {
    color: #111111;
}

.yros-feature-title {
    transition: color 0.3s ease;
}
.theme--dark .yros-feature-title {
    color: #ffffff;
}
.theme--light .yros-feature-title {
    color: #1f2937;
}

.yros-chat-title {
    transition: color 0.3s ease;
}
.theme--dark .yros-chat-title {
    color: #ffffff;
}
.theme--light .yros-chat-title {
    color: #111111;
}

/* Core Nucleus Theme Adaptability */
.yros-core {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.theme--light .yros-core {
    background: radial-gradient(circle, rgba(101, 31, 255, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(101, 31, 255, 0.15);
    box-shadow: 0 0 25px rgba(101, 31, 255, 0.1);
}

/* Final CTA Theme Adaptability */
.yros-cta-title {
    transition: color 0.3s ease;
}
.yros-cta-desc {
    transition: color 0.3s ease;
}
.theme--dark .yros-cta-title {
    color: #ffffff;
}
.theme--dark .yros-cta-desc {
    color: rgba(255, 255, 255, 0.8);
}
.theme--light .cta-final-section {
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    box-shadow: 0 20px 40px rgba(101, 31, 255, 0.05) !important;
    border-color: rgba(101, 31, 255, 0.1) !important;
}
.theme--light .yros-cta-title {
    color: #111111;
}
.theme--light .yros-cta-desc {
    color: rgba(0, 0, 0, 0.65);
}

