:root { color-scheme: dark; --fondo: #142c3d; --texto: #fffaf1; --suave: #ccd8dc; --detalle: #f2c56f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 1rem/1.5 Inter, system-ui, sans-serif; }
.apertura { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,1fr); grid-template-rows: auto 1fr; min-height: 100svh; }
header, section { grid-column: 1; margin-inline: clamp(1.5rem,5.4vw,6.5rem); min-width: 0; }
header { grid-row: 1; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.4rem; border-bottom: 1px solid #49606b; }
.comercio { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; min-width: 0; font-weight: 650; font-size: clamp(1.05rem,1.55vw,1.4rem); overflow-wrap: anywhere; }
.comercio img { max-width: min(6rem,100%); max-height: 3.2rem; object-fit: contain; background: #fff; padding: .3rem; border-radius: .25rem; }
.comercio .marca-completa { display: block; width: min(17rem,100%); max-width: none; height: auto; max-height: none; padding: 0; border-radius: 0; }
header:has(.marca-completa) { background: white; margin: 0; padding: 1.1rem clamp(1.5rem,5.4vw,6.5rem); border-bottom: 0; }
header:has(.marca-completa) .plataforma { background: var(--fondo); padding: .55rem .8rem; border-radius: .5rem; }
.plataforma { flex: none; display: grid; justify-items: start; gap: .2rem; color: var(--suave); font-size: .75rem; }
.plataforma img { width: clamp(6.6rem,10vw,9.4rem); height: auto; display: block; }
section { grid-row: 2; align-self: center; padding-block: clamp(2.7rem,6vh,6rem); }
h1 { margin: 0; font: 620 clamp(3.3rem,5.9vw,6.8rem)/.99 Inter,system-ui,sans-serif; letter-spacing: -.065em; }
h1 em { display: inline-block; margin-top: .06em; color: var(--detalle); font: italic 1.09em/1 Georgia,serif; letter-spacing: -.065em; }
p { color: var(--suave); max-width: 37ch; margin: 1.75rem 0 1.65rem; font-size: clamp(1rem,1.32vw,1.18rem); line-height: 1.6; overflow-wrap: anywhere; }
.acciones { display: flex; gap: .7rem; flex-wrap: wrap; }
.acciones > * { display: inline-flex; gap: .65rem; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.2rem; font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: .5rem; background: var(--detalle); color: #192e38; cursor: pointer; text-decoration: none; }
.acciones a + button { background: transparent; border-color: #879ba3; color: var(--texto); }
.acciones > :hover { background: #ffe1a6; color: #192e38; }
.acciones > :focus-visible { outline: 3px solid white; outline-offset: 4px; }
[hidden] { display: none !important; }
.icono { width: 1.15rem; height: 1.15rem; background: currentColor; mask: var(--icono) center / contain no-repeat; }
.enlace { --icono: url(link-45deg.svg); }
.whatsapp { --icono: url(whatsapp.svg); }
.dominio, .resultado { display: block; margin-top: .55rem; color: var(--suave); font-size: .89rem; overflow-wrap: anywhere; }
.resultado:empty { display: none; }
.foto { grid-column: 2; grid-row: 1/3; position: relative; min-height: 0; background: #c99e67; }
.foto img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 760px), (max-aspect-ratio: 6/5) {
  .apertura { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto 1fr; }
  header { padding-block: 1.05rem; font-size: 1.08rem; }
  section { padding-block: 2rem; }
  h1 { font-size: clamp(3.1rem,10.4vw,4.4rem); }
  p { margin-block: 1.25rem; }
  .foto { grid-column: 1; grid-row: 3; min-height: 55vw; max-height: 125vw; }
  .foto img { object-position: 50% 61%; }
}
@media (max-width: 600px) {
  header:has(.marca-completa) { display: contents; }
  header:has(.marca-completa) .comercio { grid-area: 1 / 1; justify-content: center; background: white; padding: .65rem 1rem; }
  header:has(.marca-completa) .plataforma { grid-area: 3 / 1; align-self: end; justify-self: end; margin: 1rem; z-index: 1; }
}
