/* Design System for EROS CONSULTING */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f2ca50;
    --primary-container: #d4af37;
    --on-primary: #3c2f00;
    --surface: #131313;
    --surface-lowest: #0e0e0e;
    --on-surface: #e5e2e1;
    --on-surface-variant: #d0c5af;
}

body { 
    font-family: 'Manrope', sans-serif; 
    background-color: #0e0e0e; 
    color: #e5e2e1; 
    overflow-x: hidden;
}

.font-serif { font-family: 'Noto Serif', serif; }

.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; 
    display: inline-block;
}

.glass-nav { 
    background: rgba(14, 14, 14, 0.8); 
    backdrop-filter: blur(30px); 
}

.liquid-glass {
    background: rgba(19, 19, 19, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.liquid-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.liquid-glass-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(242, 202, 80, 0.3);
}

.liquid-glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
}

.gold-gradient { background: linear-gradient(45deg, #f2ca50, #d4af37); }
.gold-glow:focus { border-color: #f2ca50; box-shadow: 0 0 8px rgba(242, 202, 80, 0.3); }
.asymmetric-border { border-left: 4px solid #d4af37; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

html.light-mode { filter: invert(1) hue-rotate(180deg); }
html.light-mode img { filter: invert(1) hue-rotate(180deg); }
html.light-mode video { filter: invert(1) hue-rotate(180deg); }

/* Reduce white overlay intensity on images/videos in light mode */
html.light-mode .hero-overlay {
    opacity: 0.45; /* Soften the white gradient overlay */
}

html.light-mode .contact-video {
    opacity: 0.85; /* Make the video more visible against the light background */
}

/* TABS STYLES */
.tabs-nav-container {
    display: inline-flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 6px;
    margin-bottom: 3rem;
}

.tab-btn {
    position: relative;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #99907c;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    cursor: pointer;
}

.tab-btn.active { color: #0e0e0e; }

.tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(45deg, #f2ca50, #d4af37);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
    box-shadow: 0 4px 15px rgba(242, 202, 80, 0.3);
}

/* SERVICES GRID SYSTEM */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    animation: fadeInSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
    .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.liquid-glass-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.accordion-content-wrapper {
    width: 100%;
    opacity: 1; /* Make content always visible */
    transition: transform 0.4s ease;
}

.liquid-glass-card:hover .accordion-content-wrapper {
    transform: translateY(-5px);
}

@media (max-width: 600px) {
    .tabs-nav-container {
        display: flex; /* Change from inline-flex to flex for mobile overflow */
        padding: 4px;
        margin-bottom: 2rem;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
    }
    
    .tabs-nav-container::-webkit-scrollbar { display: none; }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.72rem;
        letter-spacing: 0.01em;
        flex-shrink: 0;
    }

    .tab-indicator {
        top: 4px;
        left: 4px;
        height: calc(100% - 8px);
    }

    .liquid-glass-card {
        padding: 1.5rem !important;
    }
    
    h2 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
}

.tab-content.active {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* INCLUSIONES ANIMATIONS */
.inclusion-item {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding: 1.5rem;
    margin: -1.5rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    display: flex;
    gap: 2rem;
    cursor: default;
}

.inclusion-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.inclusion-item:hover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #f2ca50, transparent);
    border-radius: 4px;
}

.inclusion-number {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #544519;
    color: #c8b37d;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.25rem;
}

.inclusion-item:hover .inclusion-number {
    background: linear-gradient(45deg, #f2ca50, #d4af37);
    border-color: transparent;
    color: #0e0e0e;
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 8px 25px rgba(242, 202, 80, 0.4);
}

/* MODAL SYSTEM */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #99907c;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #f2ca50;
}

.modal-content-text {
    font-family: 'Manrope', sans-serif;
    color: #d0c5af;
    line-height: 1.8;
}

.modal-content-text h2 {
    color: #f2ca50;
    margin-bottom: 1.5rem;
}

.modal-content-text p {
    margin-bottom: 1.25rem;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
