/* ========================================
   PXR - Estilos Globales
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --accent-cyan: #22a1d7;
    --accent-cyan-light: #67bde2;
    --accent-cyan-glow: rgba(34, 161, 215, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --gradient-blue: linear-gradient(135deg, #003056 0%, #22a1d7 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* ========================================
   Navigation
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-center {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-center a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--accent-cyan);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--accent-cyan);
}

.lang-btn img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.btn-linkedin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-blue);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-cyan-glow);
}

.btn-linkedin svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
		var(--bg-primary) 0%, 
        var(--bg-primary) 1%, 
        rgba(10, 10, 15, 0.85) 15%,
        rgba(10, 10, 15, 0.5) 35%, 
        rgba(10, 10, 15, 0.2) 50%,
        rgba(10, 10, 15, 0.1) 60%);
    z-index: 1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 161, 215, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 161, 215, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 161, 215, 0.15);
    border: 1px solid rgba(34, 161, 215, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 span {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-blue);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-cyan-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(34, 161, 215, 0.1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   Sections Common
   ======================================== */

section {
    padding: 6rem 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Solutions Grid
   ======================================== */

.solutions {
    background: var(--bg-secondary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.solution-card:hover {
    border-color: rgba(34, 161, 215, 0.3);
    transform: translateY(-5px);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: rgba(34, 161, 215, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solution-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-cyan);
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
    background: var(--bg-primary);
    padding: 6rem 4rem;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Projects Grid (proyectos.html)
   ======================================== */

.projects-page {
    padding-top: 100px;
    min-height: 100vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card-preview:hover {
    border-color: rgba(34, 161, 215, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(34, 161, 215, 0.15);
}

.project-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 161, 215, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.project-card-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* ========================================
   Project Detail (proyecto.html)
   ======================================== */

.project-detail {
    padding-top: 100px;
    min-height: 100vh;
}

.project-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 10, 15, 0.5) 50%, rgba(10, 10, 15, 0.3) 100%);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.project-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.project-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-hero .subtitulo {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 400;
}

.project-body {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    white-space: pre-line;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.project-gallery img:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.02);
}

/* ========================================
   News Section
   ======================================== */

.news {
    background: var(--bg-secondary);
}

.news-container {
    max-width: 1000px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(34, 161, 215, 0.3);
    transform: translateY(-3px);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.25rem;
}

.news-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-card h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.linkedin-cta {
    text-align: center;
    padding: 2.5rem;
    background: rgba(34, 161, 215, 0.05);
    border: 1px solid rgba(34, 161, 215, 0.15);
    border-radius: 16px;
}

.linkedin-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.linkedin-cta .btn-primary {
    display: inline-flex;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.funding-banner {
    padding: 3rem 4rem;
    background: linear-gradient(135deg, rgba(0, 48, 86, 0.3) 0%, rgba(34, 161, 215, 0.1) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.funding-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.funding-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.funding-text strong {
    color: var(--text-primary);
}

.footer-main {
    padding: 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 28px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a:hover {
    color: var(--accent-cyan);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom span {
    color: var(--accent-cyan);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-center {
        gap: 1.5rem;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    section {
        padding: 4rem 2rem;
    }

    .solutions-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solution-block.reverse {
        direction: ltr;
    }
    
    .api-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-center {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .project-hero {
        height: auto;
        min-height: 300px;
        padding: 2rem;
    }

    .project-body {
        padding: 2rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .funding-banner {
        padding: 2rem;
    }
}

/* ========================================
   Value Triad (Index)
   ======================================== */

.value-triad {
    background: var(--bg-primary);
    padding: 6rem 4rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card:hover {
    border-color: rgba(34, 161, 215, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(34, 161, 215, 0.15);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 161, 215, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-cyan);
}

.value-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.value-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   Solutions Page
   ======================================== */

.solutions-page {
    padding-top: 80px;
}

.solutions-hero {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 6rem 4rem;
    text-align: center;
}

.solutions-hero .section-tag {
    font-size: 0.85rem;
}

.solutions-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.solution-section {
    padding: 5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-section:nth-child(even) {
    background: var(--bg-secondary);
}

.solution-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-block.reverse {
    direction: rtl;
}

.solution-block.reverse > * {
    direction: ltr;
}

.solution-block h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.solution-block > div > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.solution-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.solution-image {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-image-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* API Section */
.api-section {
    padding: 5rem 4rem;
    background: var(--bg-primary);
}

.api-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.api-section > p {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
}

.api-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-cyan);
}

.api-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 5rem 4rem;
    background: linear-gradient(135deg, rgba(0, 48, 86, 0.4) 0%, rgba(34, 161, 215, 0.15) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Clients / Trust Section
   ======================================== */

.clients-section {
    padding: 5rem 4rem;
    background: var(--bg-secondary);
    text-align: center;
}

.clients-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    height: 75px;
    width: 200px;
    opacity: 0.7;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

/* ========================================
   Footer Certifications
   ======================================== */

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
}

.certification-badge {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.certification-badge:hover {
    opacity: 1;
}

/* ========================================
   Cookie Banner
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-text h4 svg {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--gradient-blue);
    color: white;
}

.cookie-btn-accept:hover {
    box-shadow: 0 8px 25px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.cookie-btn-reject:hover {
    border-color: var(--text-secondary);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.cookie-btn-settings:hover {
    background: rgba(34, 161, 215, 0.1);
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-overlay.show {
    display: flex;
}

.cookie-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.cookie-category p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
    background: white;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Video placeholder cuando cookies rechazadas */
.video-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.video-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.video-placeholder h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-placeholder p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   Mobile Menu (hamburger)
   ======================================== */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn.menu-open {
    color: var(--accent-cyan);
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

.nav-center {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #003056;
    z-index: 999;
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.mobile-menu.show {
    transform: translateY(0);
}

.mobile-menu a {
    color: var(--accent-cyan);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(34, 161, 215, 0.2);
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-cyan-light);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-footer .lang-switcher {
    display: flex;
    gap: 0.75rem;
}

.mobile-menu-footer .btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-menu-footer .btn-linkedin svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-right {
        gap: 0.75rem;
    }
    
    .nav-right .btn-linkedin {
        display: none;
    }
    
    .nav-right .lang-switcher {
        display: none;
    }
    
    /* Hero mobile */
    .hero {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Value triad mobile */
    .value-triad {
        padding: 3rem 1.5rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    /* Solutions page mobile */
    .solutions-hero {
        padding: 4rem 1.5rem;
    }
    
    .solutions-hero h1 {
        font-size: 1.3rem;
    }
    
    .solution-section {
        padding: 3rem 1.5rem;
    }
    
    .solution-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solution-block.reverse {
        direction: ltr;
    }
    
    .solution-block h2 {
        font-size: 1.4rem;
    }
    
    .solution-image {
        height: 250px;
        order: -1;
    }
    
    .api-section {
        padding: 3rem 1.5rem;
    }
    
    .api-section h2 {
        font-size: 1.4rem;
    }
    
    .api-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .api-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.4rem;
    }
    
    /* Projects mobile */
    .projects-page {
        padding-top: 80px;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card-image {
        height: 180px;
    }
    
    /* Clients mobile */
    .clients-section {
        padding: 3rem 1.5rem;
    }
    
    .clients-section h2 {
        font-size: 1.4rem;
    }
    
    .clients-logos {
        gap: 2rem;
    }
    
    .client-logo {
        height: 35px;
    }
    
    .footer-certifications {
        justify-content: center;
    }

    /* Video section mobile */
    .video-section {
        padding: 3rem 1.5rem;
    }
    
    /* News mobile */
    .news {
        padding: 3rem 1.5rem;
    }
    
    .news-grid {
        gap: 1rem;
    }
    
    /* Footer mobile */
    .funding-banner {
        padding: 1.5rem;
    }
    
    .funding-text p {
        font-size: 0.8rem;
    }
    
    .footer-main {
        padding: 2rem 1.5rem;
    }
}
