/* ==========================================================================
   Estilos — mobile-first. El color de acento se define desde data/site-data.js
   ========================================================================== */
:root {
  --accent: #ff5a1f;
  --on-accent: #12100f;
  --wa: #25d366;
  --on-wa: #06210f;
  --radius: 16px;
  --maxw: 1160px;
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); line-height: 1.6;
  background: #0e1013; color: #f4f5f7; -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--wa { background: var(--wa); color: var(--on-wa); }
.btn--wa:hover { box-shadow: 0 8px 24px rgba(37, 211, 102, .3); transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.1rem; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(14, 16, 19, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.has-logo { width: auto; height: 46px; border-radius: 0; background: none; }
.brand-mark.has-logo img { width: auto; height: 46px; max-width: none; }
.footer-brand .brand-mark.has-logo { height: 64px; }
.footer-brand .brand-mark.has-logo img { height: 64px; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle { width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.bars { width: 24px; height: 18px; position: relative; display: block; }
.bars i { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.bars i:nth-child(1) { top: 0; } .bars i:nth-child(2) { top: 8px; } .bars i:nth-child(3) { top: 16px; }
.nav-open .bars i:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-open .bars i:nth-child(2) { opacity: 0; }
.nav-open .bars i:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0; padding: 12px 20px 24px;
  background: #0e1013; border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: none; flex-direction: column; gap: 16px;
}
.nav-open .nav { display: flex; animation: drop .25s var(--ease); }
.nav ul { display: flex; flex-direction: column; }
.nav li a { display: block; padding: 16px 4px; font-size: 1.1rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav li a:hover, .nav li a.active { color: var(--accent); }
.nav-cta { width: 100%; min-height: 54px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; background: none; border: 0; gap: 20px; }
  .nav-open .nav { animation: none; }
  .nav ul { flex-direction: row; gap: 4px; }
  .nav li a { padding: 10px 12px; font-size: .95rem; border: 0; border-radius: 10px; }
  .nav li a:hover { background: rgba(255, 255, 255, .06); }
  .nav-cta { width: auto; }
}

/* ---------- Secciones ---------- */
.sec { padding: clamp(60px, 9vw, 108px) 0; background: var(--bg); color: var(--text); }
.sec--tight { padding: clamp(44px, 6vw, 72px) 0; }
.sec--dark { --bg: #0e1013; --surface: #171a20; --text: #f4f5f7; --muted: #a3a9b3; --line: rgba(255, 255, 255, .1); --accent-text: var(--accent); }
.sec--light { --bg: #f4f5f7; --surface: #fff; --text: #14171c; --muted: #5b6370; --line: rgba(20, 23, 28, .1); --accent-text: color-mix(in srgb, var(--accent) 72%, #000); }
.sec-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec-head h2, .about-copy h2, .location-info h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.sec-lead { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-text, var(--accent)); margin-bottom: 10px; }

.grid { display: grid; gap: 16px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 18px),
    #0e1013;
  --muted: #a3a9b3;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-name { font-weight: 700; color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 850; max-width: 14ch; }
.lead { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: #c9ced6; max-width: 46ch; }
.hero-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.hero-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li { font-size: .88rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #d6dae0; display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--accent); width: 1em; height: 1em; }
.hero-media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-media { aspect-ratio: 5 / 5; }
}

/* Recuadro de foto pendiente */
.slot, .ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px; color: var(--muted, #a3a9b3);
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
.slot { border: 2px dashed rgba(255, 255, 255, .22); border-radius: inherit; font-size: .9rem; }
.slot .icon { width: 36px; height: 36px; opacity: .8; }
.sec--light .slot { border-color: rgba(20, 23, 28, .25); background: rgba(20, 23, 28, .03); }
.slot small { opacity: .8; font-size: .78rem; }

/* ---------- Servicios ---------- */
.services { grid-template-columns: 1fr; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 12px 30px rgba(20, 23, 28, .08); }
.service .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text);
}
.service .ico .icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- Trabajos ---------- */
.works { grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work { padding: 0; overflow: hidden; background: var(--surface); }
.work-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.work-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1c2027; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-btn:hover .work-cover img { transform: scale(1.04); }
.ph { background: linear-gradient(135deg, #20252d, #14171c); color: #8b929d; font-size: .9rem; }
.ph .icon { width: 38px; height: 38px; }
.tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(14, 16, 19, .75); backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.tag--demo { left: 12px; background: var(--accent); color: var(--on-accent); }
.tag--count { right: 12px; }
.tag .icon { width: 14px; height: 14px; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(14, 16, 19, .7); display: grid; place-items: center; color: #fff; }
.play-badge .icon { width: 24px; height: 24px; margin-left: 3px; }
.work-body { padding: 18px 20px 22px; }
.work-vehicle { font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; }
.work-job { color: var(--accent-text); font-weight: 600; font-size: .95rem; margin-top: 2px; }
.work-desc { color: var(--muted); font-size: .92rem; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-date { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: #050608; display: none; flex-direction: column; color: #fff; }
.lb.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.lb-count { font-size: .9rem; color: #b6bcc6; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:disabled { opacity: .3; cursor: default; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 12px; touch-action: pan-y; }
.lb-slide { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-slide img, .lb-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-slide .ph { width: min(100%, 640px); height: auto; max-height: 100%; aspect-ratio: 4 / 3; border-radius: 12px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-cap { padding: 14px 20px; padding-bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; max-width: 720px; margin: 0 auto; }
.lb-cap strong { display: block; font-size: 1.1rem; }
.lb-cap span { color: var(--accent); font-weight: 600; font-size: .95rem; }
.lb-cap p { color: #b6bcc6; font-size: .92rem; margin-top: 6px; }
.lb-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.lb-dots i.on { background: var(--accent); }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 8px; transform: none; display: none; } }
body.lb-lock { overflow: hidden; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 36px; align-items: center; }
.about-sub { font-size: 1.25rem; margin: 14px 0 12px; letter-spacing: -.01em; }
#about-text p { color: var(--muted); margin-bottom: 12px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.values li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.values .icon { color: var(--accent-text); }
.commitment { border-left: 4px solid var(--accent); padding-left: 16px; font-weight: 600; }
.about-media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Por qué elegirnos ---------- */
.why { grid-template-columns: 1fr; }
@media (min-width: 560px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.why-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: .93rem; }

/* ---------- Redes ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials--center { justify-content: center; margin-top: 28px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 14px;
  background: var(--surface, #fff); border: 1px solid var(--line, rgba(20, 23, 28, .1)); color: var(--text, #14171c);
  font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.social:hover { transform: translateY(-2px); border-color: var(--accent); }
.social.is-preview { opacity: .55; border-style: dashed; }
.socials--sm .social { min-height: 44px; width: 44px; padding: 0; justify-content: center; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.socials--sm .social span { display: none; }

/* ---------- Ubicación ---------- */
.location { display: grid; gap: 32px; align-items: stretch; }
.addr { font-style: normal; margin: 18px 0 24px; font-size: 1.1rem; color: #d6dae0; }
.addr strong { display: block; font-size: 1.25rem; color: #fff; }
.map { border-radius: 22px; overflow: hidden; min-height: 300px; background: #171a20; border: 1px solid rgba(255, 255, 255, .1); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (min-width: 900px) { .location { grid-template-columns: .8fr 1.2fr; gap: 56px; } .map { min-height: 380px; } }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
a.contact-card:hover { border-color: var(--accent); }
.contact-card .ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.contact-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.contact-card p { font-weight: 600; word-break: break-word; }
.cta-panel {
  margin-top: 24px; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: #0e1013; color: #fff;
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  background-image: radial-gradient(600px 240px at 90% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
}
.cta-panel h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.02em; }
.cta-panel p { color: #b6bcc6; margin-top: 4px; }
.cta-panel .btn { width: 100%; }
@media (min-width: 800px) { .cta-panel { flex-direction: row; align-items: center; justify-content: space-between; } .cta-panel .btn { width: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: #090a0c; color: #c9ced6; padding: 48px 0 0; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-brand .brand-name { color: #fff; }
.footer-contact { display: grid; gap: 14px; font-size: .95rem; }
.footer-contact b { color: #fff; display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { margin-top: 36px; padding: 20px 0 110px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #8b929d; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 2fr; } .footer-contact { grid-template-columns: repeat(3, 1fr); } .footer-bottom { padding-bottom: 28px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--on-wa);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); text-decoration: none;
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
body.lb-lock .wa-float { display: none; }

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