@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #0e1328;
  --muted: #5a6378;
  --navy: #16245a;
  --night: #0a1230;
  --accent: #3556e0;
  --accent-2: #10b3a3;
  --blue: #3d7fc6;
  --accent-soft: rgba(53, 86, 224, .08);
  --border: #e5e8f0;
  --radius: 20px;
  --shadow: 0 30px 60px -25px rgba(14, 19, 40, .35), 0 6px 16px rgba(14, 19, 40, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
p { text-wrap: pretty; }

/* ---------- Cabecera ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
header.site.scrolled { border-bottom-color: var(--border); }
.topbar { display: flex; align-items: center; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 10px 24px; height: 70px; }
.logo { display: inline-flex; align-items: flex-end; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.3px; line-height: 1; }
.logo .mark { height: 40px; width: auto; }
.logo .wordmark { padding-bottom: 2px; }
.logo .labs { color: var(--accent); }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s;
}
.nav-cta:hover { background: var(--accent); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--text); user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang summary:hover { border-color: var(--accent); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); animation: pop .16s ease-out;
}
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.lang li a:hover { background: var(--bg-soft); }
.lang li a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 55% at 85% 30%, rgba(61, 127, 198, .55), transparent 70%),
    radial-gradient(35% 45% at 65% 90%, rgba(16, 179, 163, .35), transparent 70%),
    radial-gradient(45% 60% at 0% 0%, rgba(53, 86, 224, .45), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 24px 88px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); margin-bottom: 24px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; margin: 0 0 22px; font-weight: 800; letter-spacing: -.025em; }
.grad { background: linear-gradient(100deg, #7fa8ff, #5fe0d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, .72); font-size: 1.15rem; max-width: 34em; margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--night); box-shadow: 0 12px 30px -10px rgba(127, 168, 255, .6); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5fe0d0; }

.hero-art { position: relative; height: 520px; }
.phone {
  position: absolute; margin: 0; width: 210px; aspect-ratio: 9 / 20; padding: 7px; border-radius: 34px;
  background: #11141f; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
  transition: transform .4s ease;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.hero-art .p1 { left: 8%; top: 10px; transform: rotate(-6deg); z-index: 2; }
.hero-art .p2 { right: 6%; top: 60px; transform: rotate(6deg); }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}
.chip .ok { width: 18px; height: 18px; border-radius: 50%; background: #3ddc97 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.chip.c1 { left: 0; bottom: 70px; }
.chip.c2 { right: 0; top: 18px; }
.js .chip.c1 { animation: float 6s ease-in-out infinite; }
.js .chip.c2 { animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 14px; font-weight: 800; letter-spacing: -.03em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(53, 86, 224, .3); }
.service-card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px -10px rgba(53, 86, 224, .7);
}
.service-card .icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card .icon svg .fillbg { fill: #3a8ad0; }
.service-card h3 { font-size: 1.2rem; margin: 0 0 10px; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0 0 18px; }
.mini { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.mini li { display: flex; gap: 10px; align-items: baseline; }
.mini li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); transform: translateY(-2px); }

/* Proyectos */
.projects-list { display: grid; gap: 28px; }
.project-row {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 28px; overflow: hidden; background: #fff;
  transition: box-shadow .25s, border-color .25s;
}
.project-row:hover { box-shadow: var(--shadow); border-color: rgba(53, 86, 224, .25); }
.project-info { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.project-top { display: flex; align-items: center; gap: 16px; }
.project-logo { width: 56px; height: 56px; border-radius: 15px; flex: none; box-shadow: 0 8px 18px rgba(10, 10, 15, .18); }
.project-row h3 { font-size: 1.5rem; margin: 0; }
.project-url { font-size: 14px; color: var(--muted); text-decoration: none; }
.project-url:hover { color: var(--accent); }
.status { margin-left: auto; align-self: flex-start; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: rgba(61, 220, 151, .14); color: #138a5a; }
.project-info p { color: var(--muted); margin: 0; }
.project-info p strong { color: var(--text); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.project-link {
  align-self: flex-start; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--text);
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border); transition: border-color .15s, color .15s;
}
.project-link span { display: inline-block; transition: transform .2s; }
.project-link:hover { border-color: var(--accent); color: var(--accent); }
.project-link:hover span { transform: translateX(3px); }
.project-media { position: relative; min-height: 500px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sba .project-media { background: radial-gradient(circle at 30% 35%, rgba(53, 210, 74, .35), transparent 55%), radial-gradient(circle at 75% 70%, rgba(59, 130, 255, .4), transparent 55%), #0b0e17; }
.gudtimi .project-media { background: radial-gradient(circle at 25% 30%, rgba(201, 168, 106, .45), transparent 55%), radial-gradient(circle at 80% 75%, rgba(31, 58, 95, .35), transparent 55%), #f3ede4; }
.project-media .phone { position: absolute; width: 176px; }
.project-media .phone-front { transform: translate(-66px, 12px) rotate(-6deg); z-index: 2; }
.project-media .phone-back { transform: translate(70px, -12px) rotate(6deg); }
.project-row:hover .phone-front { transform: translate(-74px, 6px) rotate(-8deg); }
.project-row:hover .phone-back { transform: translate(78px, -18px) rotate(8deg); }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.step .num { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.08rem; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Contacto */
#contacto { padding-bottom: 100px; }
.contact-box { position: relative; overflow: hidden; border-radius: 32px; padding: 72px 40px; text-align: center; color: #fff; background: var(--night); }
.contact-bg { position: absolute; inset: 0; background: radial-gradient(50% 80% at 15% 0%, rgba(53, 86, 224, .7), transparent 70%), radial-gradient(45% 80% at 90% 100%, rgba(16, 179, 163, .55), transparent 70%); }
.contact-box > *:not(.contact-bg) { position: relative; }
.contact-box h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 14px; font-weight: 800; }
.contact-box p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; margin: 0 auto 30px; max-width: 34em; }
.btn-light { background: #fff; color: var(--night); font-size: 16px; padding: 16px 28px; }
.contact-box .email-note { margin: 18px auto 0; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* Pie */
footer.site { border-top: 1px solid var(--border); background: var(--bg-soft); }
.foot { max-width: 1180px; margin: 0 auto; padding: 44px 24px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; color: var(--muted); font-size: 14px; }
.foot .logo { font-size: 17px; }
.foot .logo .mark { height: 34px; }
.foot p { margin: 10px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-langs a[aria-current] { color: var(--text); font-weight: 700; }
.foot-langs .copy { margin-left: auto; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .chip { animation: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 18px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .lang { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 20px 64px; gap: 24px; }
  .hero-art { height: 440px; max-width: 440px; width: 100%; margin: 0 auto; }
  .phone { width: 180px; }
  .project-row { grid-template-columns: 1fr; }
  .project-info { padding: 30px 24px; }
  .project-media { min-height: 420px; order: -1; }
  .project-media .phone { width: 150px; }
  .project-media .phone-front { transform: translate(-50px, 12px) rotate(-6deg); }
  .project-media .phone-back { transform: translate(54px, -8px) rotate(6deg); }
  section { padding-top: 76px; }
}
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .logo .mark { height: 34px; }
  .logo { font-size: 17px; }
  .nav-cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero-art { height: 400px; }
  .phone { width: 160px; }
  .hero-art .p1 { left: 2%; }
  .hero-art .p2 { right: 2%; }
  .contact-box { padding: 52px 22px; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .foot-langs .copy { margin-left: 0; width: 100%; }
}
