/* Estilos de la web de Uñas Mar Martínez. Los colores son los oficiales de la
   marca, los mismos que el @theme de la agenda (app/globals.css del
   repositorio app-clinica-estetica): no los cambies. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fuentes/inter-latin.woff2") format("woff2");
}

:root {
  --pagina: #f8f4f1;
  --tarjeta: #ffffff;
  --borde-tarjeta: #e4e0de;
  --tinta: #1a1512;
  --tinta-secundaria: #76706c;
  --tinta-suave: #857f7a;
  --miga: #826b67;
  --pastilla: #f4ede8;
  --arena-borde: #a89984;
  --acento: #604825;
  --acento-hover: #4f3815;
  --resumen: #f5efe7;
  --resumen-borde: #ddd6cd;
  --resumen-etiqueta: #5f5343;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--pagina);
  color: var(--tinta);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* La página entera: recorta la mano de fondo para que nunca haya scroll lateral. */
.pagina {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.contenedor {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Cabecera ---------- */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.cabecera-logo img {
  height: 28px;
  width: auto;
}

.volver {
  border-radius: 9999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tinta-secundaria);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.volver:hover {
  background: var(--pastilla);
  color: var(--tinta);
}

/* ---------- Portada ---------- */

.portada {
  position: relative;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* La mano del logotipo, grande y muy tenue, como en las pantallas de acceso de la agenda. */
.mano {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 96px;
  right: -160px;
  height: 400px;
  width: auto;
  max-width: none;
  opacity: 0.07;
}

.antetitulo {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--miga);
}

.portada h1 {
  margin: 24px 0 0;
}

.logo-grande {
  height: 118px;
  width: auto;
}

.entradilla {
  margin: 32px 0 0;
  max-width: 36rem;
  font-size: 17px;
  line-height: 1.625;
  color: var(--tinta-secundaria);
}

.botones {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.boton svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.boton-principal {
  background: var(--acento);
  color: #ffffff;
  box-shadow: 0 6px 20px -8px rgba(96, 72, 37, 0.6);
}

.boton-principal:hover {
  background: var(--acento-hover);
}

.boton-secundario {
  border: 1px solid var(--arena-borde);
  background: var(--tarjeta);
  color: var(--acento);
}

.boton-secundario:hover {
  background: var(--resumen);
}

/* ---------- Secciones ---------- */

.etiqueta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--miga);
}

.servicios {
  border-top: 1px solid var(--resumen-borde);
  border-bottom: 1px solid var(--resumen-borde);
  background: var(--resumen);
}

.servicios .contenedor,
.visita {
  padding-top: 64px;
  padding-bottom: 64px;
}

.servicios .etiqueta {
  color: var(--resumen-etiqueta);
}

.rejilla {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.tarjeta {
  border: 1px solid var(--borde-tarjeta);
  border-radius: 24px;
  background: var(--tarjeta);
  padding: 28px;
}

.servicio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.servicio img {
  height: 56px;
  width: auto;
  flex: none;
}

.servicio h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.servicio p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.625;
  color: var(--tinta-secundaria);
}

/* La etiqueta «Especialidad» encima del nombre del servicio. */
.servicio .distintivo {
  display: inline-block;
  margin: 0 0 8px;
  border-radius: 9999px;
  background: var(--pastilla);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--acento);
}

.visita h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta-secundaria);
}

.dato {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.375;
}

.enlace {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--acento);
  text-decoration: none;
}

.enlace:hover {
  text-decoration: underline;
}

.horario {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.horario dt {
  font-size: 14px;
  color: var(--tinta-secundaria);
}

.horario dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.telefono-grande {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tinta);
  text-decoration: none;
}

.telefono-grande:hover {
  color: var(--acento);
}

.nota {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.625;
  color: var(--tinta-secundaria);
}

/* ---------- Páginas de texto (privacidad, aviso legal) ---------- */

.documento {
  max-width: 42rem;
  padding-top: 24px;
  padding-bottom: 80px;
}

/* El antetítulo es un <p>: sin esto le ganaría la regla de los párrafos de abajo. */
.documento .antetitulo {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--miga);
}

.documento h1 {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.documento .fecha {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--tinta-suave);
}

.documento h2 {
  margin: 36px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.documento p,
.documento ul,
.documento dl {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.625;
  color: var(--tinta-secundaria);
}

.documento ul {
  padding-left: 20px;
}

.documento li + li {
  margin-top: 6px;
}

.documento dt {
  margin-top: 10px;
  font-weight: 600;
  color: var(--tinta);
}

.documento dd {
  margin: 0;
}

.documento strong {
  color: var(--tinta);
}

.documento a {
  font-weight: 600;
  color: var(--acento);
  text-decoration: none;
}

.documento a:hover {
  text-decoration: underline;
}

/* ---------- Pie ---------- */

.pie {
  margin-top: auto;
  border-top: 1px solid var(--borde-tarjeta);
}

.pie .contenedor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--tinta-secundaria);
}

.pie p {
  margin: 0;
}

.pie strong {
  color: var(--tinta);
}

.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

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

.pie a:hover {
  color: var(--tinta);
  text-decoration: underline;
}

/* ---------- Página no encontrada ---------- */

.no-encontrada {
  flex: 1;
  display: grid;
  place-items: center;
  padding-top: 48px;
  padding-bottom: 96px;
  text-align: center;
}

.no-encontrada h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.no-encontrada p {
  margin: 8px 0 0;
  color: var(--tinta-secundaria);
}

/* ---------- Pantallas grandes ---------- */

@media (min-width: 640px) {
  .botones {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .contenedor {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cabecera-logo img {
    height: 32px;
  }

  .portada {
    padding-top: 64px;
    padding-bottom: 112px;
  }

  .mano {
    top: -24px;
    right: -40px;
    height: 600px;
    opacity: 0.08;
  }

  .logo-grande {
    height: 168px;
  }

  .entradilla {
    font-size: 19px;
  }

  .servicios .contenedor,
  .visita {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .rejilla-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .rejilla-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pie .contenedor {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
