:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #2a2f3a;
  --text: #f4f1ea;
  --muted: #a3a9b6;
  --soft: #d5d8de;
  --acc: #8b5cf6;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
h1, h2, .brand { font-family: "Bricolage Grotesque", "Inter", sans-serif; letter-spacing: -.03em; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 17, 21, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 1.35rem; }
.brand span { color: #c4b5fd; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .nav__cta { color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

/* Botones */
.btn { display: inline-block; font-weight: 700; padding: 14px 26px; border-radius: 14px; background: linear-gradient(135deg, #a78bfa, #f472b6 60%, #fb923c); color: #160b1f; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 114, 182, .25); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { box-shadow: none; border-color: #c4b5fd; }

/* Portada */
.hero { padding: 72px 0 56px; background: radial-gradient(700px 420px at 90% 0%, rgba(139, 92, 246, .28), transparent 65%), radial-gradient(600px 400px at 0% 100%, rgba(244, 114, 182, .12), transparent 70%); }
.hero__foto { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .15); margin-bottom: 24px; }
.eyebrow { color: #c4b5fd; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { font-weight: 800; font-size: clamp(3rem, 10vw, 6rem); line-height: .95; margin: 14px 0 20px; }
.hero h1 span { background: linear-gradient(90deg, #a78bfa, #f472b6 55%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--soft); font-size: 1.15rem; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Proyectos */
main { display: grid; gap: 28px; padding: 32px 0 72px; }
.p { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; overflow: hidden; }
.p::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 320px at 100% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); }
.p > * { position: relative; }
.p:nth-child(even) .p__img { order: 2; }
.p__img img { border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.p__img--duo { position: relative; padding-right: 22%; }
.p__img--duo .movil { position: absolute; right: 0; bottom: -10px; width: 26%; border-radius: 18px; border: 5px solid #0a0a0c; }
.p__img--trio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p__img--trio img:first-child { grid-column: 1 / -1; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 20%, transparent); color: color-mix(in srgb, var(--acc) 55%, white); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); }
.p h2 { font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.05; margin: 14px 0 8px; }
.p p { color: var(--soft); }
.p ul { list-style: none; display: grid; gap: 8px; margin: 16px 0; }
.p li { position: relative; padding-left: 28px; color: #e6e8ec; }
.p li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: #cfd3da; }
.link { display: inline-block; margin-top: 18px; font-weight: 700; color: color-mix(in srgb, var(--acc) 55%, white); }
.link:hover { text-decoration: underline; }

/* Servicios y contacto */
.titulo { font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; }
.servicios { padding: 64px 0; background: #13161c; border-block: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.grid div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.grid b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; margin-bottom: 6px; }
.grid span { color: var(--muted); }
.contacto { padding: 80px 0; background: radial-gradient(600px 360px at 50% 100%, rgba(34, 197, 94, .18), transparent 70%); }
.contacto__in { text-align: center; }
.contacto p { color: var(--soft); font-size: 1.1rem; max-width: 520px; margin: 16px auto 28px; }
.pie { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* Móvil */
@media (max-width: 860px) {
  .p { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .p:nth-child(even) .p__img { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding-top: 48px; }
  .grid { grid-template-columns: 1fr; }
}

/* Botón de idioma */
.lang { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.lang:hover { border-color: #c4b5fd; }

/* Botones de contacto */
.contacto__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
