/* AV Electromecánica — diseño minimalista (2026-10). Solo vistas frontend/av2. */
:root {
    --ink: #0d1b2a;
    --ink-2: #33414f;
    --muted: #6b7785;
    --line: #e5e9ee;
    --soft: #f4f6f8;
    --bg: #ffffff;
    --brand: #0bb247;
    --brand-ink: #07893a;
    --brand-soft: #e7f7ed;
    --blue: #12a6e5;
    --navy: #0b1d33;
    --radius: 16px;
    --radius-sm: 10px;
    --wrap: 1180px;
    --shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 8px 24px rgba(13, 27, 42, .06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.av-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.av-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.av-section { padding: 88px 0; }
.av-section--soft { background: var(--soft); }
.av-section--tight { padding: 56px 0; }

.av-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-ink); margin-bottom: 14px;
}
.av-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.av-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.av-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; max-width: 640px; }
.av-head p { margin: 10px 0 0; color: var(--muted); max-width: 560px; }
.av-center { text-align: center; }
.av-center .av-head { justify-content: center; text-align: center; }
.av-center .av-head p { margin-left: auto; margin-right: auto; }

/* Botones */
.av-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.av-btn:hover { transform: translateY(-1px); }
.av-btn--brand { background: var(--brand); color: #fff; }
.av-btn--brand:hover { background: var(--brand-ink); }
.av-btn--dark { background: var(--ink); color: #fff; }
.av-btn--dark:hover { background: #000; }
.av-btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.av-btn--ghost:hover { border-color: var(--ink); }
.av-btn--light { background: #fff; color: var(--ink); }
.av-btn--onimg { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.av-btn--onimg:hover { background: rgba(255, 255, 255, .24); }
.av-btn svg { width: 18px; height: 18px; flex: none; }
.av-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.av-link svg { width: 16px; height: 16px; transition: transform .2s; }
.av-link:hover svg { transform: translateX(3px); }

/* Encabezado */
.av-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.av-header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.av-logo img { height: 54px; width: auto; }
.av-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.av-nav a {
    padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
    transition: background .2s, color .2s;
}
.av-nav a:hover { background: var(--soft); color: var(--ink); }
.av-nav a.is-active { color: var(--ink); background: var(--soft); }
.av-header__cta { margin-left: 8px; }
.av-burger {
    display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.av-burger span, .av-burger span::before, .av-burger span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s;
}
.av-burger span::before { position: absolute; top: -6px; }
.av-burger span::after { position: absolute; top: 6px; }
.av-menu-open .av-burger span { background: transparent; }
.av-menu-open .av-burger span::before { transform: translateY(6px) rotate(45deg); }
.av-menu-open .av-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Portada */
.av-hero { padding: 20px 0 0; }
/* Las diapositivas se apilan en la misma celda: el marco toma la altura de la
   más alta. Cada una trae su imagen, su sombreado y su texto. Los colores por
   diapositiva del panel llegan como --hv-* en su atributo style. */
.av-hero__frame {
    position: relative; border-radius: 24px; overflow: hidden; min-height: 560px; background: var(--navy);
    display: grid;
}
.av-hero__slide {
    grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: inherit;
    opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
}
.av-hero__slide.is-on { opacity: 1; visibility: visible; }
.av-hero__img { position: absolute; inset: 0; }
.av-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.av-hero__slide::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(11, 29, 51, .05) 0%, rgba(11, 29, 51, .35) 45%, rgba(11, 29, 51, .88) 100%);
}
.av-hero__body { position: relative; z-index: 2; padding: 56px; max-width: 760px; color: #fff; }
.av-hero__body .av-eyebrow { color: var(--hv-rotulo, #9ff0b9); color: var(--hv-rotulo, color-mix(in srgb, var(--brand) 40%, #fff)); }
.av-hero__body .av-eyebrow::before { background: currentColor; }
.av-hero__title { color: var(--hv-titulo, #fff); font-size: clamp(34px, 5.2vw, 64px); letter-spacing: -.03em; margin-bottom: 18px; }
.av-hero__accent { display: block; color: var(--hv-acento, #9ff0b9); color: var(--hv-acento, color-mix(in srgb, var(--brand) 40%, #fff)); }
.av-hero__text { font-size: 18px; color: var(--hv-texto, rgba(255, 255, 255, .82)); max-width: 560px; margin-bottom: 28px; }
.av-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.av-hero .av-btn--brand { background: var(--hv-boton, var(--brand)); color: var(--hv-boton-texto, #fff); }
.av-hero__dots { position: absolute; z-index: 3; right: 32px; bottom: 32px; display: flex; gap: 8px; }
.av-hero__dots button {
    width: 28px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .35);
}
.av-hero__dots button.is-on { background: #fff; }

/* Cifras */
.av-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.av-stat { background: #fff; padding: 28px 28px; }
.av-stat__num { font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.av-stat__num small { font-size: .6em; color: var(--brand); margin-left: 2px; }
.av-stat__label { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Tarjetas de servicio */
.av-grid { display: grid; gap: 24px; }
.av-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.av-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.av-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; height: 100%;
}
.av-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.av-card__img { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.av-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.av-card:hover .av-card__img img { transform: scale(1.04); }
.av-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.av-card__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.av-card__title { font-size: 19px; margin-bottom: 8px; }
.av-card__text { color: var(--muted); font-size: 15px; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.av-card__foot { margin-top: auto; }

/* Proyectos */
.av-project { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); }
.av-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.av-project:hover img { transform: scale(1.05); }
.av-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 29, 51, .85)); }
.av-project__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.av-project__body span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9ff0b9; color: color-mix(in srgb, var(--brand) 40%, #fff); }
.av-project__body h3 { color: #fff; font-size: 20px; margin: 6px 0 0; }

/* Por qué nosotros */
.av-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.av-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.av-value { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.av-value__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.av-value__icon svg { width: 22px; height: 22px; }
.av-value h3 { font-size: 17px; margin-bottom: 6px; }
.av-value p { color: var(--muted); font-size: 15px; margin: 0; }

/* Logos */
.av-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.av-logos__item { height: 88px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px 20px; }
.av-logos__item img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.av-logos__item:hover img { filter: none; opacity: 1; }
.av-logos-title { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }

/* Testimonios */
.av-quote { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.av-stars { color: #f5b301; letter-spacing: 2px; font-size: 15px; margin-bottom: 14px; }
.av-quote p { color: var(--ink-2); font-size: 16px; flex: 1; }
.av-quote__who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.av-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: none; }
.av-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-quote__who strong { color: var(--ink); font-size: 15px; }

/* Equipo */
.av-person__img { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 16px; }
.av-person__img img { width: 100%; height: 100%; object-fit: cover; }
.av-person h3 { font-size: 18px; margin-bottom: 2px; }
.av-person p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.av-person__links { display: flex; gap: 8px; }
.av-person__links a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.av-person__links a:hover { border-color: var(--ink); color: var(--ink); }
.av-person__links svg { width: 15px; height: 15px; }

/* Banda de llamada a la acción */
.av-cta { border-radius: 24px; background: var(--navy); color: #fff; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.av-cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 178, 71, .35), transparent 70%); }
.av-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.av-cta p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 520px; }
.av-cta > * { position: relative; }
.av-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Encabezado de página interna */
.av-page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.av-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.av-crumbs a:hover { color: var(--ink); }
.av-crumbs span[aria-hidden] { opacity: .5; }
.av-page-head h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; margin: 0; overflow-wrap: anywhere; }
.av-page-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; max-width: 680px; }

/* Contenido largo (CKEditor) */
.av-prose { color: var(--ink-2); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.av-prose h2, .av-prose h3, .av-prose h4 { margin: 1.6em 0 .6em; }
.av-prose h2 { font-size: 28px; }
.av-prose h3 { font-size: 22px; }
.av-prose img { border-radius: var(--radius-sm); margin: 1.2em 0; height: auto !important; }
.av-prose ul, .av-prose ol { padding-left: 1.3em; }
.av-prose li { margin-bottom: .4em; }
.av-prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.av-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); }
.av-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.av-prose td, .av-prose th { border: 1px solid var(--line); padding: 8px 12px; }
.av-prose iframe, .av-prose video { max-width: 100%; }

/* Detalle con barra lateral */
.av-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.av-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.av-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.av-box h3 { font-size: 18px; margin-bottom: 8px; }
.av-box p { color: var(--muted); font-size: 15px; }
.av-box .av-btn { width: 100%; }
.av-box .av-btn + .av-btn { margin-top: 10px; }
.av-list { list-style: none; margin: 0; padding: 0; }
.av-list li + li { border-top: 1px solid var(--line); }
.av-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--ink-2); font-size: 15px; }
.av-list a:hover { color: var(--ink); }
.av-list svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.av-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.av-mini img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--soft); }
.av-mini strong { color: var(--ink); font-size: 15px; line-height: 1.35; display: block; }
.av-mini span { color: var(--muted); font-size: 13px; }
.av-cover { border-radius: 20px; overflow: hidden; margin-bottom: 40px; background: var(--soft); }
.av-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.av-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; margin-top: 16px; }
.av-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip { padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink-2); }

/* Contacto */
.av-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.av-info { display: grid; gap: 14px; }
.av-info__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.av-info__item strong { display: block; color: var(--ink); }
.av-info__item span { color: var(--muted); font-size: 15px; }
.av-info__item a:hover { color: var(--brand-ink); }
.av-form { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: #fff; box-shadow: var(--shadow); }
.av-form h2 { font-size: 24px; margin-bottom: 4px; }
.av-form > p { color: var(--muted); margin-bottom: 24px; }
.av-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.av-field { display: flex; flex-direction: column; gap: 6px; }
.av-field--full { grid-column: 1 / -1; }
.av-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.av-field input, .av-field textarea, .av-field select {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.av-field textarea { min-height: 140px; resize: vertical; }
.av-field input:focus, .av-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 178, 71, .12); }
.av-form .av-btn { margin-top: 18px; width: 100%; }
.av-map { border-radius: 20px; overflow: hidden; height: 420px; background: var(--soft); border: 1px solid var(--line); }
.av-map iframe { width: 100%; height: 100%; border: 0; }
.av-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.av-icon svg { width: 20px; height: 20px; }

/* Buscador y paginación */
.av-search { display: block; position: relative; max-width: 420px; margin-bottom: 32px; }
.av-search input { width: 100%; min-height: 48px; padding: 12px 44px 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: 400 16px var(--font); }
.av-search input:focus { outline: none; border-color: var(--brand); }
.av-search svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.av-pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.av-pager a, .av-pager span, .av-pager button {
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--font); color: var(--ink); cursor: pointer;
}
.av-pager .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.av-pager .is-off { opacity: .4; pointer-events: none; }
.av-empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Pie */
.av-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: 15px; }
.av-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.av-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.av-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.av-footer a:hover { color: #fff; }
.av-footer__logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.av-footer__logo img { height: 48px; width: auto; }
.av-footer__about { max-width: 320px; }
.av-social { display: flex; gap: 8px; margin-top: 16px; }
.av-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; color: #fff; }
.av-social a:hover { background: rgba(255, 255, 255, .1); }
.av-social svg { width: 16px; height: 16px; }
.av-footer__bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.av-footer__bottom span { opacity: .6; }
.av-footer + .av-wa { bottom: 24px; }

/* WhatsApp flotante */
.av-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: transform .2s;
}
.av-wa:hover { transform: scale(1.06); }
.av-wa svg { width: 28px; height: 28px; }

/* Aviso de sesión y errores */
.av-toast { position: fixed; left: 50%; top: 88px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: 15px; }
.av-toast--error { background: #b42318; }

/* Diálogo de testimonio */
.av-dialog { border: 0; border-radius: 20px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: 0 24px 64px rgba(13, 27, 42, .25); }
.av-dialog::backdrop { background: rgba(13, 27, 42, .5); }
.av-dialog .av-form { box-shadow: none; border: 0; }
.av-dialog__close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.av-rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.av-rate input { position: absolute; opacity: 0; }
.av-rate label { font-size: 28px; color: #d0d5dd; cursor: pointer; font-weight: 400; }
.av-rate input:checked ~ label, .av-rate label:hover, .av-rate label:hover ~ label { color: #f5b301; }

/* Adaptable */
@media (max-width: 1080px) {
    .av-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .av-footer__grid { grid-template-columns: 1fr 1fr; }
    .av-detail { grid-template-columns: 1fr; gap: 40px; }
    .av-aside { position: static; }
}
@media (max-width: 960px) {
    .av-nav, .av-header__cta { display: none; }
    .av-burger { display: inline-flex; }
    .av-menu-open .av-nav {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; left: 0; right: 0; top: 72px; padding: 12px 20px 20px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .av-menu-open .av-nav a { padding: 14px 12px; font-size: 17px; }
    .av-menu-open .av-nav .av-btn { margin-top: 8px; }
    .av-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .av-split, .av-contact { grid-template-columns: 1fr; gap: 40px; }
    .av-section { padding: 64px 0; }
}
@media (min-width: 961px) {
    .av-nav .av-nav__cta { display: none; }
}
@media (max-width: 640px) {
    .av-wrap { padding: 0 16px; }
    .av-section { padding: 52px 0; }
    .av-section--tight { padding: 40px 0; }
    .av-header__in { height: 64px; }
    .av-menu-open .av-nav { top: 64px; padding: 8px 16px 16px; }
    .av-logo img { height: 46px; }
    .av-hero { padding-top: 12px; }
    .av-hero__frame { min-height: 520px; border-radius: 18px; }
    .av-hero__body { padding: 28px 22px 64px; }
    .av-hero__text { font-size: 16px; }
    .av-hero__actions .av-btn { flex: 1 1 100%; }
    .av-hero__dots { left: 22px; right: auto; bottom: 24px; }
    .av-grid--3, .av-grid--4, .av-values { grid-template-columns: 1fr; }
    .av-grid { gap: 16px; }
    .av-project { aspect-ratio: 4 / 3; }
    .av-stats { grid-template-columns: 1fr 1fr; }
    .av-stat { padding: 20px; }
    .av-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .av-cta { padding: 32px 22px; border-radius: 18px; }
    .av-cta__actions, .av-cta__actions .av-btn { width: 100%; }
    .av-page-head { padding: 40px 0 28px; }
    .av-fields { grid-template-columns: 1fr; }
    .av-form { padding: 22px; border-radius: 16px; }
    .av-map { height: 300px; }
    .av-footer { padding-top: 52px; }
    .av-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .av-footer__grid > :first-child, .av-footer__grid > :last-child { grid-column: 1 / -1; }
    .av-head { margin-bottom: 28px; }
    .av-team.av-grid--3 { grid-template-columns: 1fr 1fr; }
    /* Servicios en fila compacta: seis tarjetas a lo alto eran demasiado scroll. */
    .av-card--svc { flex-direction: row; align-items: stretch; }
    .av-card--svc .av-card__img { aspect-ratio: auto; width: 112px; flex: none; }
    .av-card--svc .av-card__body { padding: 14px 16px; }
    .av-card--svc .av-card__title { font-size: 17px; margin-bottom: 4px; }
    .av-card--svc .av-card__text { -webkit-line-clamp: 2; font-size: 14px; margin-bottom: 8px; }
    .av-card--svc .av-link { font-size: 14px; }
    .av-hero__frame { min-height: 480px; }
    .av-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .av-value { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 18px; }
    .av-value__icon { width: 40px; height: 40px; margin: 0; grid-row: span 2; }
    .av-values { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
