/* Mardel Plack
   Misma base que rex-noster. Idea: un catalogo de revestimientos. La portada tiene la textura
   de la piedra de fondo y una obra terminada como protagonista; el resto es sobrio, con el
   azul noche de los flyers como estructura, el turquesa de la ola del logo para los detalles
   y el azul del logo solo para la accion principal (pedir presupuesto).
   Titulos en Barlow Condensed (como las cintas de los flyers), texto en Barlow.
   Sin estilos en linea: la politica de seguridad (_headers) los prohibe. */
:root {
  --ink: #0b1f2e;       /* bandas oscuras, portada y pie */
  --navy: #0f2f47;      /* titulos */
  --text: #283846;      /* texto corrido */
  --muted: #5a6a77;
  --paper: #f5f5f3;     /* fondo general: el gris papel de los flyers */
  --mist: #e8edef;      /* banda clara */
  --r: 14px;
  --lift: 0 1px 2px rgba(11, 31, 46, 0.06), 0 12px 32px rgba(11, 31, 46, 0.08);
  --line: #d6dde2;
  --teal: #1fb3c8;      /* turquesa del logo, sobre fondo oscuro */
  --teal-ink: #0b6f80;  /* turquesa legible sobre claro */
  --blue: #0a56c2;      /* accion principal (azul de la tarjeta de contacto) */
  --blue-dark: #08449b;
  --link: #0a56c2;
  --white: #ffffff;
  --head: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); font-weight: 700; letter-spacing: 0.005em; text-wrap: balance; }
p { text-wrap: pretty; }
b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--white); border-radius: 6px; }
.skip:focus { left: 8px; }
.kicker { margin: 0 0 12px; font: 600 0.92rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

/* ---------- Barra superior ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(11, 31, 46, 0.08); }
.topInner { position: relative; display: flex; align-items: center; gap: 16px; min-height: 80px; }
.brand { margin-right: auto; }
.brand img { width: auto; height: 60px; }
.navList { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.navList > li > a:not(.btn) { color: var(--navy); text-decoration: none; padding: 6px 0; font: 500 1.05rem/1 var(--body); }
.navList > li > a:not(.btn):hover, .navList > li > a:not(.btn):focus-visible, .navList a[aria-current="page"] { color: var(--teal-ink); }
.navList > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.menuBtn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--navy); cursor: pointer; }
.menuIcon, .menuIcon::before, .menuIcon::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: currentColor; transition: transform 0.15s, background 0.15s; }
.menuIcon { position: relative; }
.menuIcon::before, .menuIcon::after { content: ""; position: absolute; left: 0; }
.menuIcon::before { top: -6px; }
.menuIcon::after { top: 6px; }
.menuBtn[aria-expanded="true"] .menuIcon { background: transparent; }
.menuBtn[aria-expanded="true"] .menuIcon::before { transform: translateY(6px) rotate(45deg); }
.menuBtn[aria-expanded="true"] .menuIcon::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .menuBtn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: -20px; right: -20px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11, 31, 46, 0.16); }
  .nav.open { display: block; }
  .navList { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 20px; }
  .navList > li > a:not(.btn) { display: flex; width: 100%; padding: 16px 2px; font-size: 1.1rem; border-bottom: 1px solid #edf1f3; }
  .navList > li > a[aria-current="page"] { box-shadow: none; }
  .navCta { padding-top: 16px; }
  .navCta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) { .brand img { height: 50px; } }

/* ---------- Botones y enlaces ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--blue);
  background: var(--blue); color: var(--white); text-decoration: none; font: 600 1rem/1.2 var(--body);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10, 86, 194, 0.3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover, .btn:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.small { padding: 10px 18px; font-size: 0.95rem; }
.btn.small svg { width: 18px; height: 18px; }
.btn.line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.line:hover { box-shadow: none; }
.btn.line:hover, .btn.line:focus-visible { background: var(--navy); color: var(--white); }
.btn.line.onDark { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn.line.onDark:hover, .btn.line.onDark:focus-visible { background: var(--white); color: var(--ink); border-color: var(--white); }
.textLink { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.textLink:hover, .textLink:focus-visible { color: var(--teal-ink); }

/* ---------- Bandas ---------- */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.mist { background: linear-gradient(180deg, var(--paper), var(--mist) 120px, var(--mist) calc(100% - 120px), var(--paper)); }
.band.ink { margin-inline: clamp(8px, 2vw, 24px); border-radius: 28px; color: rgba(255, 255, 255, 0.82); background: radial-gradient(50% 80% at 100% 0%, rgba(31, 179, 200, 0.22), transparent 70%), var(--ink); }
.band.ink h2, .band.ink h3 { color: var(--white); }
.head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.head h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; }
.head p { margin: 0; color: var(--muted); font-size: 1.12rem; }
.band.ink .head p { color: rgba(255, 255, 255, 0.72); }
.headRow { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.headRow > div { max-width: 680px; }

/* ---------- Portada y encabezados: la textura de piedra bajo el azul noche, con el borde inferior en diagonal ---------- */
.hero, .pageHead {
  position: relative; color: rgba(255, 255, 255, 0.84);
  background: radial-gradient(55% 75% at 85% 25%, rgba(31, 179, 200, 0.26), transparent 72%),
    linear-gradient(165deg, rgba(14, 42, 62, 0.9), rgba(11, 31, 46, 0.95) 55%, rgba(8, 24, 36, 0.97)),
    url("/img/textura.jpg") center / 420px auto, var(--ink);
}
.hero { padding-block: clamp(44px, 7vw, 88px) clamp(88px, 11vw, 140px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(28px, 5vw, 64px)), 0 100%); }
.hero h1, .pageHead h1 { color: var(--white); }
.hero .lead, .pageHead .lead { color: rgba(255, 255, 255, 0.84); }
.hero .btn.line, .pageHead .btn.line { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.hero .btn.line:hover, .hero .btn.line:focus-visible, .pageHead .btn.line:hover, .pageHead .btn.line:focus-visible { background: var(--white); color: var(--ink); border-color: var(--white); }
.heroGrid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .heroGrid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em; }
.lead { margin: 0 0 32px; max-width: 34em; font-size: 1.2rem; color: var(--text); }
.assure { list-style: none; margin: 36px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 12px 28px; }
@media (min-width: 560px) { .assure { grid-template-columns: 1fr 1fr; } }
.assure li { position: relative; padding-left: 28px; font-size: 0.98rem; color: rgba(255, 255, 255, 0.7); }
.assure li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border: solid var(--teal); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.assure b { color: var(--white); }

/* La obra de la portada: el elemento protagonista */
.portrait { margin: 0 0 0 auto; max-width: 440px; }
.frame { position: relative; padding: 0 0 28px 28px; }
.frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 70%; background: var(--teal); border-radius: 18px; }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); }
.portrait figcaption { margin: 14px 0 0 28px; padding-left: 14px; border-left: 3px solid var(--teal); font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.portrait figcaption b { display: block; font: 700 1.25rem/1.2 var(--head); color: var(--white); letter-spacing: 0.02em; }
@media (max-width: 899px) { .portrait { margin: 0 auto; max-width: 400px; } }
@media (prefers-reduced-motion: no-preference) {
  .portrait img { animation: reveal 1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.15s; }
  .frame::before { animation: slide 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide { from { transform: translate(-16px, 16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Que hacemos (inicio) ---------- */
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 640px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(4, 1fr); } }
.area { position: relative; display: flex; flex-direction: column; padding: 30px 26px 28px; background: var(--white); border-radius: var(--r); box-shadow: var(--lift); }
.area::before { content: ""; position: absolute; top: 0; left: 26px; width: 44px; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal); }
.num { display: block; margin-bottom: 14px; font: 700 1.05rem/1 var(--head); color: var(--teal-ink); letter-spacing: 0.08em; }
.area h3 { margin: 0 0 8px; font-size: 1.6rem; line-height: 1.05; }
.area > p { margin: 0 0 20px; }
.area .textLink { margin-top: auto; align-self: flex-start; }

/* ---------- Modelos (inicio): las placas sobre piezas blancas ---------- */
.models { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .models { grid-template-columns: repeat(3, 1fr); } }
.models a { display: block; text-decoration: none; }
.tile { display: grid; grid-template: 100% / 100%; aspect-ratio: 4 / 3; padding: 18px; overflow: hidden; background: var(--white); border-radius: var(--r); box-shadow: var(--lift); }
.tile img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(11, 31, 46, 0.14)); }
.models b { display: block; margin-top: 12px; font: 700 1.35rem/1.1 var(--head); color: var(--navy); letter-spacing: 0.02em; text-transform: uppercase; }
.models a:hover b, .models a:focus-visible b { color: var(--teal-ink); }

/* Catalogo (pagina de modelos) */
.catalog { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 32px; }
@media (min-width: 700px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
.model .tile { margin-bottom: 18px; }
.model h3 { margin: 0 0 6px; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.model h3::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--teal); }
.model p { margin: 0 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { padding: 26px; background: var(--white); border-radius: var(--r); box-shadow: var(--lift); }
.facts b { display: block; margin-bottom: 6px; font: 700 1.35rem/1.1 var(--head); color: var(--navy); }
.facts span { color: var(--muted); }

/* ---------- Foto + texto ---------- */
.split { display: grid; gap: 40px 64px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 0; } }
.split h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; }
.split p { margin: 0 0 16px; max-width: 34em; }
.split .sub { font-size: 1.12rem; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 15%; border-radius: 18px; box-shadow: var(--lift); }
.checks { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border: solid var(--teal-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.checks.onDark li { color: var(--white); }
.checks.onDark li::before { border-color: var(--teal); }


/* ---------- Proceso (es una secuencia real: va numerado) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: paso; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps li { counter-increment: paso; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(paso); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--teal-ink); color: var(--teal-ink); font: 700 1.1rem/1 var(--head); background: var(--paper);
}
.band.ink .steps li::before { border-color: var(--teal); color: var(--teal); background: var(--ink); }
@media (min-width: 900px) {
  .steps li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -20px; height: 1px; background: rgba(11, 111, 128, 0.35); }
  .band.ink .steps li::after { background: rgba(31, 179, 200, 0.45); }
  .steps li:last-child::after { display: none; }
}
.steps h3 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.1; }
.steps p { margin: 0; font-size: 0.98rem; }

/* ---------- Cierre ---------- */
.closing { margin: clamp(48px, 7vw, 88px) clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px); border-radius: 28px; background: radial-gradient(45% 90% at 0% 100%, rgba(31, 179, 200, 0.3), transparent 70%), linear-gradient(120deg, #0b3a5c, #0a56c2); color: rgba(255, 255, 255, 0.88); padding-block: clamp(56px, 8vw, 88px); }
.closingGrid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .closingGrid { grid-template-columns: 1fr auto; gap: 48px; } }
.closing h2 { margin: 0 0 8px; color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; }
.closing p { margin: 0; }
.closing .btn:not(.line) { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
.closing .btn:not(.line):hover, .closing .btn:not(.line):focus-visible { background: #e6f0fb; border-color: #e6f0fb; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2); }

/* ---------- Paginas internas ---------- */
.pageHead { padding-block: clamp(36px, 6vw, 64px) clamp(64px, 9vw, 104px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(20px, 3.5vw, 44px)), 0 100%); }
.crumbs { margin: 0 0 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.crumbs a { color: var(--white); }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--teal); }
.pageHead h1 { margin: 0 0 16px; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; text-transform: uppercase; }
.pageHead .lead { margin-bottom: 30px; }
.pageHead .lead:last-child { margin-bottom: 0; }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 4px 28px; padding: 30px 30px 28px; background: var(--white); border-radius: var(--r); box-shadow: var(--lift); }
.service .num { margin: 4px 0 0; font-size: 1.6rem; }
.service h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.05; }
.service p { margin: 0 0 14px; max-width: 44em; }
@media (max-width: 520px) { .service { grid-template-columns: 1fr; } }

/* Trabajos */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .works { grid-template-columns: 0.8fr 1.2fr; } .work.tall { grid-row: span 2; } }
.work figure { margin: 0; }
.work > figure img { width: 100%; border-radius: 18px; box-shadow: var(--lift); }
.work.tall img { height: 100%; max-height: 900px; object-fit: cover; }
.work figcaption { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--teal); color: var(--muted); }
.work figcaption b { display: block; font: 700 1.35rem/1.15 var(--head); color: var(--navy); }
.more { margin: 40px 0 0; }

/* Contacto */
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .channels { grid-template-columns: 1fr 1fr; } }
.channels li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; align-content: start; padding: 26px; background: var(--white); border: 2px solid transparent; border-radius: var(--r); box-shadow: var(--lift); }
.channels .ico { grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--navy); }
.channels .ico svg { width: 22px; height: 22px; }
/* La ubicacion ocupa todo el ancho, salvo que falte una tarjeta (Facebook vacio): ahi completa la grilla */
.channels li.wide { grid-column: 1 / -1; }
.channels:has(> li[hidden]) li.wide { grid-column: auto; }
.channels li.main { border-color: var(--blue); }
.channels li.main .ico { background: var(--blue); color: var(--white); }
.channels h2 { margin: 0; font-size: 1.45rem; line-height: 1.1; }
.channels a { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; cursor: pointer; }
.channels a:hover, .channels a:focus-visible { color: var(--link); }
.channels p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.zone { display: flex; align-items: center; gap: 10px; margin: 32px 0 0; color: var(--muted); }
.zone svg { width: 22px; height: 22px; color: var(--teal-ink); flex: none; }

/* Nosotros */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.reasons li { padding-top: 18px; border-top: 2px solid var(--teal); }
.reasons h3 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.1; }
.reasons p { margin: 0; font-size: 0.98rem; }
.years { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font: 600 0.92rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.years b { font: 700 3.6rem/0.9 var(--head); letter-spacing: 0; color: var(--teal-ink); }

/* Preguntas frecuentes: details/summary, abren sin JavaScript */
.faqGrid { display: grid; gap: 24px 64px; align-items: start; }
@media (min-width: 900px) { .faqGrid { grid-template-columns: 0.7fr 1.3fr; } }
.faqGrid > h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--r); box-shadow: var(--lift); }
.faq summary { position: relative; display: block; padding: 20px 60px 20px 24px; cursor: pointer; list-style: none; font: 600 1.08rem/1.35 var(--body); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; border: solid var(--teal-ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--teal-ink); }
.faq details p { margin: 0; padding: 0 24px 22px; }
.faq details p a:not(.textLink) { color: var(--navy); font-weight: 600; }
.faq a[href^="tel"] { white-space: nowrap; }

/* Placas de exterior: fotos reales (no recortes), en la misma pieza blanca que los modelos */
.extList { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; }
@media (min-width: 700px) { .extList { grid-template-columns: 1fr 1fr; } }
.ext { aspect-ratio: 4 / 3; margin-bottom: 18px; overflow: hidden; border-radius: var(--r); background: var(--white); box-shadow: var(--lift); }
.ext img { width: 100%; height: 100%; object-fit: cover; }
.jump { display: flex; gap: 10px; margin: 26px 0 0; }
.jump a { padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.jump a:hover, .jump a:focus-visible { background: var(--white); color: var(--ink); }
.subHead { margin-top: clamp(56px, 8vw, 96px); }
.works2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .works2 { grid-template-columns: 1fr 1fr; } }
.works2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--lift); }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding-block: 56px 96px; font-size: 0.97rem; }
.footGrid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footGrid { grid-template-columns: 1.4fr 0.9fr 0.8fr 1.3fr; } }
/* El logo tiene letras oscuras: va sobre un circulo blanco, como en la tarjeta de contacto */
.footLogo { display: grid; place-items: center; width: 132px; height: 132px; margin-bottom: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 5px rgba(31, 179, 200, 0.55); }
.footLogo img { width: 100px; height: auto; }
.footBrand p { margin: 0; max-width: 30em; }
.foot h2 { margin: 0 0 14px; color: var(--white); font: 700 1.2rem/1.2 var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; overflow-wrap: anywhere; cursor: pointer; }
.foot a:hover, .foot a:focus-visible { color: var(--white); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 4px; }

/* Boton flotante de WhatsApp */
.bubble { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: var(--white); box-shadow: 0 8px 22px rgba(11, 31, 46, 0.28); }
.bubble svg { width: 30px; height: 30px; }
.bubble:hover, .bubble:focus-visible { background: #178046; }

/* ---------- Efectos ----------
   Las piezas blancas se elevan al pasar el mouse; la portada entra en secuencia al cargar y el
   resto aparece suavemente al bajar (lo activa app.js; sin JavaScript se ve todo, sin efecto). */
.area, .tile, .channels li, .service, .facts li { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, opacity 0.8s ease; }
.area:hover, .models a:hover .tile, .models a:focus-visible .tile, .channels li:hover, .service:hover, .facts li:hover {
  transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 31, 46, 0.06), 0 22px 44px rgba(11, 31, 46, 0.13);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .heroGrid > div > *, .pageHead .wrap > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .heroGrid > div > :nth-child(2), .pageHead .wrap > :nth-child(2) { animation-delay: 0.08s; }
  .hero .heroGrid > div > :nth-child(3), .pageHead .wrap > :nth-child(3) { animation-delay: 0.16s; }
  .hero .heroGrid > div > :nth-child(4), .pageHead .wrap > :nth-child(4) { animation-delay: 0.24s; }
  .hero .heroGrid > div > :nth-child(5) { animation-delay: 0.32s; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.in.area:hover, .reveal.in.service:hover, .reveal.in.facts li:hover { transform: translateY(-4px); }
  .reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; } .reveal.d4 { transition-delay: 0.4s; }
  .reveal.in.d1:hover, .reveal.in.d2:hover, .reveal.in.d3:hover, .reveal.in.d4:hover { transition-delay: 0s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Pagina 404 */
.notFound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; background: var(--mist); }
.notFound img { height: 96px; width: auto; margin: 0 auto 28px; }
.notFound h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 3rem); text-transform: uppercase; }
.notFound p { margin: 0 0 24px; color: var(--muted); }

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