:root {
  --rojo: #ff1525;
  --blanco: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #17191c;
  color: var(--blanco);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

a:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

/* Una sola pantalla, sin desplazamiento. */

.escena {
  position: relative;
  isolation: isolate;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: hidden;
}

.fondo {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    #202326
    url("../images/fondo.webp")
    center / cover
    no-repeat;

  pointer-events: none;
}

/* Logo */

.marca {
  position: absolute;
  z-index: 5;

  left: 3.5%;
  top: 5%;
  width: 30%;
  height: 23%;
}

.marca img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Contactos */

.contactos {
  position: absolute;
  z-index: 6;

  right: 2%;
  top: 3%;
  width: 22%;
  height: 19%;

  display: grid;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.2dvh;
}

.contacto {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 0;
  gap: 1vw;
  padding: 0.8dvh 1.1vw;

  border-radius: 999px;

  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

/* Blanco transparente solo en WhatsApp. */

.whatsapp {
  color: #121820;
  background: rgba(255, 255, 255, 0.64);

  border: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 4px solid #49bc62;

  box-shadow: 0 4px 16px rgba(43, 154, 65, 0.2);
}

.whatsapp-icono {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: min(4.1vw, 7dvh);
  height: min(4.1vw, 7dvh);

  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;

  background: linear-gradient(145deg, #72d56d, #20b84e);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
}

.whatsapp-icono svg {
  width: 74%;
  height: 74%;

  fill: none;
  stroke: white;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacto-texto {
  min-width: 0;
}

.whatsapp small,
.whatsapp strong {
  display: block;
}

.whatsapp small {
  font-size: min(1.3vw, 2.5dvh);
  font-weight: 500;
  line-height: 1.1;
}

.whatsapp strong {
  margin-top: 0.4dvh;
  font-size: min(2.1vw, 4dvh);
  font-weight: 900;
  line-height: 1;
}

.ubicacion {
  color: white;
  background: rgba(15, 20, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.maps-icono {
  flex: 0 0 auto;
  width: min(2.8vw, 5.2dvh);
  height: min(2.8vw, 5.2dvh);
}

.ubicacion span {
  font-size: min(1.3vw, 2.5dvh);
  font-weight: 500;
  line-height: 1.2;
}

/* Lema */

.lema {
  position: absolute;
  z-index: 3;

  left: 3%;
  top: 30%;
  width: 39%;
  height: 27%;
  margin: 0;
}

.lema > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.lema-texto {
  font-size: min(4.5vw, 7.8dvh);
  font-style: italic;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 5px #000;
}

.lema-texto em {
  color: var(--rojo);
}

/* Vehículo */

.vehiculo {
  position: absolute;
  z-index: 2;

  left: 34%;
  top: 22%;
  width: 66%;
  height: 67%;

  margin: 0;
  pointer-events: none;
}

.vehiculo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;

  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.22));
}

/* Redes con bordes luminosos */

.redes {
  position: absolute;
  z-index: 5;

  left: 3%;
  top: 61%;
  width: 36%;
  height: 14%;
}

.redes h2 {
  display: flex;
  align-items: center;
  gap: 0.8vw;

  margin: 0 0 1.2dvh;

  font-size: min(2.3vw, 4.3dvh);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;

  text-shadow: 0 3px 5px #000;
}

.redes h2::before {
  content: "";
  width: 0.5vw;
  height: 3.5dvh;
  background: var(--rojo);
  transform: skew(-14deg);
}

.redes-lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1vw;

  height: 7.5dvh;
}

.red {
  --brillo: #168dff;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5vw;

  min-width: 0;
  height: 100%;
  padding: 0.6dvh 0.7vw;

  border: 1px solid var(--brillo);
  border-radius: 14px 4px 14px 4px;

  background: linear-gradient(140deg, #171c25, #050609 80%);

  box-shadow:
    inset 0 0 9px color-mix(in srgb, var(--brillo) 25%, transparent),
    0 0 9px color-mix(in srgb, var(--brillo) 65%, transparent);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.red::before,
.red::after {
  content: "";
  position: absolute;
  left: 18%;
  width: 64%;
  height: 2px;

  background: var(--brillo);
  box-shadow: 0 0 7px 1px var(--brillo);
}

.red::before {
  top: -1px;
}

.red::after {
  bottom: -1px;
}

.red > svg {
  flex: 0 0 auto;
  width: min(2.5vw, 4.8dvh);
  height: min(2.5vw, 4.8dvh);
  fill: white;
}

.red > span {
  font-size: min(1.15vw, 2.2dvh);
  font-style: italic;
  font-weight: 900;
  white-space: nowrap;
}

.facebook {
  --brillo: #168dff;
}

.instagram {
  --brillo: #ff45ce;
}

.instagram svg {
  padding: 3px;
  border-radius: 7px;

  background:
    radial-gradient(circle at 30% 105%, #ffdc80, #fcaf45 20%, transparent 50%),
    linear-gradient(145deg, #6439ed, #dc167c 65%, #f56040);

  fill: none;
  stroke: white;
  stroke-width: 2;
}

.instagram .punto {
  fill: white;
  stroke: none;
}

.instagram[aria-disabled="true"] {
  cursor: default;
}

.tiktok {
  --brillo: #ff174d;
}

.tiktok svg {
  filter:
    drop-shadow(-1px 0 #25f4ee)
    drop-shadow(1px 1px #fe2c55);
}

/* Seis imágenes originales de características */

.servicios {
  position: absolute;
  z-index: 7;

  left: 1.5%;
  bottom: 2.5%;
  width: 65%;
  height: 18%;
}

.servicios ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.5vw;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.servicios li {
  min-width: 0;
  min-height: 0;
}

.servicios img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;
}

/* Etiqueta e isotipo */

.etiqueta {
  position: absolute;
  z-index: 5;

  right: 7%;
  bottom: 13%;
  width: 15%;
  height: 8%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1.4vw;

  border: 1px solid #bf1420;
  border-left: 5px solid var(--rojo);
  border-radius: 5px;
  background: rgba(8, 10, 13, 0.92);

  transform: skew(-8deg);
}

.etiqueta span,
.etiqueta strong {
  transform: skew(8deg);
}

.etiqueta span {
  margin-bottom: 0.4dvh;
  color: var(--rojo);

  font-size: min(1.1vw, 2dvh);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.etiqueta strong {
  font-size: min(1.25vw, 2.5dvh);
  line-height: 1.1;
}

.isotipo {
  position: absolute;
  z-index: 5;

  right: 2%;
  bottom: 2%;
  width: 9%;
  height: 7%;

  object-fit: contain;
  object-position: right bottom;
}

@media (hover: hover) and (pointer: fine) {
  .red:not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 12px var(--brillo),
      0 0 13px var(--brillo);
  }

  .whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.83);
  }

  .ubicacion:hover {
    background-color: #252a32;
  }
}

/* Tablet y celular en vertical */

@media (max-aspect-ratio: 1/1) {
  .fondo {
    background-position: 56% center;
  }

  .marca {
    left: 4%;
    top: 3%;
    width: 45%;
    height: 15%;
  }

  .contactos {
    right: 3%;
    top: 3%;
    width: 45%;
    height: 14%;
    gap: 1dvh;
  }

  .contacto {
    gap: 1.5vw;
    padding: 0.5dvh 2vw;
  }

  .whatsapp-icono {
    width: min(9vw, 5dvh);
    height: min(9vw, 5dvh);
    border-width: 2px;
  }

  .whatsapp small {
    font-size: min(3vw, 1.8dvh);
  }

  .whatsapp strong {
    font-size: min(4.5vw, 2.6dvh);
  }

  .maps-icono {
    width: min(6vw, 3.5dvh);
    height: min(6vw, 3.5dvh);
  }

  .ubicacion span {
    font-size: min(2.8vw, 1.7dvh);
  }

  .lema {
    left: 4%;
    top: 20%;
    width: 82%;
    height: 18%;
  }

  .lema-texto {
    font-size: min(8vw, 4.5dvh);
  }

  .redes {
    left: 4%;
    top: 39%;
    width: 92%;
    height: 9%;
  }

  .redes h2 {
    gap: 2vw;
    margin-bottom: 0.8dvh;
    font-size: min(5vw, 2.8dvh);
  }

  .redes h2::before {
    width: 1vw;
    height: 2.3dvh;
  }

  .redes-lista {
    height: 4.5dvh;
    gap: 2vw;
  }

  .red {
    gap: 1vw;
    padding: 0.4dvh 1vw;
    border-radius: 9px 3px 9px 3px;
  }

  .red > svg {
    width: min(5vw, 3dvh);
    height: min(5vw, 3dvh);
  }

  .red > span {
    font-size: min(3vw, 1.7dvh);
  }

  .instagram svg {
    padding: 2px;
    border-radius: 5px;
  }

  .vehiculo {
    left: 1%;
    top: 49%;
    width: 98%;
    height: 26%;
  }

  .etiqueta {
    right: 5%;
    bottom: 22%;
    width: 34%;
    height: 4.5%;
    padding-left: 3vw;
    border-left-width: 4px;
  }

  .etiqueta span {
    font-size: min(2.5vw, 1.5dvh);
    margin-bottom: 0.2dvh;
  }

  .etiqueta strong {
    font-size: min(3vw, 1.8dvh);
  }

  .servicios {
    left: 4%;
    bottom: 2%;
    width: 82%;
    height: 19%;
  }

  .servicios ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.6dvh 1.5vw;
  }

  .servicios img {
    object-position: center;
  }

  .isotipo {
    right: 2%;
    bottom: 2%;
    width: 10%;
    height: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
/* SOMBRA LOCAL EN LAS CARACTERÍSTICAS */

.servicios ul {
  position: relative;
  isolation: isolate;
}

/* Oscurece suavemente solo detrás de los seis PNG. */
.servicios ul::before {
  content: "";
  position: absolute;
  inset: -8% -1%;
  z-index: -1;

  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.32) 55%,
    transparent 78%
  );

  pointer-events: none;
}

.servicios li {
  position: relative;
}

/* Separadores rojos inclinados. */
.servicios li:not(:last-child)::after {
  content: "";
  position: absolute;

  right: -0.25vw;
  top: 15%;
  width: 3px;
  height: 70%;

  background: linear-gradient(
    to bottom,
    transparent,
    #ff1425 20%,
    #ff1425 80%,
    transparent
  );

  transform: skew(-8deg);

  box-shadow: 0 0 5px rgba(255, 20, 37, 0.3);
  pointer-events: none;
}

/* Imágenes pulsables sin cuadros adicionales. */
.servicio-boton {
  display: block;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.5dvh 0.4vw;

  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  transition: transform 180ms ease;
}

.servicio-boton img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;

  filter:
    drop-shadow(0 5px 4px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));

  transition: filter 180ms ease;
}

.servicio-boton:focus-visible {
  outline: 2px solid #ff2535;
  outline-offset: -2px;
}

.servicio-boton:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .servicio-boton:hover {
    transform: translateY(-3px);
  }

  .servicio-boton:hover img {
    filter:
      drop-shadow(0 6px 5px rgba(0, 0, 0, 0.8))
      drop-shadow(0 0 7px rgba(255, 20, 37, 0.5));
  }
}

/* VENTANA MUY PRONTO */

.aviso-servicio {
  position: fixed;
  inset: 0;

  width: min(90vw, 470px);
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: clamp(24px, 5vw, 42px);

  overflow: auto;

  border: 1px solid rgba(255, 35, 52, 0.75);
  border-radius: 22px;

  background: linear-gradient(145deg, #20232b, #080a0e);
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;

  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(255, 20, 37, 0.18);
}

.aviso-servicio::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.aviso-cerrar {
  position: absolute;
  top: 8px;
  right: 8px;

  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;

  font-size: 30px;
  cursor: pointer;
}

.aviso-categoria {
  margin: 14px 0 17px;
  color: #ff5360;

  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aviso-servicio h2 {
  margin: 0;

  font-size: clamp(2rem, 8vw, 3rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1.05;

  text-shadow: 0 0 20px rgba(255, 20, 37, 0.3);
}

.aviso-lema {
  margin: 18px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

#aviso-descripcion {
  margin: 0;
  color: #c9cbd2;
  font-size: 0.95rem;
  line-height: 1.6;
}

#aviso-descripcion strong {
  display: block;
  margin-top: 8px;
  color: white;
}

.aviso-entendido {
  width: 100%;
  min-height: 46px;
  margin-top: 25px;
  padding: 12px 20px;

  border: 1px solid #ff4452;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2738, #bc0a19);
  color: white;

  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.aviso-servicio button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* Separadores para la distribución de 3 × 2 en celular. */
@media (max-aspect-ratio: 1/1) {
  .servicios li:not(:last-child)::after {
    right: -0.75vw;
    width: 2px;
  }

  .servicios li:nth-child(3)::after {
    display: none;
  }

  .servicio-boton {
    padding: 0.3dvh 1vw;
  }

  .servicio-boton img {
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .servicio-boton,
  .servicio-boton img {
    transition: none;
  }
}

/* Mensaje inspirado en tu referencia. */

.aviso-servicio {
  width: min(90vw, 360px);
  max-height: 92vh;
  max-height: 92dvh;

  padding: 24px 20px 22px;
  margin: auto;
  overflow: auto;

  border: 1.5px solid #ff2639;
  border-radius: 20px;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(153, 18, 29, 0.22),
      transparent 55%
    ),
    linear-gradient(145deg, #191919, #060606 75%);

  color: white;
  text-align: center;

  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.8),
    0 0 26px rgba(255, 20, 37, 0.25);
}

.aviso-servicio::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.aviso-cerrar {
  top: 4px;
  right: 4px;
  z-index: 2;

  width: 44px;
  height: 44px;

  color: white;
  font-size: 32px;
}

.aviso-imagen {
  position: relative;
  isolation: isolate;

  display: grid;
  place-items: center;

  height: min(23dvh, 170px);
  margin: 4px 0 12px;
}

.aviso-imagen::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  z-index: -1;

  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(255, 25, 40, 0.36),
    transparent 70%
  );

  filter: blur(10px);
}

.aviso-imagen img {
  width: 100%;
  height: 100%;
  min-height: 0;

  object-fit: contain;

  filter:
    drop-shadow(0 5px 6px #000)
    drop-shadow(0 0 9px rgba(255, 25, 40, 0.3));
}

.aviso-categoria {
  margin: 0 0 10px;

  color: #ff2639;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aviso-servicio h2 {
  margin: 0;

  font-size: clamp(2.5rem, 12vw, 3.7rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;

  color: #fff;
  text-shadow:
    0 3px 0 #787878,
    0 5px 8px #000,
    0 7px 18px rgba(255, 20, 37, 0.7);
}

.aviso-lema {
  margin: 20px 0 10px;

  font-size: clamp(1.1rem, 5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
}

#aviso-descripcion {
  margin: 0;

  color: #b8b8bd;
  font-size: 0.95rem;
  line-height: 1.45;
}

.aviso-entendido {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;

  border: 1px solid #ff5261;
  border-radius: 12px;

  background: linear-gradient(#ff1028, #c80013);
  color: white;

  font-size: 1.15rem;
  font-weight: 900;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 15px rgba(255, 15, 35, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .aviso-entendido:hover {
    background: linear-gradient(#ff394b, #e00018);
  }
}

/* Control discreto de música. */

.control-musica {
  position: fixed;
  z-index: 8;

  right: 2%;
  top: 24%;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  padding: 9px;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;

  background: rgba(10, 12, 16, 0.78);
  color: white;
  cursor: pointer;
}

.control-musica svg {
  width: 100%;
  height: 100%;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-musica.activa {
  border-color: #25d366;
}

.control-musica:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.control-musica:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-aspect-ratio: 1/1) {
  .control-musica {
    top: 18%;
    right: 3%;

    width: 34px;
    height: 34px;
    padding: 7px;
  }
}

/* Mensaje compacto para teléfonos en horizontal. */

@media (max-height: 500px) and (orientation: landscape) {
  .aviso-servicio {
    padding: 16px 22px;
  }

  .aviso-imagen {
    height: 19dvh;
    margin-bottom: 5px;
  }

  .aviso-categoria {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .aviso-servicio h2 {
    font-size: 2rem;
  }

  .aviso-lema {
    margin: 10px 0 7px;
    font-size: 1rem;
  }

  #aviso-descripcion {
    font-size: 0.8rem;
  }

  .aviso-entendido {
    min-height: 42px;
    margin-top: 10px;
    font-size: 1rem;
  }
}
/* Botón de música rojo y semitransparente. */
.control-musica {
  top: 24%;
  right: 2%;
  bottom: auto;

  width: 44px;
  height: 44px;
  padding: 11px;

  border: 1px solid rgba(255, 65, 80, 0.6);
  border-radius: 50%;

  background: rgba(150, 12, 28, 0.3);
  color: rgba(255, 255, 255, 0.9);

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.65),
    inset 0 0 8px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

/* Mantiene el rojo cuando la música está encendida. */
.control-musica.activa {
  border-color: rgba(255, 65, 80, 0.85);
  background: rgba(180, 15, 32, 0.4);
}

@media (hover: hover) and (pointer: fine) {
  .control-musica:hover {
    background: rgba(200, 20, 40, 0.65);
    border-color: #ff5261;
  }
}

@media (max-aspect-ratio: 1/1) {
  .control-musica {
    top: 18%;
    right: 3%;
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-musica {
    transition: none;
  }
}