/* --- VARIABLES Y RESET --- */
:root {
    --primary: #FF4C00;
    --secondary: #00A8E8;
    --dark: #0f0f0f;
    --dark-gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--dark); color: var(--text); line-height: 1.6; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- UI ELEMENTS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 76, 0, 0.3);
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: #e04300; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--text); box-shadow: none; margin-left: 10px; }
.btn-outline:hover { background: var(--text); color: var(--dark); }

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 4rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.highlight { color: var(--primary); }

/* --- HEADER --- */
header {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; }
.nav-links { display: flex; gap: 30px; }
.nav-links a:hover { color: var(--primary); }

/* Mobile Menu Button (Oculto en PC) */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.4);
}
.hero-content { z-index: 1; max-width: 800px; padding: 20px; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.3rem; color: #ddd; margin-bottom: 30px; }

/* --- VENTAJAS --- */
.features { padding: 80px 0; background: var(--dark-gray); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.badge-adobe { background: #001E36; color: #00E4BC; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; display: inline-block; margin-top: 10px; }

/* --- CASOS DE USO --- */
.use-cases { padding: 80px 0; }
.use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.use-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}
.use-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.use-item:hover img { transform: scale(1.1); }
.use-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, black);
    padding: 20px;
}

/* --- PRECIOS --- */
.pricing { padding: 80px 0; background: var(--dark-gray); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: center; }
.price-card {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #333;
    position: relative;
}
.price-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    z-index: 2;
}
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}
.price { font-size: 2.5rem; font-weight: bold; margin: 20px 0; color: var(--text); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.features-list { text-align: left; margin: 20px 0; padding-left: 0; }
.features-list li { margin-bottom: 10px; color: #ccc; }
.features-list li i { color: var(--primary); margin-right: 10px; }

/* --- FAQ --- */
.faq { padding: 80px 0; }
.faq-item { background: var(--light-gray); margin-bottom: 15px; border-radius: 10px; overflow: hidden; }
.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px 20px; color: #ccc; font-size: 0.95rem; }

/* --- FOOTER --- */
footer { background: black; padding: 50px 0; text-align: center; border-top: 1px solid #333; }
.social-icons { margin: 20px 0; }
.social-icons a { font-size: 1.5rem; margin: 0 15px; color: #fff; }
.social-icons a:hover { color: var(--primary); }

/* --- TECH SHOWCASE --- */
.tech-showcase { padding: 100px 0; background-color: var(--dark); }
.tech-card {
    display: flex;
    align-items: center;
    background: var(--dark-gray);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
    border: 1px solid #333;
    transition: 0.3s;
}
.tech-card:hover { border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.tech-card.reverse { flex-direction: row-reverse; }
.tech-content { flex: 1; padding: 50px; }
.tech-image { flex: 1; height: 400px; background: #000; }
.tech-image img { width: 100%; height: 100%; object-fit: cover; }
.tech-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.tech-content h3 { font-size: 2.5rem; margin-bottom: 20px; color: white; }
.tech-content p { color: #bbb; margin-bottom: 30px; font-size: 1.1rem; }
.tech-specs { display: flex; gap: 20px; flex-wrap: wrap; }
.tech-specs li {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-specs li i { color: var(--primary); }

/* --- ADOBE BANNER --- */
.adobe-banner {
    text-align: center;
    padding: 60px;
    background: linear-gradient(to right, #0a0a0a, #1a1a1a);
    border-radius: 20px;
    border: 1px solid #222;
    margin-top: 40px;
}
.adobe-banner h3 { font-size: 2rem; margin-bottom: 40px; }
.adobe-icons { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.adobe-app { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform 0.3s; }
.adobe-app:hover { transform: translateY(-5px); }
.app-box {
    width: 80px; height: 80px; border-radius: 18px;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem; font-weight: bold; border: 4px solid;
    background: rgba(0,0,0,0.3);
}
.pr .app-box { color: #9999FF; border-color: #9999FF; } .pr span { color: #9999FF; }
.ae .app-box { color: #D8B1FF; border-color: #D8B1FF; } .ae span { color: #D8B1FF; }
.au .app-box { color: #00E4BC; border-color: #00E4BC; } .au span { color: #00E4BC; }
.ps .app-box { color: #31A8FF; border-color: #31A8FF; } .ps span { color: #31A8FF; }

/* --- OSMO SECTION --- */
.osmo-section { padding: 100px 0; background: #080808; border-top: 1px solid #222; }
.osmo-layout { display: flex; align-items: center; gap: 60px; }
.osmo-text { flex: 1; }
.osmo-text h2 {
    font-size: 3rem; line-height: 1.1; margin: 20px 0;
    background: -webkit-linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.osmo-img-container { flex: 1; position: relative; }
.floating-img {
    width: 100%; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(255, 76, 0, 0.15);
    border: 1px solid #333;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.osmo-features { display: flex; gap: 20px; margin-top: 30px; }
.feature-mini {
    background: rgba(255,255,255,0.08); padding: 15px; border-radius: 10px;
    text-align: center; min-width: 100px; border: 1px solid rgba(255,255,255,0.1);
}
.feature-mini i { font-size: 1.5rem; color: var(--primary); display: block; margin-bottom: 8px; }
.feature-mini span { font-size: 0.85rem; color: #ddd; font-weight: bold; }


/* =========================================
   RESPONSIVE MOBILE (CORREGIDO Y LIMPIO)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Limpieza General */
    html, body { overflow-x: hidden; width: 100%; position: relative; }

    /* 2. Ocultar el botón "Cotizar" del header para ganar espacio */
    header .btn { display: none; }

    /* 3. Ajuste del Header */
    .nav-container { justify-content: space-between; padding: 0 20px; }

    .menu-toggle { 
        display: block; 
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
        z-index: 2000;
    }

    /* 4. Menú Desplegable (PANTALLA COMPLETA) */
    .nav-links {
        display: flex; /* IMPORTANTE: Forzamos flex para que sea visible */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0f0f0f;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 1500;
        
        /* Oculto a la derecha por defecto */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    /* Clase que activa el JS */
    .nav-links.active { transform: translateX(0); }

    .nav-links li a { font-size: 2rem; display: block; }

    /* 5. Ajustes de Contenido */
    .hero h1 { font-size: 2.5rem; }
    .features-grid, .pricing-grid, .use-grid, .tech-specs { grid-template-columns: 1fr; }
    
    .tech-card, .tech-card.reverse, .osmo-layout { flex-direction: column !important; }
    
    .tech-image, .osmo-img-container { width: 100%; height: 250px; margin-bottom: 20px;}
    .tech-content, .osmo-text { padding: 30px 20px; }
    
    .adobe-icons { gap: 15px; }
    .app-box { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* --- ESTILOS DEL PORTAFOLIO Y MODAL --- */

/* Cabecera */
.portfolio-header {
    padding: 120px 0 40px 0;
    text-align: center;
    background: var(--dark);
}

.portfolio-header h1 { font-size: 3rem; margin-bottom: 10px; }

/* Grilla de Videos */
.video-gallery-section {
    padding: 20px 0 80px 0;
    background: var(--dark);
    min-height: 60vh;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta de Video (Miniatura) */
/* --- ESTILOS DEL PORTAFOLIO Y MODAL (ACTUALIZADO) --- */

/* ... (El resto de estilos de cabecera y grilla siguen igual) ... */

/* Tarjeta de Video (Miniatura) */
.video-thumb {
    background: var(--dark-gray);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.video-thumb:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.thumb-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Mantiene la forma rectangular */
    
    /* FONDO SIN IMAGEN */
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a); /* Degradado sutil */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono de Play */
.play-icon {
    font-size: 4rem; /* Icono más grande */
    color: #555; /* Color apagado por defecto */
    transition: 0.3s;
}

.video-thumb:hover .play-icon { 
    color: var(--primary); /* Se pone naranja al pasar el mouse */
    transform: scale(1.1); 
}

.thumb-info { padding: 20px; }
.thumb-info h3 { font-size: 1.1rem; margin-bottom: 5px; color: #fff; }
.thumb-info p { font-size: 0.9rem; color: #aaa; }

/* --- REPRODUCTOR MODAL (VENTANA EMERGENTE) --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 3000; /* Encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95); /* Fondo negro casi sólido */
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 76, 0, 0.2);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity:0} 
    to {transform:scale(1); opacity:1}
}

.modal-content video {
    width: 100%;
    display: block;
    max-height: 70vh;
    background: black;
}

.modal-caption { padding: 20px; text-align: left; }
.modal-caption h3 { color: var(--primary); }

/* Botón de Cerrar (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3001;
}

.close-modal:hover { color: var(--primary); }

/* Responsive para Modal */
@media (max-width: 768px) {
    .modal-content { margin: 20% auto; width: 95%; }
    .close-modal { top: 10px; right: 20px; }
}