:root {
  --bg: #050B1F;
  --surf1: #0A1A4D;
  --surf2: #0F2A7A;
  --blue: #2D7BFF;
  --gold: #F2B632;
  --gold-d: #B8860B;
  --text: #EAF1FF;
  --text2: #9FB0D6;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(60vmax 40vmax at 90% -5%, rgba(45,123,255,.35), transparent 60%),
    radial-gradient(40vmax 30vmax at -10% 35%, rgba(242,182,50,.12), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 75%, rgba(45,123,255,.22), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
body::after { /* grano */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .06; z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--head); line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--gold); display: block; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.muted { color: var(--text2); }
.num { font-family: var(--head); font-weight: 500; font-size: .8em; color: var(--gold); letter-spacing: .08em; margin-right: .5rem; }
.tag { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 1rem; }
.lead { color: var(--text2); max-width: 46ch; margin: 1.2rem 0 2rem; font-size: 1.1rem; }

section, footer { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 4.5rem 1rem; }

/* vidrio */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
@supports (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255,255,255,.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}

/* hilo de luz */
.thread { position: fixed; top: 0; right: 4vw; height: 100vh; width: 70px; z-index: 0; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(242,182,50,.7)); stroke-dashoffset: 0; }

/* nav */
.nav { position: sticky; top: .6rem; z-index: 20; margin: .6rem auto 0; max-width: 1060px; width: calc(100% - 1.2rem); display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.1rem; border-radius: 999px 18px 999px 18px; }
.brand { color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 800; display: flex; align-items: center; gap: .4rem; color: var(--gold); }
.brand span { color: var(--text); font-weight: 500; }
.nav nav { display: flex; gap: 1.2rem; }
.nav nav a { color: var(--text2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav nav a:not(:last-child) { display: none; } }

/* botones */
.btn { display: inline-block; background: var(--gold); color: #1a1200; font-weight: 700; text-decoration: none; padding: .9rem 1.6rem; border: 0; border-radius: 14px 4px 14px 4px; box-shadow: 0 4px 0 var(--gold-d); cursor: pointer; font: 700 1rem var(--body); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-d); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn.big { font-size: 1.15rem; padding: 1.1rem 2rem; margin-bottom: 1.5rem; }
.float-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50% 50% 50% 8px; background: var(--gold); color: #1a1200; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
@media (min-width: 900px) { .float-wa { display: none; } }

/* hero asimétrico */
.hero { display: grid; gap: 3rem; padding-top: 5rem; padding-bottom: 1rem; }
.services { padding-top: 2.5rem; }
.hero-facts { list-style: none; padding: 0; display: grid; border-radius: 6px 32px 6px 32px; border-left: 3px solid var(--gold); overflow: hidden; }
.hero-facts li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; }
.hero-facts li + li { border-top: 1px solid rgba(255,255,255,.12); }
.hero-facts .ico { grid-row: span 2; margin: 0; width: 40px; height: 40px; }
.hero-facts strong { font-family: var(--head); font-size: 1.15rem; line-height: 1.2; }
.hero-facts span { color: var(--text2); font-size: .95rem; }
@media (min-width: 900px) {
  .hero { padding-top: 7rem; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts li + li { border-top: 0; border-left: 1px solid rgba(255,255,255,.12); }
}

/* servicios: rejilla irregular */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card.wide { grid-column: span 3; }
  .card:nth-child(2) { margin-top: 2rem; }
  .card:nth-child(4) { border-radius: 6px 28px 6px 28px; }
}
.card { position: relative; padding: 1.6rem; border-radius: 22px 6px 22px 6px; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(45,123,255,.35), transparent 70%); }
.card:hover::before { opacity: 1; }
.hero-facts li::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(45,123,255,.35), transparent 70%); }
.hero-facts li:hover::before { opacity: 1; }
.hero-facts .ico, .hero-facts strong, .hero-facts span { position: relative; }
.card p { color: var(--text2); position: relative; }
.card h3, .ico { position: relative; }
.ico { width: 38px; height: 38px; margin-bottom: 1rem; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* proceso */
.process ol { list-style: none; padding: 0; display: grid; gap: 1.5rem; counter-reset: s; border-left: 1px dashed rgba(255,255,255,.25); padding-left: 1.5rem; }
.process li { position: relative; }
.process li::before { content: ""; position: absolute; left: -1.85rem; top: .5rem; width: 12px; height: 12px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 12px var(--gold); }
.process p { color: var(--text2); }
@media (min-width: 800px) {
  .process ol { grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px dashed rgba(255,255,255,.25); padding: 1.5rem 0 0; }
  .process li::before { left: 0; top: -1.85rem; }
}

/* galería y fotos pendientes */
.ph { background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px), var(--surf1); border: 1px dashed rgba(255,255,255,.3); display: grid; place-items: center; min-height: 200px; color: var(--text2); font-size: .9rem; text-align: center; padding: 1rem; }
.gallery { display: grid; gap: 1rem; }
.gallery figure:nth-child(1) { border-radius: 30px 6px 6px 6px; }
.gallery figure:nth-child(3) { border-radius: 6px 6px 30px 6px; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; }
  .gallery figure { min-height: 360px; }
  .gallery figure:nth-child(2) { margin-top: 2.5rem; }
}

.why ul { list-style: none; padding: 0; display: grid; gap: 1rem; margin-bottom: 1rem; }
.why li { padding-left: 1rem; border-left: 3px solid var(--gold); color: var(--text2); }
.why strong { display: block; color: var(--text); font-family: var(--head); font-size: 1.2rem; }
@media (min-width: 800px) { .why ul { grid-template-columns: repeat(3, 1fr); } }

.about { display: grid; gap: 2rem; align-items: center; }
.portrait { min-height: 260px; border-radius: 120px 6px 120px 6px; }
@media (min-width: 800px) { .about { grid-template-columns: 1fr 1.5fr; } }

/* contacto */
.contact { margin: 2rem auto 4rem; max-width: 760px; width: calc(100% - 2rem); border-radius: 32px 6px 32px 6px; padding: 2.5rem 1.5rem; }
form { display: grid; gap: 1rem; margin-bottom: 1rem; }
label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; color: var(--text2); }
input, select, textarea { font: 400 1rem var(--body); color: var(--text); background: rgba(5,11,31,.6); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: .7rem .9rem; }
select option { background: var(--surf1); }
form .btn { justify-self: start; }

footer { text-align: center; color: var(--text2); font-size: .9rem; padding-bottom: 6rem; }
.mail { margin-bottom: 1.5rem; }
.mail a, footer a { color: var(--text); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* fotos reales */
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .5s; z-index: 0; }
.card::before { z-index: 1; }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(5,11,31,.92) 18%, rgba(5,11,31,.15) 75%); }
.card:hover .card-img { opacity: 1; transform: scale(1.04); }
.card h3, .card p, .card .ico { z-index: 2; }
.gallery figure { margin: 0; overflow: hidden; background: var(--surf1);  }
@media (max-width: 799px) { .gallery figure { min-height: 260px; } }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .c img { object-position: top; }
.gallery .e img, .gallery .f img { object-position: 50% 15%; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure:nth-child(5) { margin-top: 2.5rem; border-radius: 6px 30px 6px 6px; }
  .gallery figure:nth-child(6) { border-radius: 6px 6px 6px 30px; }
}

/* linterna que sigue al cursor en toda la página */
body::before { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: screen; background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 50%), rgba(45,123,255,.24), rgba(242,182,50,.06) 45%, transparent 70%); }
body.lit::before { opacity: 1; }
.card h3, .card p { text-shadow: 0 1px 8px rgba(5,11,31,.9); }
.gallery .wide img { object-position: 50% 40%; }
@media (min-width: 800px) {
  .gallery .wide { grid-column: 1 / -1; min-height: 0; height: 340px; margin-top: 0; border-radius: 6px 30px 6px 30px; }
  .gallery figure:nth-child(5) { margin-top: 0; }
  .gallery figure:nth-child(2) { margin-top: 2.5rem; }
}
@media (min-width: 800px) {
  .gallery figure:nth-child(2), .gallery figure:nth-child(5), .gallery figure:nth-child(8) { margin-top: 2.5rem; }
  .gallery figure:nth-child(6) { margin-top: 0; }
}
