/*
 * Base de los recursos HTML (metodor3.es/recursos/<id>): fuentes de la web servidas
 * desde metodor3.es (sin Google) y la barra superior para volver a los recursos.
 * Colores copiados de los tokens de src/app/globals.css (grafito, crema, naranja).
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fuentes/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fuentes/manrope-latin.woff2") format("woff2");
}
.r3-barra {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #1e1e1e; /* grafito */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.r3-barra a {
  color: #f5e8df; /* crema */
  text-decoration: none;
}
.r3-barra .r3-marca {
  color: #e06830; /* naranja */
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

/*
 * Vista previa («úsalo y llévatelo»): franja, resultado difuminado y formulario.
 * Colores de los tokens: grafito #1e1e1e, pizarra #2a2a2a, carbon #0f0f0f,
 * crema #f5e8df, gris-claro #c0c0c0, gris #9a9a9a, naranja #e06830, verde #1b9c85.
 */
.r3-franja {
  padding: 10px 16px;
  background: #e06830; /* naranja */
  color: #0f0f0f; /* carbon */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
[data-r3-vista-previa] [data-r3-resultado] {
  position: relative;
  min-height: 280px;
}
[data-r3-vista-previa] [data-r3-resultado] > :not(.r3-cubierta) {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.r3-cubierta {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 8px;
}
.r3-aviso {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-top: 4px solid #e06830; /* naranja */
  border-radius: 2px;
  background: #1e1e1e; /* grafito */
  color: #f5e8df; /* crema */
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 12px 40px rgba(15, 15, 15, 0.45);
}
.r3-aviso svg {
  color: #e06830; /* naranja */
}
.r3-aviso strong {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.r3-aviso p {
  margin: 0;
  color: #c0c0c0; /* gris-claro */
  font-size: 14px;
  line-height: 1.5;
}
.r3-boton,
.r3-boton:disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 4px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: #e06830; /* naranja */
  color: #0f0f0f; /* carbon */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.r3-boton:disabled {
  opacity: 0.6;
  cursor: wait;
}
.r3-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 15, 15, 0.8); /* carbon */
}
.r3-modal[hidden] {
  display: none;
}
.r3-caja {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 24px 20px;
  border-top: 4px solid #e06830; /* naranja */
  border-radius: 4px 4px 0 0;
  background: #1e1e1e; /* grafito */
  color: #f5e8df; /* crema */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
}
@media (min-width: 640px) {
  .r3-modal {
    align-items: center;
    padding: 16px;
  }
  .r3-caja {
    border-radius: 2px;
  }
}
.r3-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c0c0c0; /* gris-claro */
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.r3-paso[hidden] {
  display: none;
}
.r3-paso {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.r3-paso h2 {
  margin: 0;
  padding-right: 32px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f5e8df; /* crema */
}
.r3-texto {
  margin: 0;
  color: #c0c0c0; /* gris-claro */
  font-size: 15px;
  line-height: 1.5;
}
#r3-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 0;
}
.r3-etiqueta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #c0c0c0; /* gris-claro */
  font-size: 13px;
  font-weight: 600;
}
.r3-etiqueta input,
.r3-etiqueta select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: #0f0f0f; /* carbon */
  color: #f5e8df; /* crema */
  font-family: inherit;
  font-size: 16px;
}
.r3-fila {
  display: flex;
  gap: 8px;
}
.r3-fila select {
  flex: 0 0 104px;
  width: 104px;
  padding: 0 8px;
}
.r3-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.r3-casilla {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c0c0c0; /* gris-claro */
  font-size: 14px;
  line-height: 1.45;
}
.r3-casilla input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #1b9c85; /* verde */
}
.r3-casilla a {
  color: #1b9c85; /* verde */
}
.r3-error {
  margin: 0;
  color: #e06830; /* naranja */
  font-size: 14px;
  line-height: 1.5;
}
.r3-error[hidden] {
  display: none;
}
.r3-pie {
  margin: 0;
  color: #9a9a9a; /* gris */
  font-size: 12px;
  line-height: 1.5;
}
.r3-comunidad {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 1px solid #1b9c85; /* verde */
  border-radius: 2px;
  color: #1b9c85; /* verde */
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
