/* ===== Yovigilo.com — estilos ===== */
:root {
  --yellow: #FAE300;
  --yellow-dark: #E0CB00;
  --red: #E30613;
  --ink: #111111;
  --ink-2: #1c1c1c;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----- Botones ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .95em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--sm { padding: .6em 1.15em; font-size: .92rem; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--yellow); margin-bottom: 1rem; }
.eyebrow--dark { color: var(--muted); }
.eyebrow--dark::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: .6em; vertical-align: 1px; }

/* ----- Barra superior ----- */
.topbar { background: var(--ink); color: #bdbdbd; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.topbar a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.topbar__right { white-space: nowrap; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; margin-right: .35em; box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(46,204,113,0); } 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); } }

/* ----- Cabecera ----- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { flex-shrink: 0; margin-right: 1.5rem; }
.header .wrap { max-width: 1360px; }
.nav a, .nav .btn { white-space: nowrap; }
/* Logo grande arriba del todo; se reduce al bajar (clase .is-scrolled desde main.js) */
.header__in { height: 124px; transition: height .25s ease; }
.logo img { width: 440px; transition: width .25s ease; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.header.is-scrolled .header__in { height: 74px; }
.header.is-scrolled .logo img { width: 260px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
@media (max-width: 1440px) and (min-width: 1181px) { .nav { gap: 1.2rem; } }
@media (max-width: 1300px) and (min-width: 1181px) { .nav { gap: 1rem; font-size: .95rem; } .logo img { width: 320px; } .header.is-scrolled .logo img { width: 230px; } }.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; background: var(--yellow); transition: right .2s; }
.nav a:not(.btn):hover::after { right: 0; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); content: ""; transition: .2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before { top: -7px; left: 0; right: 0; }
.menu-btn span::after { top: 7px; left: 0; right: 0; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ----- Hero ----- */
.hero { background: var(--ink); color: #d8d8d8; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.035em; }
.hero mark { background: none; color: var(--yellow); }
.lead { font-size: 1.15rem; max-width: 34em; color: #c9c9c9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.hero__facts { list-style: none; padding: 1.6rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid #333; }
.hero__facts strong { display: block; color: #fff; font-size: 1.25rem; }
.hero__facts span { font-size: .85rem; color: #9a9a9a; }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; filter: grayscale(.35) contrast(1.05); }
.hero__media::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(250,227,0,.85); border-radius: 8px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) top left / 40px 40px no-repeat, linear-gradient(#000 0 0) top right / 40px 40px no-repeat, linear-gradient(#000 0 0) bottom left / 40px 40px no-repeat, linear-gradient(#000 0 0) bottom right / 40px 40px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 40px 40px no-repeat, linear-gradient(#000 0 0) top right / 40px 40px no-repeat, linear-gradient(#000 0 0) bottom left / 40px 40px no-repeat, linear-gradient(#000 0 0) bottom right / 40px 40px no-repeat; }
.rec { position: absolute; top: 28px; left: 30px; font: 700 .75rem/1 ui-monospace, Consolas, monospace; color: #fff; letter-spacing: .1em; background: rgba(0,0,0,.45); padding: .45em .7em; border-radius: 4px; }
.rec span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: .4em; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Hero con foto de fondo + formulario */
.hero { position: relative; background:
  linear-gradient(90deg, rgba(17,17,17,1) 30%, rgba(17,17,17,.82) 60%, rgba(17,17,17,.55)),
  url(../img/cctve-yovigilo-slide2.jpg) right center / cover no-repeat, var(--ink); }
.hero__in { grid-template-columns: 1.15fr .85fr; }
.form--hero { background: rgba(20,20,20,.92); backdrop-filter: blur(6px); border-color: #333; box-shadow: 0 30px 60px rgba(0,0,0,.45); position: relative; padding-top: 2.4rem; }
.form--hero h2 { color: #fff; font-size: 1.55rem; margin: 0; }
.form--hero > p { margin: -.4rem 0 .2rem; font-size: .92rem; color: #a9a9a9; }
.form--hero .rec { top: -14px; left: 2rem; background: var(--yellow); color: var(--ink); }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg legend { font-size: .88rem; font-weight: 600; color: #e5e5e5; margin-bottom: .4rem; }
.seg label { display: block; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .7em .4em; border: 1px solid #3a3a3a; border-radius: 10px; cursor: pointer; font-weight: 600; color: #ccc; transition: .15s; }
.seg input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* Hogar / Negocio */
.audience { padding: 6rem 0 0; }
.audience__in { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.aud { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 420px; text-decoration: none; color: #d0d0d0; background: var(--ink); }
.aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s, opacity .3s; }
.aud:hover img { transform: scale(1.04); opacity: .45; }
.aud::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9) 15%, rgba(0,0,0,0) 75%); }
.aud__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem; z-index: 1; }
.aud__body h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.aud__body p:not(.eyebrow) { max-width: 30em; font-size: .97rem; }

/* FAQ */
.faq-sec { background: var(--bg); }
.faq-sec .section__head a { color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; font-weight: 700; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-weight: 400; font-size: 1.3rem; transition: .2s; }
.faq details[open] summary::after { content: "–"; background: var(--yellow); }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; max-width: 46em; }

/* ----- Secciones ----- */
.section { padding: 6rem 0; }
.section__head { max-width: 640px; margin-bottom: 3rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: var(--ink); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__more { font-weight: 700; font-size: .88rem; color: var(--ink); border-top: 3px solid var(--yellow); padding-top: .8rem; }

/* ----- Banda amarilla ----- */
.band { background: var(--yellow); padding: 5.5rem 0; }
.band .eyebrow--dark { color: var(--ink); }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: r; }
.reasons li { background: var(--ink); color: #cfcfcf; border-radius: var(--radius); padding: 1.6rem 1.4rem; counter-increment: r; }
.reasons li::before { content: "0" counter(r); display: block; font-weight: 900; font-size: 2rem; color: var(--yellow); margin-bottom: .8rem; line-height: 1; }
.reasons h3 { color: #fff; }
.reasons p { margin: 0; font-size: .93rem; }

/* ----- Cómo trabajamos ----- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.section__head--side { position: sticky; top: 110px; }
.section__head--side p:not(.eyebrow) { color: var(--muted); margin-bottom: 1.8rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 1.3rem 0 1.3rem 4.2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1.05rem; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-soft); border: 2px solid var(--ink); }
.steps li:hover::before { background: var(--yellow); }

/* ----- Clientes ----- */
.clients { background: var(--bg-soft); padding: 4.5rem 0; }
.clients__title { font-size: 1.1rem; text-align: center; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-bottom: 2rem; }
.clients__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.clients__grid li { background: #fff; border-radius: 10px; display: grid; place-items: center; padding: .8rem 1rem; height: 96px; }
.clients__grid li.dark { background: var(--ink); }
.clients__grid img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.clients__grid li:hover img { transform: scale(1.05); }
.clients__grid li:hover img { filter: none; opacity: 1; }

/* ----- Te llamamos ----- */
.callback { background: var(--ink); color: #c9c9c9; padding: 6rem 0; }
.callback h2 { color: #fff; }
.callback__in { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.form { background: var(--ink-2); border: 1px solid #2e2e2e; border-radius: var(--radius); padding: 2rem; display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: #e5e5e5; }
.form input, .form select { font: inherit; padding: .85em 1em; border-radius: 10px; border: 1px solid #3a3a3a; background: #111; color: #fff; }
.form input:focus, .form select:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
.form .check { display: flex; align-items: center; gap: .6rem; font-weight: 400; color: #aaa; }
.form .check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.form .check a { color: var(--yellow); }

/* ----- Pie ----- */
.footer { background: #0a0a0a; color: #9a9a9a; font-size: .93rem; padding-top: 4rem; }
.footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer__logo { width: 300px; margin-bottom: 1.4rem; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer a { display: block; text-decoration: none; color: #cfcfcf; margin-bottom: .4rem; }
.footer a:hover { color: var(--yellow); }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #222; padding-top: 1.4rem; padding-bottom: 1.4rem; font-size: .82rem; }
.footer__legal a { display: inline; }

/* ===== Menú desplegable ===== */
.nav a[aria-current="page"]::after { right: 0 !important; }
.dd { position: relative; padding: 1.6rem 0; }
.caret { font-size: .7em; color: var(--muted); margin-left: .15em; }
.dd__menu { position: absolute; top: 100%; left: -1rem; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.1); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.dd:hover .dd__menu, .dd:focus-within .dd__menu { opacity: 1; visibility: visible; transform: none; }
.dd__menu a { display: block; padding: .6rem .8rem; border-radius: 8px; }
.nav .dd__menu a::after { display: none; }
.dd__menu a:hover { background: var(--bg-soft); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ===== Páginas interiores ===== */
.phero { background-color: var(--ink); background-image: linear-gradient(90deg, rgba(17,17,17,.96) 30%, rgba(17,17,17,.6)), var(--img, none); background-size: cover; background-position: center; color: #cfcfcf; padding: 4.5rem 0 4.2rem; }
.phero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.035em; max-width: 15em; }
.phero .lead { max-width: 40em; margin: 0; }
.crumbs { font-size: .85rem; color: #8f8f8f; margin-bottom: 1.4rem; }
.crumbs a { color: #cfcfcf; text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { margin: 0 .45em; }

.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c9c9c9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 4.5rem 0; }

.media-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.media-split--rev > :first-child { order: 2; }
.media-split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.media-split img.tall { aspect-ratio: 4 / 5; }
.prose p { font-size: 1.04rem; }
.prose p.big { font-size: 1.2rem; color: var(--ink); font-weight: 500; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.features li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 1.5rem; }
.section--soft .features li { border-color: transparent; border-top-color: var(--yellow); }
.features h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.features p { color: var(--muted); font-size: .95rem; margin: 0; }
.section--dark .features li { background: var(--ink-2); border-color: #2a2a2a; border-top-color: var(--yellow); }
.section--dark .features p { color: #a8a8a8; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.checklist li { position: relative; padding: .9rem 0 .9rem 2.3rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
.checklist--one { grid-template-columns: 1fr; }
.section--dark .checklist li { color: #e2e2e2; border-color: #2a2a2a; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.chips li { background: var(--ink); color: #fff; padding: .55em 1.1em; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.chips li::before { content: "●"; color: var(--red); margin-right: .5em; font-size: .7em; vertical-align: 2px; }
.section--dark .chips li { background: #262626; }

.compare { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.compare li { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.compare li.best { background: var(--ink); color: #d0d0d0; border-color: var(--ink); }
.compare li.best h3 { color: var(--yellow); }
.compare h3 { margin: 0; font-size: 1.02rem; }
.compare p { margin: 0; color: var(--muted); }
.compare li.best p { color: #d0d0d0; }

.system { scroll-margin-top: 100px; }
.system + .system { margin-top: 5rem; }
.system h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.system .sub { font-weight: 600; color: var(--ink); font-size: 1.08rem; }

.cta-band { background: var(--yellow); padding: 3.5rem 0; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: .4rem 0 0; color: #333; }
.cta-band__btns { display: flex; gap: .8rem; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.info { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.info li { background: var(--bg-soft); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.info small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.info a, .info strong { font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.info a:hover { text-decoration: underline; }
.form--light { background: #fff; border-color: var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.form--light label, .form--light .seg legend { color: var(--ink); }
.form--light input, .form--light select, .form--light textarea { background: #fff; color: var(--ink); border-color: #d4d4d4; }
.form textarea { font: inherit; padding: .85em 1em; border-radius: 10px; border: 1px solid #3a3a3a; background: #111; color: #fff; min-height: 140px; resize: vertical; }
.form--light .check { color: var(--muted); }
.form--light .check a { color: var(--ink); }
.form--light .seg span { color: var(--ink); border-color: #d4d4d4; }
.form--light h2 { color: var(--ink); }
.form .hp { position: absolute; left: -9999px; }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--ink); font-weight: 600; }
mark.pend { background: var(--yellow); color: var(--ink); padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .clients__grid { grid-template-columns: repeat(5, 1fr); }
}
/* Menú desplegable (hamburguesa) por debajo de 1180px */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; align-self: flex-start; }
  .nav { max-height: calc(100vh - 110px); overflow-y: auto; }
  .dd { padding: 0; }
  .dd > a { display: block; }
  .caret { display: none; }
  .dd__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .4rem 1rem; min-width: 0; border-bottom: 1px solid var(--line); }
  .nav .dd__menu a { padding: .55rem 0; border: 0; font-size: .92rem; color: var(--muted); font-weight: 500; }
  .logo img { width: 360px; }
  .header.is-scrolled .logo img { width: 240px; }
}
@media (max-width: 860px) {
  .media-split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .media-split--rev > :first-child { order: 0; }
  .media-split img.tall { aspect-ratio: 16 / 10; }
  .compare li { grid-template-columns: 1fr; gap: .4rem; }
  .hero__in, .split, .callback__in, .audience__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .audience__in { gap: 1.2rem; }
  .audience { padding-top: 4rem; }
  .aud { min-height: 380px; }
  .hero { background: linear-gradient(180deg, rgba(17,17,17,.75), rgba(17,17,17,1) 55%), url(../img/cctve-yovigilo-slide2.jpg) center top / cover no-repeat, var(--ink); }
  .hero__in { padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero__media { aspect-ratio: 16 / 10; }
  .section__head--side { position: static; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__in > div:first-child { grid-column: 1 / -1; }
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
}
@media (max-width: 560px) {
  .logo img { width: 280px; }
  .header__in { height: 90px; }
  .header.is-scrolled .header__in { height: 62px; }
  .header.is-scrolled .logo img { width: 175px; }
  .cards, .reasons { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__facts { grid-template-columns: 1fr; gap: .8rem; }
  .section, .callback { padding: 4rem 0; }
  .band { padding: 4rem 0; }
  .footer__in { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .phero { padding: 3rem 0; }
  .cta-band__btns { width: 100%; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
