/* Portada de las demos de agentes (agentes.waaylabs.com): el mismo lenguaje que la portada de la demo de hoteles
   (franja oscura, tarjetas montadas sobre su borde). Hoja propia: estilo.css es el de la web y su base lo pisaría. */
@font-face {
  font-family: "Libre Caslon Display";
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fuentes/libre-caslon-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fuentes/dmsans.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fuentes/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fuentes/inter-600.woff2") format("woff2");
}

:root {
  --obs: #080b0b;
  --obs-2: #141a19;
  --marfil: #e8e4da;
  --jade: #006b5b;
  --piedra: #686f6a;
  --verde: #22f7a6;
  --fondo: #f6f4ef;
  --borde: #e4e0d6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--obs);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.caja {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Franja de arriba. */
.portada {
  background: var(--obs);
  color: var(--marfil);
  padding: 1.5rem 0 9.5rem;
  position: relative;
  overflow: hidden;
}
.portada::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 247, 166, 0.35), transparent);
}
.marca {
  display: block;
  width: fit-content;
}
.marca img {
  height: 1.05rem;
  width: auto;
  display: block;
}
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 3.5rem 0 1.25rem;
  font: 500 0.78rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 228, 218, 0.7);
}
.etiqueta::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 4px rgba(34, 247, 166, 0.15);
}
.portada h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 15ch;
}
.sub {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(232, 228, 218, 0.78);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}
.hechos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hechos li {
  font: 500 0.8rem/1 "Inter", system-ui, sans-serif;
  color: var(--marfil);
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(232, 228, 218, 0.18);
  border-radius: 999px;
}

/* Dos vistas en la misma página: los modelos y, con #turismo en la URL, sus nichos. Sin JavaScript: :target muestra
   la segunda y esconde la primera (va antes en el HTML para que el selector de hermanos llegue a los modelos). */
.vista {
  margin-top: -7.5rem;
  position: relative;
}
#turismo,
#salud {
  display: none;
}
#turismo:target,
#salud:target {
  display: block;
}
#turismo:target ~ #modelos,
#salud:target ~ #modelos {
  display: none;
}
.vista-cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  color: var(--marfil);
}
.vista-cabeza h2 {
  margin: 0;
  font: 600 0.78rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.volver {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--marfil);
  font: 500 0.85rem/1 "Inter", system-ui, sans-serif;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 228, 218, 0.25);
  white-space: nowrap;
}
.volver:hover {
  background: rgba(232, 228, 218, 0.1);
}
.volver svg {
  width: 1rem;
  height: 1rem;
}

/* Tarjetas */
.lista {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tarjeta {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(8, 11, 11, 0.04), 0 12px 32px -12px rgba(8, 11, 11, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.tarjeta:hover,
.tarjeta:has(.acciones a:hover) {
  transform: translateY(-4px);
  border-color: rgba(0, 107, 91, 0.45);
  box-shadow: 0 1px 2px rgba(8, 11, 11, 0.04), 0 22px 44px -16px rgba(0, 107, 91, 0.35);
}
a.tarjeta:focus-visible,
.acciones a:focus-visible,
.volver:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}
.tarjeta.pronto {
  background: #fbfaf7;
  box-shadow: none;
}
.cuerpo {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.cabeza {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.icono {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e3f1ed;
  color: var(--jade);
}
.pronto .icono {
  background: var(--fondo);
  color: var(--piedra);
}
.icono svg {
  width: 1.4rem;
  height: 1.4rem;
}
.negocio {
  font: 500 0.78rem/1.2 "Inter", system-ui, sans-serif;
  color: var(--piedra);
}
.cuerpo h3 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.05;
  margin: 0.1rem 0 0;
}
.cuerpo p {
  margin: 0;
  line-height: 1.55;
  color: #2b3130;
}
.pronto .cuerpo p {
  color: var(--piedra);
}
.insignia {
  align-self: flex-start;
  font: 600 0.68rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--piedra);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed var(--borde);
}
.nichos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
}
.nichos li {
  font: 500 0.78rem/1 "Inter", system-ui, sans-serif;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: var(--fondo);
  border: 1px solid var(--borde);
}
.entrar,
.acciones {
  margin-top: auto;
  padding-top: 0.9rem;
}
.entrar span,
.acciones a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--obs);
  color: var(--marfil);
  font: 600 0.92rem/1 "Inter", system-ui, sans-serif;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.acciones {
  display: grid;
  gap: 0.5rem;
}
.acciones a.secundario {
  background: transparent;
  color: var(--obs);
  border: 1px solid var(--borde);
}
.entrar svg,
.acciones svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  transition: transform 0.25s ease;
}
a.tarjeta:hover .entrar span,
.acciones a:hover {
  background: var(--jade);
  color: var(--marfil);
}
a.tarjeta:hover .entrar svg,
.acciones a:hover svg {
  transform: translateX(4px);
}
.nota {
  font-size: 0.85rem;
  color: var(--piedra);
}
.nota a {
  color: var(--jade);
  font-weight: 500;
}

.pie {
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  color: var(--piedra);
  font-size: 0.95rem;
}
.pie a {
  color: var(--jade);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 107, 91, 0.35);
}
.pie a:hover {
  border-bottom-color: var(--jade);
}

@media (min-width: 52rem) {
  .lista {
    grid-template-columns: repeat(3, 1fr);
  }
  .portada {
    padding-top: 2rem;
  }
  .etiqueta {
    margin-top: 4.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  a.tarjeta:hover,
  .tarjeta:has(.acciones a:hover) {
    transform: none;
  }
}
