/* =========================================
   FUENTE DE LA MARCA
   Space Grotesk (SIL Open Font License 1.1), alojada en el sitio.
   Es una fuente variable: un solo archivo cubre los pesos 300 a 700.
   ========================================= */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================
   VARIABLES CORPORATIVAS JAVAR OBRAS
   ========================================= */
:root {
    /* Paleta Oficial (Manual de Marca) */
    --color-dark: #212322;    /* Negro/Gris muy oscuro - Fondo principal */
    --color-silver: #D0D3D4;  /* Gris claro - Textos secundarios */
    --color-steel: #425464;   /* Azul Acero - Detalles y fondos secundarios */
    --color-neon: #92D500;    /* Verde Neón - Acentos y botones (El color estrella) */
    
    --text-light: #FFFFFF;
    --font-main: 'Space Grotesk', sans-serif;

    /* Movimiento */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --nav-h: 70px;
}
html { scroll-padding-top: var(--nav-h); overflow-x: clip; }

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

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Íconos (sprite SVG en el HTML) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; flex-shrink: 0; }

/* Tipografía y Textos */
h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.highlight { color: var(--color-neon); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

/* Botones y Badges */
.btn-primary {
    background: transparent;
    color: var(--color-neon);
    padding: 12px 30px;
    border: 2px solid var(--color-neon);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 250ms var(--ease-out), box-shadow 250ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-out);
}
.btn-primary:focus-visible { color: var(--color-dark); outline: 2px solid var(--text-light); outline-offset: 3px; }
.btn-primary:focus-visible::before { transform: scaleX(1); }
.btn-primary:active, .btn-neon:active, .filter-btn:active, .social-btn:active, .project-more:active { transform: scale(0.97); }
.btn-neon {
    background: var(--color-neon);
    color: var(--color-dark) !important;
    padding: 8px 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.badge-neon {
    background: rgba(146, 213, 0, 0.1);
    color: var(--color-neon);
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--color-neon);
    display: inline-block;
    margin-bottom: 20px;
}

/* Navegación */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(33, 35, 34, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(208, 211, 212, 0.1);
    transition: box-shadow 300ms ease, background-color 300ms ease;
}
nav.is-scrolled { background: rgba(26, 28, 27, 0.97); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-neon); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1300px;
    margin: 0 auto;
    transition: padding 300ms var(--ease-out);
}
nav.is-scrolled .nav-container { padding-top: 10px; padding-bottom: 10px; }
.logo { display: block; }
.logo img {
    height: 40px;
    width: auto;
    display: block;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--color-silver);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 200ms ease;
}
.nav-links a:not(.btn-neon) { position: relative; padding: 4px 0; }
.nav-links a:not(.btn-neon)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-neon); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.nav-links a.is-current { color: var(--text-light); }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 4px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid rgba(208, 211, 212, 0.3); cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text-light); transition: transform 250ms var(--ease-out), opacity 150ms ease; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Slider */
.hero-slider { position: relative; height: 100vh; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 900ms ease, visibility 0s 900ms; display: flex; align-items: center; padding: 0 10%; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 900ms ease, visibility 0s; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.45; filter: grayscale(40%) contrast(110%); transition: transform 6s ease-out; }
.slide::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%); pointer-events: none; }
.slide.active .slide-bg { transform: scale(1.08); transition-duration: var(--slide-duration, 6000ms); }
.slide-content { max-width: 720px; position: relative; z-index: 2; }
.slide-content > * { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 700ms var(--ease-out); }
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > :nth-child(1) { transition-delay: 250ms; }
.slide.active .slide-content > :nth-child(2) { transition-delay: 330ms; }
.slide.active .slide-content > :nth-child(3) { transition-delay: 410ms; }
.slide.active .slide-content > :nth-child(4) { transition-delay: 490ms; }
.slide-content h1, .slide-content .slide-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-light); }
.slide-content p { font-size: 1.2rem; color: var(--color-silver); margin-bottom: 35px; }

/* Controles de Slider */
.slider-controls { position: absolute; bottom: 40px; left: 10%; z-index: 10; display: flex; align-items: center; gap: 10px; }
.slide-counter { margin-right: 14px; color: var(--color-silver); font-size: 0.85rem; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.slide-counter b { color: var(--text-light); font-weight: 700; }
.dot { position: relative; width: 48px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; }
.dot::before, .dot span { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; }
.dot::before { background: rgba(208, 211, 212, 0.3); }
.dot span { background: var(--color-neon); transform: scaleX(0); transform-origin: left; }
.dot.active span { animation: slide-progress var(--slide-duration, 6000ms) linear forwards; }
.hero-slider.is-paused .dot.active span { animation: none; transform: scaleX(1); }
.dot:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 2px; }
@keyframes slide-progress { to { transform: scaleX(1); } }
.scroll-cue { position: absolute; right: 5%; bottom: 36px; z-index: 10; width: 26px; height: 42px; border: 2px solid rgba(208, 211, 212, 0.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--color-neon); animation: scroll-cue 1.8s var(--ease-in-out) infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Nosotros */
.about-section { padding: 100px 0; background: var(--color-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.lead-text { font-size: 1.2rem; color: var(--text-light); margin-bottom: 15px; }
.about-text p { color: var(--color-silver); margin-bottom: 15px; }
.lead-text strong { color: var(--color-neon); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 70px; }
.mv-card { background: rgba(208, 211, 212, 0.03); border: 1px solid rgba(208, 211, 212, 0.1); border-top: 3px solid var(--color-neon); padding: 35px 30px; }
.mv-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.mv-quote { font-size: 1.15rem; font-weight: 700; color: var(--text-light); margin-bottom: 15px; }
.mv-card p:last-child { color: var(--color-silver); }
.team-block { margin-top: 70px; }
.team-block h3 { font-size: 1.8rem; margin-bottom: 25px; text-align: center; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.team-lead { max-width: 640px; margin: -10px auto 30px; text-align: center; color: var(--color-silver); }
.team-grid li { aspect-ratio: 1; overflow: hidden; background: #111; }
.team-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.team-grid img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%); transition: transform 0.5s ease, filter 0.5s ease; }
.team-photo:hover img, .team-photo:focus-visible img { transform: scale(1.05); filter: grayscale(0%); }
.team-photo:focus-visible { outline: 2px solid var(--color-neon); outline-offset: -2px; }
.about-image { position: relative; }
.about-image img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; filter: grayscale(20%); z-index: 2; position: relative; }
.img-accent { position: absolute; bottom: -20px; left: -20px; width: 100px; height: 100px; border-bottom: 5px solid var(--color-neon); border-left: 5px solid var(--color-neon); z-index: 1; }

/* Servicios Minimalistas */
.services-section { padding: 100px 0; background: var(--color-steel); } /* Fondo Azul Acero */
.services-section h2 { font-size: 2.5rem; }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 50px; }
.srv-card { flex: 1 1 300px; max-width: 380px; }
.srv-card { position: relative; background: var(--color-dark); padding: 40px 30px; transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.srv-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--color-neon); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease-out); }
.srv-card .icon { display: block; font-size: 2.5rem; color: var(--color-neon); margin-bottom: 20px; transition: transform 300ms var(--ease-out); }
.srv-card h3 { margin-bottom: 15px; font-size: 1.2rem; }
.srv-card p { color: var(--color-silver); font-size: 0.9rem; }

/* Proyectos */
.projects-section { padding: 100px 0; background: var(--color-dark); }
.projects-section h2 { font-size: 2.5rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.project-card { background: rgba(208, 211, 212, 0.03); border: 1px solid rgba(208, 211, 212, 0.1); display: flex; flex-direction: column; overflow: hidden; transition: border-color 0.3s; }
.project-card:hover, .project-card:focus-within { border-color: var(--color-neon); }
.project-img-wrapper { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #111; overflow: hidden; cursor: pointer; }
.project-img-wrapper img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: transform 0.5s ease, filter 0.5s ease; }
.project-card:hover .project-img-wrapper img, .project-img-wrapper:focus-visible img { transform: scale(1.05); filter: grayscale(0%); }
.project-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: rgba(33, 35, 34, 0.85); color: var(--text-light); font-family: var(--font-main); font-size: 0.8rem; font-weight: 500; }
.project-count .icon { color: var(--color-neon); margin-right: 4px; }
.project-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.project-info h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 8px; color: var(--text-light); overflow-wrap: anywhere; }
.project-category { color: var(--color-neon); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.project-desc { color: var(--color-silver); font-size: 0.9rem; flex-grow: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.project-desc strong { color: var(--text-light); }
.project-desc p + p { display: none; }
.project-more { align-self: flex-start; margin-top: 10px; padding: 8px 0; background: none; border: 0; color: var(--color-neon); font-family: var(--font-main); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; }
.project-more .icon { margin-left: 6px; transition: transform 0.3s; }
.project-more:hover .icon, .project-more:focus-visible .icon { transform: translateX(4px); }
.project-img-wrapper:focus-visible, .project-more:focus-visible, .pm-close:focus-visible, .pm-gallery a:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 3px; }

/* Ventana de detalle de proyecto */
.project-modal { width: min(1100px, calc(100% - 30px)); max-height: calc(100dvh - 30px); margin: auto; padding: 0; background: var(--color-dark); color: var(--text-light); border: 1px solid rgba(208, 211, 212, 0.2); border-top: 4px solid var(--color-neon); overflow: hidden; }
.project-modal[open] { display: flex; flex-direction: column; }
.project-modal::backdrop { background: rgba(0, 0, 0, 0.8); }
.pm-body { padding: 40px; overflow-y: auto; overscroll-behavior: contain; }
.pm-body h3 { font-size: 1.5rem; line-height: 1.3; margin: 0 40px 8px 0; overflow-wrap: anywhere; }
.pm-desc { color: var(--color-silver); max-width: 80ch; }
.pm-desc p { margin-bottom: 12px; }
.pm-desc strong { color: var(--text-light); }
.pm-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; background: rgba(33, 35, 34, 0.9); border: 1px solid rgba(208, 211, 212, 0.3); color: var(--text-light); font-size: 1.2rem; cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.pm-close:hover { border-color: var(--color-neon); color: var(--color-neon); }
.pm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 25px; }
.pm-gallery a { display: block; aspect-ratio: 1; background: #111; overflow: hidden; }
.pm-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pm-gallery a:hover img { transform: scale(1.06); }
body.has-dialog { overflow: hidden; }
@media (max-width: 600px) {
    .pm-body { padding: 55px 18px 20px; }
    .pm-body h3 { font-size: 1.2rem; margin-right: 0; }
    .pm-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
}

/* Filtro de proyectos */
.project-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.filter-btn { padding: 9px 18px; background: transparent; border: 1px solid rgba(208, 211, 212, 0.3); color: var(--color-silver); font-family: var(--font-main); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.filter-btn:hover { border-color: var(--color-neon); color: var(--color-neon); }
.filter-btn.is-active { background: var(--color-neon); border-color: var(--color-neon); color: var(--color-dark); font-weight: 700; }
.filter-btn:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 3px; }
.project-card[hidden] { display: none; }
.project-tag { align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border: 1px solid rgba(208, 211, 212, 0.3); color: var(--color-silver); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.project-empty { margin-top: 40px; text-align: center; color: var(--color-silver); }
@media (max-width: 600px) {
    .project-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 10px -5vw 0; padding: 4px 5vw 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
    .filter-btn { flex: 0 0 auto; scroll-snap-align: start; }
}

/* Galería a pantalla completa */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.95); color: var(--text-light); overflow: hidden; }
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px 70px; touch-action: pan-y; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 150ms ease; }
.lb-figure img.is-changing { opacity: 0.4; }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; background: rgba(33, 35, 34, 0.8); border: 1px solid rgba(208, 211, 212, 0.3); color: var(--text-light); font-size: 1.2rem; cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.lb-btn:hover { border-color: var(--color-neon); color: var(--color-neon); }
.lb-btn:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 3px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 0.9rem; color: var(--color-silver); }
@media (max-width: 600px) {
    .lb-figure { padding: 60px 0; }
    .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* Han confiado en nosotros */
.clients-section { padding: 70px 0; background: #1a1c1b; border-top: 1px solid rgba(208, 211, 212, 0.1); text-align: center; }
.clients-section h2 { font-size: 1.6rem; margin-bottom: 35px; }
.clients-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients-list { list-style: none; display: flex; flex-shrink: 0; align-items: center; gap: 60px; padding-right: 60px; animation: marquee 40s linear infinite; }
.clients-list li { white-space: nowrap; }
.clients-marquee:hover .clients-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.clients-list li { color: #a9adae; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.3; transition: color 0.3s; }
.clients-list li:hover { color: var(--text-light); }
@media (max-width: 600px) {
    .clients-section { padding: 55px 0; }
    .clients-list { gap: 40px; padding-right: 40px; animation-duration: 30s; }
    .clients-list li { font-size: 1.05rem; }
}

/* Contacto */
.contact-section { padding: 100px 0; background: linear-gradient(rgba(33, 35, 34, 0.9), rgba(33, 35, 34, 0.9)), url('img/hero/hero-02.jpg') center/cover; }
.contact-box { background: var(--color-dark); max-width: 700px; margin: 0 auto; padding: 50px; border-top: 5px solid var(--color-neon); text-align: center; }
.contact-box h2 { font-size: 2rem; margin-bottom: 15px; }
.contact-box p { color: var(--color-silver); margin-bottom: 30px; }
#contact-form { text-align: left; }
#contact-form .form-row { display: flex; gap: 20px; }
#contact-form .field { flex: 1; min-width: 0; margin-bottom: 20px; }
#contact-form label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-silver); }
#contact-form input, #contact-form textarea, #contact-form select { width: 100%; padding: 15px; background: rgba(208, 211, 212, 0.05); border: 1px solid rgba(208, 211, 212, 0.2); border-radius: 0; color: var(--text-light); font-family: var(--font-main); font-size: 1rem; outline: none; transition: border 0.3s; }
#contact-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-neon) 50%), linear-gradient(135deg, var(--color-neon) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; text-overflow: ellipsis; }
#contact-form select option { background: var(--color-dark); color: var(--text-light); }
#contact-form textarea { resize: vertical; }
#contact-form input:focus, #contact-form textarea:focus, #contact-form select:focus { border-color: var(--color-neon); }
#contact-form [aria-invalid="true"] { border-color: #ff8a80; }
#contact-form .field-error { display: block; min-height: 0; margin-top: 6px; font-size: 0.85rem; color: #ff8a80; }
#contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-form button { width: 100%; font-family: var(--font-main); font-size: 1.1rem; cursor: pointer; }
#contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.contact-box .form-status { margin: 20px 0 0; font-weight: 500; text-align: center; }
.contact-box .form-status:empty { display: none; }
.contact-box .form-status.is-ok { color: var(--color-neon); }
.contact-box .form-status.is-error { color: #ff8a80; }
.contact-direct { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 30px; padding-top: 25px; border-top: 1px solid rgba(208, 211, 212, 0.15); font-size: 0.95rem; }
.contact-direct li { display: flex; align-items: center; gap: 8px; color: var(--color-silver); }
.contact-direct .icon { color: var(--color-neon); }
.contact-direct a { color: var(--text-light); text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s; }
.contact-direct a:hover, .contact-direct a:focus-visible { color: var(--color-neon); }

/* Footer */
.main-footer { background: #111; padding: 60px 0 20px; border-top: 1px solid rgba(208, 211, 212, 0.1); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-info h3, .footer-social h3 { color: var(--color-neon); margin-bottom: 20px; font-size: 1.1rem; }
.footer-info p { color: var(--color-silver); margin-bottom: 10px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--text-light); text-decoration: none; border: 1px solid rgba(208, 211, 212, 0.3); padding: 10px 20px; transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.footer-info a { color: inherit; text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s; }
.footer-info a:hover, .footer-info a:focus-visible { color: var(--color-neon); }
.footer-social .social-btn { margin: 0 10px 10px 0; }
.social-btn:hover { border-color: var(--color-neon); color: var(--color-neon); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(208, 211, 212, 0.1); padding-top: 20px; color: var(--color-silver); font-size: 0.85rem; }
.footer-bottom a { color: var(--color-neon); text-decoration: none; }

/* WhatsApp Flotante */
.wa-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); cursor: pointer; z-index: 1000; transition: transform 0.3s ease; text-decoration: none; }
.wa-float:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 900px) {
    .slide-content h1, .slide-content .slide-title { font-size: 2.2rem; }
    .about-grid, .footer-content, .mv-grid { grid-template-columns: 1fr; }
    .mv-grid { margin-top: 50px; }
    .team-block { margin-top: 50px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    #contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-box { padding: 30px 20px; }
}
/* =========================================
   MOVIMIENTO E INTERACCIÓN
   ========================================= */

/* Aparición al hacer scroll (solo con JavaScript activo) */
.js [data-aos] { opacity: 0; transform: translateY(28px); transition: opacity 600ms ease, transform 800ms var(--ease-out); }
.js [data-aos="fade-right"] { transform: translateX(-36px); }
.js [data-aos="fade-left"] { transform: translateX(36px); }
.js [data-aos="zoom-in"] { transform: translateY(20px) scale(0.97); }
.js [data-aos].is-visible { opacity: 1; transform: none; }

/* Títulos de sección con acento verde */
.section-title::after { content: ''; display: block; width: 56px; height: 3px; margin-top: 14px; background: var(--color-neon); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out) 200ms; }
.text-center .section-title::after, .clients-section .section-title::after, .contact-box .section-title::after { margin-left: auto; margin-right: auto; transform-origin: center; }
.section-title.is-visible::after { transform: scaleX(1); }

/* Foto de Nosotros: revelado con recorte */
.js .about-image picture { display: block; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out) 150ms; }
.js .about-image.is-visible picture { clip-path: inset(0 0 0 0); }

/* Hover solo en dispositivos con puntero fino */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { color: var(--color-dark); box-shadow: 0 0 24px rgba(146, 213, 0, 0.35); }
    .btn-primary:hover::before { transform: scaleX(1); }
    .btn-neon:hover { background: #a3e600; box-shadow: 0 0 15px rgba(146, 213, 0, 0.5); }
    .nav-links a:not(.btn-neon):hover::after { transform: scaleX(1); }
    .srv-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45); }
    .srv-card:hover::before { transform: scaleX(1); }
    .srv-card:hover .icon { transform: translateY(-4px) scale(1.06); }
    .mv-card { transition: border-color 250ms ease, transform 300ms var(--ease-out); }
    .mv-card:hover { transform: translateY(-4px); border-color: rgba(146, 213, 0, 0.45); }
    .scroll-cue:hover { border-color: var(--color-neon); }
}

/* Ventanas: entrada suave */
.project-modal[open], .lightbox[open] { animation: dialog-in 260ms var(--ease-out); }
.project-modal[open]::backdrop, .lightbox[open]::backdrop { animation: backdrop-in 260ms ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes backdrop-in { from { opacity: 0; } }
.lightbox[open] { animation-name: backdrop-in; }

/* WhatsApp: aparece tras la carga */
.wa-float { animation: wa-in 500ms var(--ease-out) 1.2s backwards; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }

/* Menú móvil */
@media (max-width: 900px) {
    .js [data-aos="fade-right"], .js [data-aos="fade-left"] { transform: translateY(28px); }
    :root { --nav-h: 64px; }
    .nav-toggle { display: block; }
    .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 5% 24px; background: rgba(26, 28, 27, 0.98); border-bottom: 1px solid rgba(208, 211, 212, 0.1); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 200ms ease, transform 250ms var(--ease-out), visibility 0s 250ms; }
    nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 250ms var(--ease-out), visibility 0s; }
    .nav-links li { border-bottom: 1px solid rgba(208, 211, 212, 0.08); }
    .nav-links li:nth-last-child(2) { border-bottom: 0; padding-top: 16px; }
    .nav-links a:not(.btn-neon) { display: block; padding: 14px 0; font-size: 1rem; }
    .nav-links a:not(.btn-neon)::after { bottom: 8px; right: auto; width: 32px; }
    .nav-links .btn-neon { display: block; text-align: center; padding: 14px 20px; }
    .slider-controls { bottom: 28px; }
    .scroll-cue { display: none; }
}

/* Selector de idioma */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; }
.lang-switch span, .lang-switch a { padding: 8px 8px; }
.lang-switch span { color: var(--color-neon); }
.nav-links .lang-switch a { color: var(--color-silver); font-size: 0.8rem; font-weight: 700; }
.nav-links .lang-switch a::after { display: none; }
.lang-switch span + a::before { content: '/'; margin-right: 8px; color: rgba(208, 211, 212, 0.4); }
.lang-switch a + span::before { content: '/'; margin-right: 8px; color: rgba(208, 211, 212, 0.4); }
@media (max-width: 900px) {
    .nav-links li.lang-switch { justify-content: center; padding-top: 14px; border-bottom: 0; }
    .nav-links .lang-switch a { display: inline; padding: 4px 6px; }
}

/* Textos que antes llevaban estilos en línea (necesario para la política de seguridad de contenido) */
.section-intro { color: var(--color-silver); max-width: 600px; margin: 0 auto; }
.footer-logo { max-width: 150px; height: auto; margin-bottom: 20px; }
.footer-text { color: var(--color-silver); font-size: 0.9rem; }

/* Pausa del carrusel y de la franja de clientes */
.hero-pause { position: relative; width: 32px; height: 32px; margin-right: 6px; padding: 0; background: none; border: 1px solid rgba(208, 211, 212, 0.4); cursor: pointer; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.hero-pause span, .hero-pause span::before { position: absolute; top: 10px; width: 3px; height: 10px; background: var(--text-light); }
.hero-pause span { left: 11px; }
.hero-pause span::before { content: ''; top: 0; left: 6px; }
.hero-pause.is-paused span { left: 12px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--text-light); top: 9px; }
.hero-pause.is-paused span::before { display: none; }
.hero-pause:active { transform: scale(0.95); }
.hero-pause:focus-visible, .marquee-pause:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 2px; }
.clients-section .container { position: relative; }
.marquee-pause { display: block; margin: -20px auto 20px; padding: 6px 14px; background: none; border: 1px solid rgba(208, 211, 212, 0.3); color: var(--color-silver); font-family: var(--font-main); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.clients-marquee.is-paused .clients-list, .clients-marquee:focus-within .clients-list { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
    .hero-pause:hover, .marquee-pause:hover { border-color: var(--color-neon); color: var(--color-neon); }
}

/* Página 404 */
.error-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 5%; text-align: center; }
.error-logo img { height: 44px; width: auto; margin-bottom: 20px; }
.error-code { font-size: 5rem; font-weight: 700; line-height: 1; color: var(--color-neon); }
.error-page h1 { font-size: 1.8rem; }
.error-text { color: var(--color-silver); }
.error-en { margin-top: 20px; font-size: 0.9rem; color: var(--color-silver); }
.error-en a { color: var(--color-neon); }

/* Movimiento reducido: sin desplazamientos, solo fundidos */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .js [data-aos], .slide-content > * { transform: none !important; transition: opacity 300ms ease !important; }
    .slide-bg, .slide.active .slide-bg { transform: none !important; transition: none !important; }
    .js .about-image picture { clip-path: none; }
    .clients-list { animation: none; }
    .clients-list[aria-hidden="true"] { display: none; }
    .clients-marquee { justify-content: center; -webkit-mask-image: none; mask-image: none; }
    .clients-marquee .clients-list { flex-wrap: wrap; justify-content: center; flex-shrink: 1; gap: 18px 40px; padding: 0; }
    .scroll-cue span, .dot.active span { animation: none; }
    .marquee-pause { display: none; }
    .dot.active span { transform: scaleX(1); }
    .wa-float, .project-modal[open], .lightbox[open] { animation: none; }
}
