:root {
  --black: #0a0a0a;
  --ink: #111111;
  --gray-900: #1a1a1a;
  --gray-700: #2a2a2a;
  --gray-500: #8a8a8a;
  --gray-300: #c4c4c4;
  --white: #f5f5f5;
  --neon: #39ff14;
  --neon-dim: rgba(57, 255, 20, .15);
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 9vw, 6rem); font-weight: 800; text-transform: uppercase; }
h1 em { font-style: normal; color: var(--neon); text-shadow: 0 0 28px rgba(57,255,20,.45); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--neon); color: var(--black); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.eyebrow { color: var(--neon); font-weight: 600; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid var(--neon);
  background: var(--neon); color: var(--black); font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--neon-dim), 0 0 0 4px var(--neon-dim); }
.btn--ghost { background: transparent; color: var(--neon); }
.btn--ghost:hover { background: var(--neon); color: var(--black); }
.btn--sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  background: rgba(10, 10, 10, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-700);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 34px; height: 34px; fill: var(--neon); }
.brand__text { font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; font-size: 1rem; line-height: 1; }
.brand__text small { display: block; color: var(--neon); font-size: .6rem; letter-spacing: .6em; margin-top: .25rem; font-family: var(--font-body); font-weight: 600; }
.nav { display: flex; gap: 1.6rem; font-size: .92rem; color: var(--gray-300); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--neon); }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.lang {
  background: none; border: 1px solid var(--gray-700); color: var(--gray-300);
  border-radius: 8px; padding: .35rem .6rem; font: 600 .8rem var(--font-body); cursor: pointer;
}
.lang:hover { border-color: var(--neon); color: var(--neon); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--white); transition: transform .25s, top .25s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(57, 255, 20, .12), transparent 45%),
    linear-gradient(180deg, var(--black), var(--ink));
}
.hero { --mx: 0; --my: 0; }
.hero__inner { position: relative; z-index: 1; }
.hero__phone { margin: -1.8rem 0 2.4rem; font-size: .8rem; color: var(--gray-500); }
.hero__phone a { color: var(--gray-300); border-bottom: 1px solid var(--gray-700); transition: color .2s, border-color .2s; }
.hero__phone a:hover { color: var(--neon); border-color: var(--neon); }

/* Animated hero background: grid + squares travelling along the lines */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 65% 35%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse at 65% 35%, #000 15%, transparent 75%); }
.hero__glow { position: absolute; width: 640px; height: 640px; right: -8%; top: -12%;
  background: radial-gradient(circle, rgba(57,255,20,.14), transparent 65%); }
.grid-square { position: absolute; width: 4px; height: 4px; border-radius: 1px; opacity: 0; will-change: transform, opacity;
  background: rgba(57,255,20,.65); box-shadow: 0 0 10px 2px rgba(57,255,20,.55); }
.hero__lead { max-width: 34rem; color: var(--gray-300); font-size: 1.15rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; padding: 0; margin: 0; color: var(--gray-500); font-size: .9rem; }
.hero__facts strong { display: block; font: 800 1.8rem var(--font-display); color: var(--white); }
.hero__crown { position: absolute; right: -6%; bottom: -8%; width: min(60vw, 560px); fill: none; stroke: var(--neon); stroke-width: .6; opacity: .22; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--gray-900); }
.note { color: var(--gray-500); font-size: .85rem; margin-top: 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }
.card {
  position: relative; margin: 0; padding: 1.6rem;
  background: var(--gray-900); border: 1px solid var(--gray-700); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.section--alt .card { background: var(--black); }
.card:hover { border-color: var(--neon); transform: translateY(-4px); }
.card p { color: var(--gray-500); margin-bottom: 1.4rem; }
.price { font: 800 1.6rem var(--font-display); color: var(--neon); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 220px; gap: .8rem; margin-top: 2rem; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  border-radius: var(--radius); border: 1px dashed var(--gray-700); color: var(--gray-500); font-size: .85rem;
  background: linear-gradient(135deg, var(--gray-900), var(--black));
  overflow: hidden;
}
.tile svg { width: 56px; fill: none; stroke: var(--neon); stroke-width: 1.5; opacity: .6; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }

.tile { position: relative; cursor: pointer; }
.tile img, .tile svg { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.tile:hover img { transform: scale(1.12); }
.tile:hover svg { transform: scale(1.25) rotate(-4deg); opacity: 1; }
.tile { transition: border-color .3s, box-shadow .3s; }
.tile:hover { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), 0 10px 40px var(--neon-dim); }

/* Reviews */
.stars { color: var(--neon); letter-spacing: .15em; margin-bottom: .8rem; }
.review blockquote { margin: 0 0 1rem; color: var(--gray-300); }
.review figcaption { font-weight: 600; font-size: .9rem; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.about p { color: var(--gray-300); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.values li { padding: 1.2rem 1.4rem; border-left: 3px solid var(--neon); background: var(--black); border-radius: 0 var(--radius) var(--radius) 0; }
.values strong { display: block; font-family: var(--font-display); text-transform: uppercase; }
.values span { color: var(--gray-500); font-size: .92rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; margin-top: 2rem; align-items: stretch; }
.contact h3 { color: var(--neon); text-transform: uppercase; font-size: .85rem; letter-spacing: .2em; margin-top: 1.6rem; }
.contact h3:first-child { margin-top: 0; }
.hours { border-collapse: collapse; width: 100%; font-size: .95rem; }
.hours td { padding: .45rem 0; border-bottom: 1px solid var(--gray-700); }
.hours td:last-child { text-align: right; color: var(--gray-300); }
.contact__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.map { position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-700); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* Footer */
.footer { border-top: 1px solid var(--gray-700); padding: 2rem 0 5rem; color: var(--gray-500); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--neon); }

/* WhatsApp floating button */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; background: var(--neon);
  box-shadow: 0 6px 24px rgba(57, 255, 20, .35); transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; fill: var(--black); }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--gray-700);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-700); }
  .header__actions .btn { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Texture ---------- */
/* Film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barber-pole stripe under headings */
h2::after {
  content: ""; display: block; width: 84px; height: 8px; margin-top: .6rem; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--neon) 0 6px, var(--black) 6px 12px);
  background-size: 17px 17px; animation: pole 1.2s linear infinite;
}
@keyframes pole { to { background-position: 17px 0; } }

/* Dotted halftone on alternate sections */
.section--alt {
  background-color: var(--gray-900);
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

/* Marquee strip */
.marquee { background: var(--neon); color: var(--black); overflow: hidden; transform: rotate(-1.2deg) scale(1.03); margin: -1.4rem 0 1rem; position: relative; z-index: 2; box-shadow: 0 10px 40px rgba(57,255,20,.2); }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span { font: 800 1.4rem var(--font-display); letter-spacing: .12em; padding: .7rem 0; }
.marquee__group i { width: 22px; height: 22px; margin: 0 1.6rem; background: var(--black);
  clip-path: polygon(0 80%, 0 20%, 25% 50%, 50% 0, 75% 50%, 100% 20%, 100% 80%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Numbered service cards with corner brackets */
#servicios .cards { counter-reset: svc; }
#servicios .card { counter-increment: svc; overflow: hidden; }
#servicios .card::before {
  content: "0" counter(svc); position: absolute; right: 1rem; top: .2rem;
  font: 800 4rem var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--gray-700); transition: -webkit-text-stroke-color .3s;
}
#servicios .card:hover::before { -webkit-text-stroke-color: var(--neon); }
.card::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 16px; height: 16px;
  border-right: 2px solid var(--neon); border-bottom: 2px solid var(--neon); opacity: 0; transition: opacity .3s, transform .3s; transform: translate(6px, 6px);
}
.card:hover::after { opacity: 1; transform: none; }

/* Hero: fade into next section */
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--black)); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, h2::after { animation: none !important; }
}

/* ---------- Theme alternatives (switcher bottom-left) ---------- */
/* Default (no data-theme) = original look. */

/* Theme 2 · "crown": black crown with neon outline */
[data-theme="crown"] .brand__mark { fill: #0a0a0a; stroke: var(--neon); stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(57,255,20,.35)); }
[data-theme="crown"] .hero__crown { fill: #0a0a0a; stroke-width: 1; opacity: .55; }
[data-theme="crown"] .tile svg { fill: #0a0a0a; stroke-width: 2; opacity: .85; }

/* Theme 3 · "light": light palette, black crown, neon as highlight */
[data-theme="light"] {
  --black: #f6f6f1;
  --ink: #ececE5;
  --gray-900: #ebebe3;
  --gray-700: #cdcdc3;
  --gray-500: #5c5c56;
  --gray-300: #33332f;
  --white: #0d0d0d;
  --neon-dim: rgba(57, 255, 20, .35);
}
[data-theme="light"] .brand__mark { fill: #0a0a0a; }
[data-theme="light"] .hero__crown { fill: #0a0a0a; stroke: none; opacity: 1; }
[data-theme="light"] .tile svg { fill: #0a0a0a; stroke: none; opacity: .9; }
[data-theme="light"] :focus-visible { outline-color: #0a0a0a; }
[data-theme="light"] .header { background: rgba(246,246,241,.88); }
[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(57,255,20,.22), transparent 45%),
    linear-gradient(180deg, var(--black), var(--ink));
}
[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(10,10,10,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,.07) 1px, transparent 1px);
}
[data-theme="light"] .hero__glow { background: radial-gradient(circle, rgba(57,255,20,.28), transparent 65%); }
[data-theme="light"] .grid-square { background: #39ff14; box-shadow: 0 0 10px 2px rgba(57,255,20,.7); }
/* text that was neon becomes dark with a neon marker */
[data-theme="light"] h1 em { color: #0a0a0a; text-shadow: none; background: var(--neon); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme="light"] .eyebrow { display: inline-block; background: var(--neon); color: #0a0a0a; padding: .25rem .7rem; border-radius: 4px; }
[data-theme="light"] .brand__text small { color: #0a0a0a; }
[data-theme="light"] .nav a:hover, [data-theme="light"] .footer a:hover, [data-theme="light"] .hero__phone a:hover { color: #0a0a0a; }
[data-theme="light"] .nav a { position: relative; }
[data-theme="light"] .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
[data-theme="light"] .nav a:hover::after { transform: scaleX(1); }
[data-theme="light"] .lang:hover { border-color: #0a0a0a; color: #0a0a0a; background: var(--neon); }
[data-theme="light"] .hero__phone a:hover { border-color: #0a0a0a; }
[data-theme="light"] .btn, [data-theme="light"] .skip, [data-theme="light"] .btn--ghost:hover { color: #0a0a0a; }
[data-theme="light"] .btn--ghost { color: #0a0a0a; border-color: #0a0a0a; }
[data-theme="light"] .btn--ghost:hover { border-color: var(--neon); }
[data-theme="light"] .price { color: #0a0a0a; background: linear-gradient(transparent 55%, var(--neon) 55%); display: inline-block; padding: 0 .15em; }
[data-theme="light"] .stars { color: #0a0a0a; text-shadow: 0 0 0 var(--neon); }
[data-theme="light"] .contact h3 { color: #0a0a0a; }
[data-theme="light"] .contact h3::before { content: ""; display: inline-block; width: 22px; height: 6px; background: var(--neon); margin-right: .6rem; vertical-align: middle; }
[data-theme="light"] .card { background: #fff; }
[data-theme="light"] .section--alt .card { background: #fff; }
[data-theme="light"] .card:hover { border-color: #0a0a0a; box-shadow: 6px 6px 0 var(--neon); }
[data-theme="light"] #servicios .card:hover::before { -webkit-text-stroke-color: #0a0a0a; }
[data-theme="light"] .card::after { border-color: #0a0a0a; }
[data-theme="light"] .values li { background: #fff; border-left-color: var(--neon); border-left-width: 5px; }
[data-theme="light"] .tile { background: linear-gradient(135deg, #fff, var(--gray-900)); }
[data-theme="light"] .tile:hover { border-color: #0a0a0a; box-shadow: 6px 6px 0 var(--neon); }
[data-theme="light"] .section--alt { background-image: radial-gradient(rgba(10,10,10,.08) 1px, transparent 1.2px); }
[data-theme="light"] h2::after { background: repeating-linear-gradient(-45deg, var(--neon) 0 6px, #0a0a0a 6px 12px); background-size: 17px 17px; }
[data-theme="light"] .marquee { background: var(--neon); color: #0a0a0a; }
[data-theme="light"] .marquee__group i { background: #0a0a0a; }
[data-theme="light"] .fab svg { fill: #0a0a0a; }
[data-theme="light"] .burger span { background: #0a0a0a; }
[data-theme="light"] .map iframe { filter: none; }
[data-theme="light"] body::after { opacity: .04; }
[data-theme="light"] .hero::after { background: linear-gradient(transparent, var(--black)); }

/* Theme switcher */
.themes { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #0a0a0a; border: 1px solid #39ff14; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.themes button { border: 0; border-radius: 999px; padding: .45rem .8rem; background: transparent; color: #f5f5f5; font: 600 .75rem var(--font-body); cursor: pointer; }
.themes button[aria-pressed="true"] { background: #39ff14; color: #0a0a0a; }

/* Light theme, mobile: the black crown sits behind the hero facts; soften it so dark text stays readable */
@media (max-width: 860px) {
  [data-theme="light"] .hero__crown { opacity: .1; }
}
