.pagina {
  flex: 1;
  color: #3a4452;
  font-family: Inter, system-ui, sans-serif;
}

.pagina h1,
.pagina h2,
.pagina h3 {
  font-family: Fraunces, Georgia, serif;
  color: #1b2a3a;
}

.ancho {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero {
  background: rgba(246, 239, 233, 0.6);
  border-bottom: 1px solid #e4dcd3;
  padding: 1rem 0 1.15rem;
}

.hero-interior { display: grid; gap: 0.85rem; }
.hero-texto { max-width: 70ch; display: grid; gap: 0.35rem; }
.hero h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-texto > .bajada {
  margin: 0;
  max-width: 70ch;
  font-size: 0.875rem;
  line-height: 1.45;
}
.intro-categoria {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: #3a4452;
  font-size: 1rem;
  line-height: 1.55;
}

.chapa {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  background: #fbf8f4;
  border: 1px solid #e4dcd3;
  color: #b4532a;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.busqueda {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: white;
  border: 1px solid #e4dcd3;
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
}
.campo { display: flex; flex-direction: column; gap: 6px; }
.busqueda .campo-pais { flex: 1 1 16rem; max-width: 22rem; }
.busqueda .campo-buscar { flex: 1 1 10rem; max-width: 22rem; min-width: 0; }
.busqueda .boton { flex: 0 0 auto; }
.campo span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a4452;
  line-height: 1;
}
.campo input,
.campo select,
.orden select {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(228, 220, 211, 0.7);
  background: rgba(246, 239, 233, 0.4);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  color: #1b2a3a;
  font-size: 0.875rem;
  font-weight: 500;
}
.busqueda .boton { min-height: 2.75rem; }

.boton, .boton-secundario, .boton-claro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
}
.boton { background: #b4532a; color: white; }
.boton:hover { background: #984320; }
.boton-secundario { background: #1b2a3a; color: white; }
.boton-claro { background: #f6efe9; color: #1b2a3a; border: 1px solid #e4dcd3; }

.contenido { padding: 2.5rem 0; }
.pestanas {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e4dcd3;
}
.pestanas a {
  flex: 0 0 auto;
  text-decoration: none;
  background: #f6efe9;
  color: #1b2a3a;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.pestanas a[aria-current="true"] { background: #1b2a3a; color: white; }

.layout { display: grid; gap: 2rem; align-items: start; }
.panel, .tarjeta, .vacio, .ficha, .paso, .barra-resultados {
  background: white;
  border: 1px solid #e4dcd3;
  border-radius: 16px;
}
.panel { padding: 1.25rem; display: grid; gap: 1.5rem; }
.panel h2, .lateral h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.opcion {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
  color: #1b2a3a;
  font-size: 0.75rem;
  cursor: pointer;
}
.categorias { display: grid; gap: 0.35rem; }
.categorias a { color: #1b2a3a; text-decoration: none; font-size: 0.875rem; line-height: 1.4; }
.categorias a[aria-current="true"] { color: #b4532a; font-weight: 700; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.25rem 0 0; }
.etiquetas span {
  font-size: 0.75rem;
  line-height: 1.3;
  background: #f6efe9;
  color: #3a4452;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.nota {
  background: rgba(246, 239, 233, 0.6);
  border: 1px solid #e4dcd3;
  border-radius: 10px;
  padding: 0.875rem;
  font-size: 0.75rem;
}
.nota p { margin: 0.35rem 0 0; font-size: 11px; line-height: 1.5; }
.limpiar { width: 100%; }

.barra-resultados {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.barra-resultados p { margin: 0; font-size: 0.75rem; color: #3a4452; }
.barra-resultados strong { color: #1b2a3a; }
.orden { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.orden label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #3a4452; font-weight: 500; }
.orden select { width: auto; min-height: 2rem; font-size: 0.75rem; padding: 0.35rem 0.6rem; }

.resultados-col { min-width: 0; }
.rejilla { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
.tarjeta {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 1rem;
  min-width: 0;
  height: 100%;
}
.tarjeta:hover { border-color: #b4532a; }
.tarjeta:focus-visible, .pagina a:focus-visible, .pagina button:focus-visible {
  outline: 3px solid #b4532a;
  outline-offset: 2px;
}
.tarjeta-top { display: flex; align-items: flex-start; gap: 0.75rem; min-width: 0; }
.retrato, .iniciales {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 999px;
  object-fit: cover;
  background: #b4532a;
}
.iniciales {
  display: grid;
  place-items: center;
  color: white;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.75rem;
}
.tarjeta-texto { min-width: 0; display: grid; gap: 0.15rem; }
.tarjeta h3 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.tarjeta h3 a { color: inherit; text-decoration: none; }
.tarjeta:hover h3 { color: #b4532a; }
.oficio, .lugar, .modo { font-size: 0.75rem; color: #3a4452; }
.oficio { font-weight: 600; }
.bio-tarjeta {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tarjeta-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(228, 220, 211, 0.6);
}
.precio { color: #b4532a; font-weight: 700; font-size: 0.875rem; }
.legal { max-width: 40rem; display: grid; gap: 0.75rem; }
.legal h1 { font-size: 2.25rem; }
.legal h2 { margin: 0.5rem 0 0; font-size: 1.25rem; }
.legal p { margin: 0; font-size: 1rem; line-height: 1.55; }
.vacio { text-align: center; padding: 4rem 2rem; }
.vacio h3, .vacio h1 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.vacio p { margin: 0 auto 1rem; max-width: 36rem; color: #3a4452; line-height: 1.5; }
.paginas { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.paginas a {
  text-decoration: none;
  border: 1px solid #e4dcd3;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: white;
  font-size: 0.75rem;
  font-weight: 600;
}
.paginas a[aria-current="page"] { background: #1b2a3a; color: white; }

.migas-barra { padding: 0.85rem 0 0; }
.migas-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.migas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.75rem;
  color: #3a4452;
}
.migas a { color: inherit; }
.migas a:hover { color: #b4532a; }
.migas strong { color: #1b2a3a; overflow-wrap: anywhere; }
.acciones { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.aviso { min-height: 1.2em; margin: 0.25rem auto 0; font-size: 0.75rem; color: #1b2a3a; }

.ficha-hero { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.ficha-caja {
  background: white;
  border: 1px solid #e4dcd3;
  border-radius: 16px;
  padding: 1.5rem;
}
.presentacion { display: flex; flex-direction: column; gap: 1.5rem; }
.identidad { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  background: #b4532a;
}
.ficha-caja h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.insignia-verificada,
.insignia {
  display: inline-flex;
  align-items: center;
  background: #dcebe8;
  color: #2f6f6b;
  border: 1px solid rgba(47, 111, 107, 0.2);
  border-radius: 999px;
  padding: 0.1rem 0.75rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}
.meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.35rem 0 0; font-size: 0.75rem; }
.contacto-caja {
  background: #fbf8f4;
  border: 1px solid #e4dcd3;
  border-radius: 10px;
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 11px;
}
.contacto-caja .boton { font-size: 0.875rem; font-weight: 700; min-height: 2.75rem; padding: 0.75rem 1.5rem; }
.contacto-caja p { margin: 0; }

.anclas {
  position: sticky;
  top: 5rem;
  background: #fbf8f4;
  border-bottom: 1px solid #e4dcd3;
  z-index: 30;
}
.anclas nav { display: flex; gap: 2rem; overflow-x: auto; padding: 0.75rem 0; }
.anclas a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: #3a4452;
  white-space: nowrap;
}
.anclas a:hover { color: #b4532a; }

.columnas { display: grid; gap: 2rem; align-items: start; }
.columna-principal { display: grid; gap: 2.5rem; min-width: 0; }
.ficha { padding: 1.5rem; display: grid; gap: 1rem; }
.ficha h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.ficha .bio { margin: 0; font-size: 1rem; line-height: 1.6; color: #1b2a3a; }
.datos-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4dcd3;
  font-size: 0.75rem;
}
.datos-extra p { margin: 0; }
.datos-extra span { color: #3a4452; }
.titulo-servicios { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.chapa-mini {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  color: #3a4452;
  background: #f6efe9;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.servicio { gap: 1.5rem; }
.servicio article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(246, 239, 233, 0.4);
  border: 1px solid #e4dcd3;
  border-radius: 10px;
  padding: 1rem;
}
.servicio h3 { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 1rem; font-weight: 700; }
.servicio article p { margin: 0.15rem 0 0; font-size: 0.75rem; color: #3a4452; }
.servicio .precio { text-align: right; font-size: 1rem; }
.servicio .precio span { display: block; font-size: 10px; font-weight: 500; color: #3a4452; }

.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.miniatura {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid #e4dcd3;
  border-radius: 10px;
  overflow: hidden;
  background: #f6efe9;
  cursor: pointer;
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.luz {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, 92vw);
}
.luz::backdrop { background: rgba(27, 42, 58, 0.72); }
.luz img { width: 100%; height: auto; border-radius: 16px; display: block; }
.luz form { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.luz button {
  background: #fbf8f4;
  color: #1b2a3a;
  border: 0;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.pasos { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.paso { padding: 1.25rem; }
.paso strong { display: block; color: #1b2a3a; }
.lateral { display: grid; gap: 1rem; }
.pagina .contenido h1 { font-size: 2rem; margin: 0 0 1rem; }

@media (min-width: 640px) {
  .ancho { padding-inline: 1.5rem; }
  .hero { padding: 1.15rem 0 1.25rem; }
  .hero h1 { font-size: 2.5rem; }
  .legal h1 { font-size: 2.5rem; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha-caja { padding: 2rem; }
  .ficha-caja h1 { font-size: 1.75rem; }
  .identidad { gap: 1.5rem; }
  .datos-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servicio article { flex-direction: row; justify-content: space-between; align-items: center; }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ficha { padding: 2rem; }
}

@media (min-width: 1024px) {
  .ancho { padding-inline: 2rem; }
  .ficha-caja h1 { font-size: 2rem; }
  .layout { grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); }
  .presentacion { flex-direction: row; align-items: center; justify-content: space-between; }
  .contacto-caja { width: 18rem; flex: 0 0 auto; text-align: right; }
  .columnas { grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr); }
}

@media (min-width: 1280px) {
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .migas-fila { flex-wrap: nowrap; }
}

@media (max-width: 520px) {
  .busqueda { flex-wrap: wrap; }
  .busqueda .campo-pais { flex: 1 1 auto; }
  .busqueda .campo-buscar { flex: 1 1 100%; max-width: none; }
}

@media (max-width: 639px) {
  .migas-fila { flex-wrap: nowrap; }
  .migas { flex: 1 1 auto; flex-basis: auto; flex-wrap: nowrap; overflow: hidden; }
  .migas strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acciones { width: auto; flex: 0 0 auto; }
  .acciones .boton-claro,
  .acciones .boton-secundario { padding: 0.35rem 0.45rem; }
  .anclas nav { gap: 1rem; }
  .barra-resultados { flex-wrap: nowrap; }
  .orden select { max-width: 8.5rem; }
}
