/* 
 * SocialArte Web - ARTISTIC & CINEMATIC CSS
 * True Depth Glassmorphism System
 */

:root {
    --bg-main: #000000;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-primary: #667eea;
    --accent-secondary: #4facfe;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* Top Navigation (Cinematic Header) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    -webkit-mask: url('../assets/logo.png') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('../assets/logo.png') no-repeat center;
    mask-size: contain;
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.user-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section (Artistic Entry) */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 0 60px 0;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-column {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.primary-sm {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.outline-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.outline-sm:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(102, 126, 234, 0.2);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Sleek Dark Cards (True Depth) */
.sleek-card {
    background: #111111;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.sleek-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

/* Cinematic Image Cards */
.image-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.image-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
    z-index: 1;
}

.image-card:hover .image-card-bg {
    transform: scale(1.05);
}

.image-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.image-card-content {
    position: relative;
    z-index: 3;
}

.image-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.image-card-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Video Testimonials */
.video-card {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
}

/* Auth Overlay Global */
.auth-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    padding: 30px;
    border-radius: inherit;
}

@media (max-width: 1100px) {
    .video-row {
        flex-wrap: wrap;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text-column {
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        transform: none;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .module-card {
        flex-direction: column !important;
    }
    .module-card > div {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .module-card .module-card-content {
        padding: 20px !important;
    }
    .hero {
        padding-top: 180px !important;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* In a real app we'd have a hamburger menu */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}


/* CSS para Language Dropdown de mega_traductor */
.lang-dropdown { position: relative; display: inline-block; margin-right: 15px; align-self: center; }
.lang-dropdown-btn { 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 20px; padding: 6px 12px; color: white; cursor: pointer; 
    display: flex; align-items: center; gap: 5px; font-family: Inter, sans-serif; 
    font-size: 13px; transition: all 0.2s ease; outline: none;
}
.lang-dropdown-btn:hover { background: rgba(255,255,255,0.1); }
.lang-dropdown-list { 
    display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; 
    background: rgba(20,20,20,0.95); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; padding: 8px; list-style: none; min-width: 140px; 
    backdrop-filter: blur(10px); z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    max-height: 300px; overflow-y: auto; margin-left: 0;
}
.lang-dropdown.open .lang-dropdown-list { display: block; }
.lang-dropdown-option { 
    padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; 
    color: rgba(255,255,255,0.8); transition: all 0.2s; white-space: nowrap;
}
.lang-dropdown-option:hover { background: rgba(255,255,255,0.1); color: white; }
.lang-dropdown-option.selected { background: rgba(102,126,234,0.15); color: #667eea; font-weight: 600; }
.lang-dropdown-list::-webkit-scrollbar { width: 6px; }
.lang-dropdown-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }


/* --- Dropdown Menus for Navigation --- */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 10, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}
