/* CSS Variables for Dark Theme (Default) */
:root {
    --color-bg: #050505;
    --color-bg-darker: #020202;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-orange: #ff6a00;
    --color-blue: #00d2ff;
    --color-card: rgba(20, 20, 20, 0.6);
    --color-card-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* CSS Variables for Light Theme */
[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-darker: #f8f9fa;
    --color-text: #111111;
    --color-text-muted: #444444;
    --color-card: rgba(255, 255, 255, 1);
    --color-card-border: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero {
    background: #ffffff !important;
}

[data-theme="light"] .navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="light"]  .nav-links li a,
[data-theme="light"]  .lang-switcher,
[data-theme="light"]  .lang-switcher span,
[data-theme="light"]  .lang-switcher a {
    color: #111111 !important;
    font-weight: 700;
}

[data-theme="light"] .nav-links li a:hover {
    color: var(--color-blue) !important;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
}

body {
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--color-text-muted);
}

.text-orange { color: var(--color-orange); }
.text-blue { color: var(--color-blue); }
.center-text { text-align: center; margin-bottom: 2rem; }

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

.section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links li a:hover {
    color: var(--color-blue);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-orange);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.highlight-link {
    color: var(--color-orange) !important;
}

.pdf-link {
    background: linear-gradient(45deg, var(--color-blue), var(--color-orange));
    padding: 8px 15px;
    border-radius: 20px;
    color: white !important;
}

.pdf-link::after { display: none; }

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    padding: 5px;
    transition: var(--transition);
}

[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root .theme-toggle .icon-moon { display: none; }
:root .theme-toggle .icon-sun { display: inline; }

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.1) 0%, rgba(5, 5, 5, 1) 70%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg3.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.35;
    filter: brightness(0.9) contrast(1.1);
}

.glitch {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--color-text);
}

.subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--color-text);
}

[data-theme="light"] .glitch, [data-theme="light"] .subtitle {
    color: var(--color-text);
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-orange), #ff3300);
    color: white;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.8);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-blue);
    color: var(--color-blue);
}

.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-3px);
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-layout > div {
    flex: 1;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-orange);
}

/* Abstract Graphics */
.image-placeholder {
    height: 400px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.image-placeholder.with-image {
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.feature-graphic.with-image {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.image-placeholder.with-image:hover .section-image, .feature-graphic.with-image:hover .section-image {
    transform: scale(1.02);
}

.pulse-ring {
    width: 150px;
    height: 150px;
    background: rgba(0, 210, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.feature-graphic {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.c1 { width: 300px; height: 300px; border-color: rgba(255, 106, 0, 0.3); animation: rotate 10s linear infinite; }
.c2 { width: 200px; height: 200px; border-color: rgba(0, 210, 255, 0.3); animation: rotate 7s linear infinite reverse; }
.c3 { width: 100px; height: 100px; background: radial-gradient(circle, var(--color-orange), transparent); filter: blur(20px); }

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

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.avatar-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--color-blue);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 210, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Cards */
.card, .spec-item {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .card, [data-theme="light"] .spec-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card:hover, .spec-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.icon.orange { color: var(--color-orange); }
.icon.blue { color: var(--color-blue); }

.team-member {
    text-align: center;
}

.team-member.card {
    padding: 40px 20px;
}

.avatar {
    font-size: 3rem;
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.blue-outline {
    border: 2px solid var(--color-blue);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.orange-outline {
    border: 2px solid var(--color-orange);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
}

.spec-item h4 {
    color: var(--color-orange);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Partners - CORRIGIDO PARA PNGs TRANSPARENTES */
.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.partner-img-placeholder {
    width: 200px;
    height: 100px;
    background: #ffffff;
    border: 2px dashed var(--color-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    padding: 10px;
}

.partner-img-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #ffffff !important;
    display: block;
}

.partner-logo:hover .partner-img-placeholder {
    background: #ffffff;
    border-color: var(--color-orange);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.1);
}

.partner-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    opacity: 1;
    transition: var(--transition);
}

.partner-logo:hover span {
    color: var(--color-orange);
}

.text-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    user-select: none;
}

[data-theme="light"] .partner-img-placeholder {
    background: #ffffff;
    border: 2px dashed var(--color-text);
}

/* Footer */
.footer {
    background: var(--color-bg-darker);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--color-blue);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-orange);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    padding: 8px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-blue);
    color: var(--color-bg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Animations & Responsive */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .split-layout, .split-layout.reverse { flex-direction: column; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
}

@media (max-width: 600px) {
    .specs-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .hero .glitch { font-size: 3rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 15px; }
}