:root {
  --ink: #101010;
  --paper: #f3f4f1;
  --white: #ffffff;
  --yellow: #f6ce31;
  --muted: #5c645c;
  --line: #d9dcd4;
  --whatsapp: #128c3e;
  --ancho: 1120px;
  --barra: 6rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  z-index: 20;
}

.saltar:focus { top: 1rem; }

.ancho {
  width: min(var(--ancho), calc(100% - 2rem));
  margin-inline: auto;
}

.barra {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--barra);
  padding: 0.7rem 1.25rem;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.45s var(--ease-out);
}

.barra.barra-scroll {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.marca img { height: 76px; width: auto; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.menu a {
  text-decoration: none;
  font-size: 1.02rem;
  transition: color 0.25s var(--ease-out);
}

.menu a:hover { color: var(--yellow); }

.barra-tel {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--yellow);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--barra));
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-fotos {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fotos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--a, center center);
  opacity: 0;
  transition: opacity 1.15s var(--ease-out);
}

.hero-fotos img.activa { opacity: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.05) 0%, rgba(16, 16, 16, 0) 28%, rgba(16, 16, 16, 0.82) 62%, rgba(16, 16, 16, 0.94) 100%);
}

.hero-texto {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(40rem, 100%);
  padding: 1.25rem 1.15rem 5.25rem;
}

.hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.35rem;
  margin-top: 0.9rem;
  background: var(--yellow);
}

.nota-viva {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  transition: opacity 0.35s var(--ease-out);
}

.nota-viva.cambia { opacity: 0; }

.nota-viva strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.nota-viva span {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: #eceee8;
}

.puntos {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.punto {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.45s var(--ease-out), background 0.35s var(--ease-out);
}

.punto.activa {
  width: 1.5rem;
  background: var(--yellow);
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  color: #16140a;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.12s ease-out, background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.boton:active { transform: scale(0.97); }

.boton:hover { background: #ffe56a; }

.boton-linea {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--yellow);
}

.boton-linea:hover { background: var(--yellow); color: #16140a; }

.seccion { padding: 3.5rem 0 1rem; }

.seccion h2 {
  margin: 0 0 0.6rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.entrada {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
}

.rubro {
  margin: 2.2rem 0 0.9rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
}

.rubro::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 0.28rem;
  margin-bottom: 0.45rem;
  background: var(--yellow);
}

.rejilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.25rem;
}

.marco {
  overflow: hidden;
  background: #1c1c1c;
}

.equipo img,
.nosotros .marco img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1c1c1c;
  transition: transform 0.8s var(--ease-out);
}

.equipo:hover img,
.galeria button:hover img {
  transform: scale(1.045);
}

.equipo h4 {
  margin: 0.7rem 0 0.25rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.05;
}

.equipo p {
  margin: 0 0 0.85rem;
  max-width: 36rem;
}

.nosotros {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.nosotros p { margin: 0 0 1rem; max-width: 42rem; }

.nosotros img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.galeria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.galeria button {
  display: block;
  padding: 0;
  border: 0;
  background: #1c1c1c;
  cursor: zoom-in;
  overflow: hidden;
}

.galeria img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.videos {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.videos figure { margin: 0; }

.videos video {
  width: 100%;
  max-height: 70vh;
  background: #111;
  object-fit: contain;
}

.videos figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
}

#contacto { padding-bottom: 4rem; }

.contacto-caja {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.fichas { display: grid; gap: 0.65rem; }

.ficha {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out), border-color 0.35s var(--ease-out);
}

.ficha:hover { border-color: var(--yellow); }

html.motion .ficha.visto:hover { transform: translateY(-3px); }

.icono {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: transparent;
  transition: transform 0.45s var(--ease-out);
}

html.motion .ficha .icono { transform: scale(0.9); }
html.motion .ficha.visto .icono { transform: none; }
html.motion .ficha.visto:hover .icono { transform: scale(1.06); }

.icono svg { width: 2.5rem; height: 2.5rem; display: block; }

.ficha strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.ficha strong + span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.35;
}

.mapa {
  min-height: 24rem;
  background: #e6e7e2;
  overflow: hidden;
}

#mapa {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  background: #e6e7e2;
}

.marca-mapa {
  background: none;
  border: 0;
}

.marca-mapa img {
  width: 132px;
  height: 46px;
  object-fit: contain;
  background: #101010;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.pie {
  background: var(--ink);
  color: #d7d9d3;
  padding: 2rem 0 5.5rem;
  margin-top: 2.5rem;
}

.pie-caja {
  display: grid;
  gap: 1.1rem;
}

.pie p { margin: 0; }

.pie-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.pie-nav a {
  color: #fff;
  text-decoration: none;
}

.pie-nav a:hover { color: var(--yellow); }

.pie-cierre {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.firma { color: var(--yellow); }

.legal h1 {
  margin: 0 0 0.55rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 1.7rem 0 0.4rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
}

.legal p,
.legal li { max-width: 40rem; }

.legal ul {
  margin: 0.2rem 0 1rem;
  padding-left: 1.15rem;
}

.legal a { text-underline-offset: 0.16em; }

.volver {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.volver:hover { color: var(--ink); }

.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.flotante {
  transition: transform 0.35s var(--ease-out), background 0.25s var(--ease-out);
}

.flotante:hover { background: #0e7534; transform: scale(1.06); }

.flotante:active { transform: scale(0.94); }

#visor {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  width: fit-content;
  height: fit-content;
  max-width: none;
  max-height: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-drawer);
}

#visor.abierto {
  opacity: 1;
  transform: none;
}

#visor::backdrop {
  background: rgba(10, 10, 10, 0);
  transition: background 0.35s var(--ease-out);
}

#visor.abierto::backdrop { background: rgba(10, 10, 10, 0.78); }

#visor img {
  max-width: 92vw;
  max-height: 86vh;
  margin: 0 auto;
}

.cerrar {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 719px) {
  :root { --barra: 7.5rem; }
  html { scroll-padding-top: 7.6rem; }

  .barra {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo tel"
      "menu menu";
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.5rem 0.9rem 0.65rem;
  }

  .marca { grid-area: logo; margin-right: 0; min-width: 0; }
  .marca img { height: 52px; }

  .barra-tel {
    grid-area: tel;
    justify-self: end;
    font-size: 1.45rem;
    line-height: 1;
    white-space: nowrap;
  }

  .menu {
    grid-area: menu;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
  }

  .menu a { font-size: 1.05rem; line-height: 1.2; }

  .hero-texto { padding: 1.1rem 1rem 5.6rem; }

  .acciones {
    flex-direction: column;
    align-items: stretch;
    max-width: 17.5rem;
  }

  .nota-viva span { font-size: 1.05rem; }
}

@media (min-width: 720px) {
  .rejilla { grid-template-columns: 1fr 1fr; }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .videos { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(16, 16, 16, 0.86) 0%, rgba(16, 16, 16, 0.5) 28%, rgba(16, 16, 16, 0.08) 52%, rgba(16, 16, 16, 0) 70%);
  }

  .hero-texto {
    width: min(36rem, 54%);
    padding: 2.5rem 2rem 3.25rem 3rem;
  }

  .contacto-caja {
    grid-template-columns: minmax(280px, 22rem) 1fr;
    align-items: stretch;
  }

  .nosotros {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .galeria { grid-template-columns: repeat(4, 1fr); }
}

html.motion .revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}

html.motion .revelar.visto {
  opacity: 1;
  transform: none;
}

html.motion .hero h1,
html.motion .hero .acciones {
  animation: llegar 0.9s var(--ease-out) both;
}

html.motion .hero .acciones { animation-delay: 0.12s; }

html.motion .hero-fotos img.activa {
  animation: paseo 18s ease-in-out infinite alternate;
}

@keyframes paseo {
  from { object-position: var(--a, center center); }
  to { object-position: var(--b, center center); }
}

html.motion .hero h1::after {
  transform-origin: left center;
  animation: trazo 0.8s var(--ease-out) 0.28s both;
}

@keyframes llegar {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes trazo {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.cerrar {
  transition: transform 0.12s ease-out, background 0.25s var(--ease-out);
}

.cerrar:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton:active,
  .flotante:hover,
  .flotante:active,
  .equipo:hover img,
  .galeria button:hover img,
  .cerrar:active,
  .ficha.visto:hover,
  .ficha.visto:hover .icono { transform: none; }
  #visor {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-fotos img { transition: none; animation: none; }
}
