/* 224 · Soluciones digitales — estilos base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0E1330;
  background: #0E1330;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
section[id] { scroll-margin-top: 88px; }
a { color: #FFFFFF; text-decoration: none; transition: color .15s ease, opacity .15s ease, transform .15s ease; }
a:hover { color: #C6FF3D; }
a[style*="background: #C6FF3D"]:hover, .btn-lime:hover { opacity: .9; transform: translateY(-1px); }
a[style*="background: #0E1330"]:hover { opacity: .88; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] summary span { transform: rotate(45deg); }
summary span { transition: transform .2s ease; display: inline-block; }
input, select, textarea { outline: none; }
input:focus, select:focus, textarea:focus { border-color: #C6FF3D !important; box-shadow: 0 0 0 3px rgba(198,255,61,.18); }
:focus-visible { outline: 2px solid #C6FF3D; outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: #C6FF3D; color: #0E1330; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; color: #0E1330; }

/* Encabezado fijo */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(14,19,48,.92); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Selector de idioma */
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }
.lang-btn { min-width: 44px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; font: 600 13px/1 Inter, sans-serif; letter-spacing: .06em; cursor: pointer; background: transparent; color: #A3AAC2; }
.lang-btn.is-active { background: #FFFFFF; color: #0E1330; }

/* Menú móvil */
.mobile-actions { display: none; align-items: center; gap: 10px; margin-left: auto; }
.lang-mobile .lang-btn { min-width: 40px; height: 34px; padding: 0 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] { background: #C6FF3D; border-color: #C6FF3D; color: #0E1330; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .mobile-actions { display: flex; }
  .nav-links .lang { display: none !important; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: #0E1330; }
  .nav-links {
    display: flex !important;
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - var(--hdr, 73px));
    flex-direction: column; flex-wrap: nowrap !important; align-items: stretch !important; gap: 0 !important;
    padding: 8px 24px calc(28px + env(safe-area-inset-bottom));
    background: #0E1330; border-top: 1px solid rgba(255,255,255,.08);
    overflow-y: auto; counter-reset: navitem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not([href="#contacto"]) {
    counter-increment: navitem;
    display: flex; align-items: center; gap: 16px;
    padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08);
    font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 900;
    font-size: 1.45rem; letter-spacing: -0.02em; color: #FFFFFF !important;
  }
  .nav-links > a:not([href="#contacto"])::before {
    content: counter(navitem, decimal-leading-zero);
    font-family: 'JetBrains Mono', monospace; font-stretch: 100%; font-weight: 500;
    font-size: .8rem; letter-spacing: 0; color: #C6FF3D; min-width: 24px;
  }
  .nav-links > a:not([href="#contacto"])::after {
    content: '→'; margin-left: auto; font-family: Inter, sans-serif; font-weight: 400;
    font-size: 1.1rem; color: #8C93AD; transition: transform .15s ease, color .15s ease;
  }
  .nav-links > a:not([href="#contacto"]):active::after,
  .nav-links > a:not([href="#contacto"]):hover::after { color: #C6FF3D; transform: translateX(4px); }
  .nav-links > a[href="#contacto"] {
    order: 11; margin-top: 28px; text-align: center;
    padding: 18px 20px !important; font-size: 1.05rem !important;
  }
}

/* Franja "Trabajamos con": cinta en movimiento continuo, en todos los dispositivos */
@keyframes techScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech { flex-wrap: nowrap !important; }
.tech > span:first-child { flex: none; white-space: nowrap; }
.tech-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tech-track { flex-wrap: nowrap !important; gap: 0 !important; width: max-content; animation: techScroll 36s linear infinite; }
.tech-track > span { margin-right: 10px; white-space: nowrap; flex: none; }
.tech-viewport:hover .tech-track, .tech-viewport.is-paused .tech-track { animation-play-state: paused; }
@media (max-width: 820px) {
  .tech { flex-direction: column; align-items: flex-start !important; gap: 14px !important; padding-left: 0 !important; padding-right: 0 !important; }
  .tech > span:first-child { padding: 0 24px; }
  .tech-viewport { width: 100%; }
  .tech-track { animation-duration: 28s; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
  .tech-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tech-clone { display: none; }
}

/* Teléfono con selector de país compacto */
.tel-group { position: relative; display: flex; align-items: stretch; height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: #151B42; }
.tel-group:focus-within { border-color: #C6FF3D; box-shadow: 0 0 0 3px rgba(198,255,61,.18); }
.cc-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; flex: none; border: 0; background: transparent; color: #FFFFFF; font: 500 1rem Inter, sans-serif; cursor: pointer; border-radius: 12px 0 0 12px; }
.cc-btn:hover { background: rgba(255,255,255,.05); }
.cc-btn svg { color: #8C93AD; transition: transform .15s ease; }
.cc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); flex: none; background: #2C3466; }
.cc-globe { width: 22px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: #A3AAC2; flex: none; }
.cc-sep { width: 1px; margin: 12px 0; background: rgba(255,255,255,.16); }
.cc-input { flex: 1 1 auto; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; color: #FFFFFF; font-size: 1rem; font-family: Inter, sans-serif; padding: 0 12px; border-radius: 0 12px 12px 0; }
.cc-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 300px; max-width: calc(100vw - 48px); background: #FFFFFF; color: #0E1330; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); padding: 8px; }
.cc-search { width: 100%; height: 42px; border: 1px solid #DCE1EC; border-radius: 10px; padding: 0 12px; font: 400 .95rem Inter, sans-serif; color: #0E1330; margin-bottom: 6px; }
.cc-search:focus { border-color: #4B4BE0 !important; box-shadow: 0 0 0 3px rgba(75,75,224,.15); }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.cc-list li .cc-name { flex: 1; }
.cc-list li .cc-code { color: #5A6178; font-family: 'JetBrains Mono', monospace; font-size: .85rem; }
.cc-list li .cc-flag { box-shadow: 0 0 0 1px rgba(14,19,48,.12); }
.cc-list li .cc-globe { color: #5A6178; }
.cc-list li:hover, .cc-list li.is-active { background: #F0F2F8; }
.cc-list li[aria-selected="true"] { font-weight: 600; }
.cc-list .cc-empty { color: #5A6178; cursor: default; }

/* Mensajes de formularios y avisos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-lime[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-msg { margin: 0; font-size: .92rem; line-height: 1.5; color: #C6FF3D; }
.form-msg.is-error { color: #FFB4A8; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #FFFFFF; color: #0E1330; font-weight: 600; font-size: .95rem; padding: 14px 20px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.3); z-index: 60; max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 560px) {
  [role="img"][aria-label^="Ejemplo de app"] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
