/* =========================================
   GRUPO QACCION - Estilos Globales
========================================= */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #1e1e2e; color: #ffffff; overflow-x: hidden; padding-top: 80px; }
.font-sora { font-family: 'Sora', sans-serif; }

.glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); }
#navbar.solid { background: #1e1e2e; }

.gradient-text { background: linear-gradient(135deg, #ffffff 0%, #D94D17 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-bg { background: linear-gradient(135deg, #24243a 0%, #1e1e2e 100%); }
.hero-overlay { background: linear-gradient(to bottom, rgba(30,30,46,0.3) 0%, rgba(30,30,46,0.7) 60%, #1e1e2e 100%); }

.section-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

.stat-counter { font-variant-numeric: tabular-nums; }

.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #D94D17; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

.btn-primary { background: linear-gradient(135deg, #D94D17 0%, #c23e10 100%); transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(217,77,23,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(217,77,23,0.4); }

.card-hover { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.image-zoom { overflow: hidden; }
.image-zoom img { transition: transform 0.6s ease; }
.image-zoom:hover img { transform: scale(1.1); }

.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; font-family: sans-serif; z-index: 101; }

/* CARRUSEL DE CLIENTES */
.carousel-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.carousel-item { display: flex; align-items: center; justify-content: center; min-width: max-content; padding: 14px 1rem; background: #ffffff; border-radius: 12px; margin: 0 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.client-logo { height: 40px; width: auto; filter: none; }
.client-logo:hover { filter: none; transform: scale(1.05); transition: transform 0.3s ease; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.form-input:focus { outline: none; border-color: #D94D17; box-shadow: 0 0 0 3px rgba(217,77,23,0.2); }

/* --- VIDEO DE FONDO (ACTUALIZADO) --- */
.video-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.video-bg.playing {
    opacity: 1;
}

.video-overlay { position: absolute; inset: 0; z-index: 1; }
.noise-overlay { position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 2; }

/* =========================================
   ESTRUCTURA Y LAYOUT
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

section[id] { scroll-margin-top: 80px; }

#navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background 0.3s ease; background: transparent; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; gap: 40px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-box { width: 46px; height: 46px; background: linear-gradient(135deg, #D94D17, #c23e10); border-radius: 10px; display: flex; justify-content: center; align-items: center; font-family: 'Sora', sans-serif; font-weight: 700; color: white; font-size: 24px; flex-shrink: 0; }
.logo-text { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; color: white; white-space: nowrap; flex-shrink: 0; }
.logo-q { color: #D94D17; }

.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; margin: 0; padding: 0; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-contact-btn { padding: 10px 22px !important; border-radius: 50px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.menu-toggle span { width: 25px; height: 3px; background-color: white; }

.mobile-menu { display: none; flex-direction: column; padding: 20px; position: absolute; top: 80px; width: 100%; left: 0; background: #1e1e2e; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: white; text-decoration: none; padding: 10px 0; }

/* SELECTOR DE IDIOMAS (DROPDOWN) */
.lang-selector-item { list-style: none; position: relative; }
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown summary { list-style: none; cursor: pointer; }
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown-content { position: absolute; right: 0; top: 100%; margin-top: 10px; background: #1e1e2e; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; overflow: hidden; display: none; z-index: 100; min-width: 160px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.lang-dropdown[open] .lang-dropdown-content { display: block; }
.lang-option { display: block; padding: 10px 15px; color: white; text-decoration: none; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.lang-option:hover { background: rgba(255,255,255,0.1); }
.lang-option-active { background: rgba(217, 77, 23, 0.2); color: #D94D17; font-weight: 700; }
.lang-btn svg { width: 18px; height: 18px; fill: currentColor; margin-right: 5px; }
.lang-btn::after { content: '▾'; margin-left: 5px; font-size: 12px; }

.mobile-lang-divider { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 15px; padding-top: 15px; color: #9ca3af; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-top: -80px; padding-top: 120px; }
.hero-content { text-align: center; padding: 0 20px 60px; max-width: 900px; margin: 0 auto; z-index: 10; }
.hero-badge { display: inline-block; padding: 8px 20px; border-radius: 50px; font-size: 14px; margin-bottom: 20px; }
.dot { display: inline-block; width: 8px; height: 8px; background-color: #D94D17; border-radius: 50%; margin-right: 8px; }
.hero-title { font-family: 'Sora', sans-serif; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; max-width: 100%; }
.hero-title span { display: block; }
.text-accent { color: #D94D17; }
.hero-subtitle { font-size: 1.25rem; color: #d1d5db; margin-bottom: 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }
.btn-primary { text-decoration: none; color: white; padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 16px; display: inline-block; }
.btn-secondary { text-decoration: none; color: white; padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 16px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); transition: 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 60px; }
.stat-card { text-align: center; }
.stat-counter { display: block; font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 5px; }
.stat-label { font-size: 0.875rem; color: #9ca3af; }

.clients-trust-bar { padding: 30px 0; background: #1e1e2e; border-bottom: 1px solid rgba(255,255,255,0.1); }
.trust-label { display: block; text-align: center; color: #9ca3af; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.clients-carousel { overflow: hidden; }

.section { padding: 40px 0 80px; }
.about-section { background: #1e1e2e; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 40px; }
.section-tag { color: #D94D17; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.875rem; display: block; margin-bottom: 15px; }
.section-title-red { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 20px; }
.about-description { color: #9ca3af; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.6; }

.about-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px; border-radius: 16px; }
.pillar-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(217,77,23,0.2); color: #D94D17; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.pillar h4 { font-family: 'Sora', sans-serif; font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 10px; }
.pillar p { color: #9ca3af; font-size: 0.95rem; }
.about-image { border-radius: 20px; overflow: hidden; }
.about-image img { width: 100%; height: auto; display: block; }

.capabilities-section { background: #24243a; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title-white { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 15px; }
.section-subtitle { color: #9ca3af; font-size: 1.125rem; }
.section-subtitle-white { color: #9ca3af; font-size: 1.125rem; }
.capabilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.capability-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px; border-radius: 16px; }
.capability-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(217,77,23,0.2); color: #D94D17; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.capability-card h3 { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 10px; }
.capability-card p { color: #9ca3af; font-size: 0.95rem; }

.opportunities-section { background: #1e1e2e; }
.opportunities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.opportunity-card { border-radius: 20px; overflow: hidden; height: 400px; position: relative; }
.opportunity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.opportunity-card:hover img { transform: scale(1.1); }
.opportunity-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.opportunity-tag { color: #ffffff; font-weight: 700; display: block; margin-bottom: 10px; }
.opportunity-content h3 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 10px; }
.opportunity-content p { color: #d1d5db; font-size: 0.875rem; margin-bottom: 15px; }
.opportunity-link { color: white; text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.opportunity-link:hover { color: #D94D17; }

.projects-section { background: #24243a; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.project-card { overflow: hidden; padding: 0; height: 300px; cursor: pointer; }
.project-card .project-image { width: 100%; height: 100%; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }

.value-section { background: #24243a; }
.value-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 20px; align-items: center; }
.value-step { text-align: center; padding: 30px; border-radius: 16px; }
.value-number { font-family: 'Sora', sans-serif; font-size: 4rem; font-weight: 800; color: #D94D17; display: block; margin-bottom: 15px; transition: all 0.3s ease; }
.value-step h3 { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 10px; }
.value-step p { color: #9ca3af; }
.value-arrow { color: #D94D17; font-size: 2rem; font-weight: bold; text-align: center; }

.experience-section { background: #1e1e2e; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 40px; }
.experience-description { color: #9ca3af; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.6; }
.experience-image { border-radius: 20px; overflow: hidden; }
.experience-image img { width: 100%; height: auto; display: block; }
.experience-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.experience-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px; border-radius: 16px; }
.experience-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(217,77,23,0.2); color: #D94D17; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.experience-item h4 { font-family: 'Sora', sans-serif; font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 10px; }
.experience-item p { color: #9ca3af; font-size: 0.95rem; }

.contact-section { background: #24243a; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-description { color: #9ca3af; font-size: 1.125rem; margin-bottom: 30px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; border-radius: 50%; background: #D94D17; color: white; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.contact-item strong { display: block; color: white; margin-bottom: 5px; }
.contact-item p { color: #9ca3af; }
.contact-item a { color: #9ca3af; text-decoration: none; }
.contact-item a:hover { color: #D94D17; }
.contact-form { padding: 40px; border-radius: 20px; }
.contact-form h3 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #d1d5db; margin-bottom: 8px; font-size: 0.95rem; }
.form-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 12px; color: white; font-size: 1rem; font-family: inherit; }
.form-input::placeholder { color: #6b7280; }
.form-input:focus { outline: none; border-color: #D94D17; box-shadow: 0 0 0 3px rgba(217,77,23,0.2); }
#submitBtn { width: 100%; border: none; cursor: pointer; font-family: inherit; text-align: center; }
#submitBtn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-feedback { text-align: center; margin-top: 15px; color: #10b981; font-weight: 600; }

.contact-map-small { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); max-width: 100%; }

.footer { padding: 60px 0; background: #1e1e2e; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 15px; flex-shrink: 0; }
.footer-brand p { color: #9ca3af; font-size: 0.95rem; max-width: 400px; line-height: 1.6; }
.footer-links h4 { font-family: 'Sora', sans-serif; font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #D94D17; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #6b7280; font-size: 0.875rem; }

/* EFECTO ILUMINACIÓN */
.pillar:hover .pillar-icon,
.capability-card:hover .capability-icon,
.experience-item:hover .experience-icon {
    background-color: rgba(217, 77, 23, 0.8);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(217, 77, 23, 1), 0 0 50px rgba(217, 77, 23, 0.6);
    transform: scale(1.25);
}

.value-step:hover .value-number {
    color: #ff6a4d;
    text-shadow: 0 0 20px rgba(217, 77, 23, 0.8);
    transform: scale(1.05);
}

img { -webkit-user-drag: none; user-drag: none; user-select: none; -webkit-user-select: none; }

/* JUSTIFICAR TEXTOS */
.about-description,
.experience-description {
    text-align: justify;
    hyphens: auto;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu.open { display: flex; }
    .about-grid, .experience-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .capabilities-grid { grid-template-columns: 1fr; }
    .opportunities-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .value-arrow { transform: rotate(90deg); margin: 0 auto; }
    .experience-highlights { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-buttons { flex-direction: column; }
}