/* =========================================================
   Piter Producciones — Sonido · Audiovisual
   ========================================================= */
:root {
  --bg: #111a24;
  --bg-2: #172331;
  --bg-3: #1f2e3e;
  --card: #1b2836;
  --line: rgba(255, 255, 255, .10);
  --ink: #f5f2ed;
  --muted: #a8b3bf;
  --copper: #c97f34;
  --copper-2: #e39a4f;
  --wa: #25d366;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1200px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; }
.display { font-family: var(--serif); letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--copper-2); }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--copper); color: #160d03; }
.btn-primary:hover { background: var(--copper-2); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-wa:hover { background: #3ee07b; }
.btn-ghost { padding: 0; min-height: auto; color: var(--copper-2); letter-spacing: .08em; }
.btn-ghost:hover { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header.scrolled { background: rgba(10, 14, 20, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; height: 100%; }

.logo img { height: 66px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.86);
  transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav .btn { min-height: 44px; padding: 0 20px; margin-left: 10px; font-size: .78rem; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,14,20,.55) 0%, rgba(10,14,20,.35) 40%, var(--bg) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(201,127,52,.18), transparent 60%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { text-align: center; max-width: 980px; margin: 0 auto; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 26px; }
.breadcrumb svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 5.8rem); margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--copper-2); }
.hero .lead { margin: 0 auto 36px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero .btn-row { justify-content: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; color: #fff; opacity: .8;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 30px; height: 30px; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Accesos rápidos ---------- */
.quick { position: relative; z-index: 2; margin-top: -60px; }
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.quick a {
  display: flex; align-items: center; gap: 14px; padding: 22px 22px; background: var(--bg-2);
  transition: background .2s;
}
.quick a:hover { background: var(--bg-3); }
.quick .ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(201,127,52,.14); color: var(--copper-2);
}
.quick .ico svg { width: 24px; height: 24px; }
.quick strong { display: block; font-size: 1rem; line-height: 1.25; }
.quick small { color: var(--muted); font-size: .84rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 20px; }
.curve-top { border-radius: 48px 48px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-text h2 { margin-bottom: 24px; }
.split-text .lead { margin-bottom: 30px; }

/* collage 2x2 con flecha estilo "hecho a mano" */
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--bg-3); }
.collage figure:nth-child(2) { transform: translateY(40px); }
.collage figure:nth-child(4) { transform: translateY(40px); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collage figure:hover img { transform: scale(1.06); }
.arrow-doodle { position: absolute; width: 110px; color: #fff; opacity: .9; }
.arrow-doodle.left { left: -130px; top: 30%; }

.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--copper-2); margin-top: 3px; }

/* ---------- Servicios destacados ---------- */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.f-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  border: 1px solid var(--line);
}
.f-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.f-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,12,18,0) 25%, rgba(8,12,18,.94) 80%); }
.f-card:hover img { transform: scale(1.07); }
.f-body { padding: 30px; }
.f-num { font-family: var(--serif); font-size: 1.1rem; color: var(--copper-2); margin-bottom: 6px; }
.f-card h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin-bottom: 12px; }
.f-card p { color: rgba(255,255,255,.82); font-size: .98rem; }
.f-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.f-actions .btn { min-height: 44px; padding: 0 18px; font-size: .76rem; }

/* ---------- Todos los servicios (acordeón) ---------- */
.services-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: start; }
.services-aside { position: sticky; top: calc(var(--header-h) + 30px); }
.services-aside .lead { margin-bottom: 28px; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: 18px; text-align: left;
  padding: 24px 4px; background: none; border: 0; cursor: pointer;
}
.acc-btn .n { font-family: var(--serif); color: var(--copper-2); font-size: 1.05rem; width: 30px; flex: none; }
.acc-btn .t { flex: 1; }
.acc-btn .t strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.acc-btn .t small { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.acc-btn .plus {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .3s, background .3s, border-color .3s;
}
.acc-btn .plus svg { width: 18px; height: 18px; }
.acc-btn[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--copper); border-color: var(--copper); color: #160d03; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.instant .acc-panel { transition: none; }
.acc-content { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding: 0 4px 30px 52px; }
/* height:auto anula el alto del atributo HTML para que se respete la proporción */
.acc-content img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.acc-content p { color: rgba(255,255,255,.85); }
.acc-content ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.acc-content ul li { margin-bottom: 4px; }
.acc-content .btn { min-height: 44px; padding: 0 20px; font-size: .76rem; }

/* ---------- Frase destacada ---------- */
.quote-band { text-align: center; padding: clamp(80px, 9vw, 120px) 0; }
.quote-band blockquote {
  margin: 0 auto; max-width: 960px; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.2;
}
.quote-band blockquote span { color: var(--copper-2); }
.quote-band p { margin-top: 26px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }

/* ---------- Tipos de eventos ---------- */
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ev {
  padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s;
}
.ev:hover { transform: translateY(-4px); border-color: rgba(201,127,52,.5); background: var(--bg-3); }
.ev .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,127,52,.14); color: var(--copper-2); margin-bottom: 18px; }
.ev .ico svg { width: 26px; height: 26px; }
.ev h3 { margin-bottom: 8px; }
.ev p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--copper-2);
}
.step::after { content: ""; position: absolute; top: 26px; left: 80px; right: -10px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: .92rem; font-weight: 500; cursor: pointer; color: var(--muted); transition: all .2s;
}
.filter:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.filter.active { background: var(--copper); border-color: var(--copper); color: #160d03; font-weight: 700; }
.gallery { columns: 4 240px; column-gap: 16px; }
.g-item {
  break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; position: relative;
  cursor: zoom-in; background: var(--bg-3); border: 0; padding: 0; width: 100%; display: block;
}
.g-item img { width: 100%; height: auto; transition: transform .5s ease, filter .3s; }
.g-item:hover img { transform: scale(1.05); }
.g-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; text-align: left; font-size: .9rem; font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); opacity: 0; transform: translateY(8px); transition: all .3s;
}
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: none; }
.g-item.hide { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5,8,12,.95); display: none;
  align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .95rem; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Nosotros ---------- */
.about-media { position: relative; }
.arch { border-radius: 260px 260px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; max-width: 480px; margin-left: auto; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.about-media .arrow-doodle { left: -20px; top: 18%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.stat { padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--copper-2); margin-bottom: 8px; }
.stat span { font-size: .9rem; color: var(--muted); line-height: 1.35; display: block; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.values li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; color: rgba(255,255,255,.88); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px;
  font-size: 1.12rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--copper-2); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; margin: 0; }

/* ---------- Contacto / Cotizador ---------- */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.contact-list a:hover { background: rgba(255,255,255,.08); border-color: rgba(201,127,52,.5); }
.contact-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(201,127,52,.14); color: var(--copper-2); }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list strong { font-weight: 600; word-break: break-word; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--copper); border-color: var(--copper); color: #160d03; }
.socials svg { width: 20px; height: 20px; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 42px); }
.form-card h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-grid > * { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.25); color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23e39a4f' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); background: rgba(0,0,0,.35); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input[type="date"] { color-scheme: dark; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.field .chip input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem;
  cursor: pointer; transition: all .2s; user-select: none;
}
.chip span:hover { border-color: rgba(255,255,255,.4); }
.chip input:checked + span { background: rgba(201,127,52,.18); border-color: var(--copper); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--copper-2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-actions .btn { flex: 1 1 220px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; min-height: 1.3em; }
.form-note.ok { color: #6ee7a0; }
.form-note.err { color: #ff9a8a; }

.map { margin-top: 60px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- CTA final ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 80px); text-align: center; border: 1px solid var(--line);
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10,14,20,.92), rgba(10,14,20,.7)); }
.cta h2 { margin-bottom: 18px; }
.cta .lead { margin: 0 auto 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #0a0f15; padding: 80px 0 30px; margin-top: 100px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer .logo { height: auto; }
.footer .logo img { height: 78px; margin-left: -10px; }
.footer h4 { margin: 0 0 18px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer p { color: var(--muted); font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--copper-2); }

/* ---------- Botones flotantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; right: 30px; bottom: 98px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line); color: #fff; display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.mobile-bar { display: none; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .acc-content { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .acc-content img { aspect-ratio: 16/9; max-height: 240px; }
}
@media (max-width: 1100px) {
  .arrow-doodle.left { display: none; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 26px; background: rgba(10,14,20,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .menu-open .nav { transform: none; }
  .menu-open .header { background: rgba(10,14,20,.98); }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; min-height: 52px; }
  .logo img { height: 56px; }
  .split, .services-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .services-aside { position: static; }
  .featured { grid-template-columns: 1fr; }
  .f-card { min-height: 440px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .arch { margin: 0 auto; }
  .about-media .arrow-doodle { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .container { padding: 0 16px; }
  .hero { padding-bottom: 110px; }
  .hero .btn-row .btn { width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
  .quick small { display: none; }
  .collage { gap: 10px; }
  .collage figure:nth-child(2), .collage figure:nth-child(4) { transform: translateY(24px); }
  .events-grid, .steps { grid-template-columns: 1fr; }
  .acc-content { grid-template-columns: 1fr; padding-left: 4px; }
  .acc-content { gap: 16px; }
  .acc-content img { aspect-ratio: 16/9; max-height: 190px; }
  .acc-btn .t strong { font-size: 1.1rem; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 1.8rem; }
  .stat span { font-size: .8rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 12px; }
  .lightbox { padding: 60px 10px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { margin-top: 60px; }
  .wa-float, .to-top { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 95;
    background: rgba(10,14,20,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.9); border-radius: 10px; }
  .mobile-bar a svg { width: 22px; height: 22px; }
  .mobile-bar a.wa { color: var(--wa); }
  .mobile-bar a.q { color: var(--copper-2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
