@import url(
'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'
);

:root {

  --fondo: #faf7f2;
  --blanco: #ffffff;

  --texto: #1d1d1b;
  --gris: #77716b;

  --dorado: #b58b3c;
  --dorado-claro: #f2e8d3;

  --linea: #e7e0d8;

  --radio: 22px;
}


* {
  box-sizing: border-box;
}


html,
body {

  margin: 0;

  background: var(--fondo);

  font-family:
  "Poppins",
  sans-serif;

  color: var(--texto);

}


button {

  font-family: inherit;

  cursor: pointer;

}


.app {

  width: 100%;

  max-width: 520px;

  margin: auto;

  background: var(--blanco);

  min-height: 100dvh;

}


.pantalla {

  display: none;

  min-height: 100dvh;

  padding:

  max(
    24px,
    env(safe-area-inset-top)
  )

  20px

  max(
    30px,
    env(safe-area-inset-bottom)
  );

}


.pantalla.activa {

  display: flex;

  flex-direction: column;

}


.logo {
  display: flex;
  align-items: center;
  width: 100%;
}

.logo-img {
  display: block;
  width: 130px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}


.hero {

  margin-top: 65px;

}


.tag {

  color: var(--dorado);

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 2px;

}


h1 {

  font-size: clamp(
    32px,
    9vw,
    44px
  );

  line-height: 1.05;

  margin:

  12px

  0

  18px;

}


h2 {

  font-size: 30px;

  line-height: 1.1;

}


.hero p,
.descripcion {

  color: var(--gris);

  font-size: 14px;

  line-height: 1.7;

}


.info {

  margin-top: 35px;

  margin-bottom: auto;

}


.info div {

  display: flex;

  gap: 15px;

  padding: 15px 0;

  border-bottom:

  1px solid

  var(--linea);

}


.info span {

  color: var(--dorado);

  font-size: 11px;

  font-weight: 600;

}


.info p {

  margin: 0;

  font-size: 13px;

}


.boton {

  width: 100%;

  min-height: 54px;

  border-radius: 16px;

  border: none;

  font-size: 13px;

  font-weight: 600;

  margin-top: 15px;

}


.principal {

  background: var(--texto);

  color: white;

}


.secundario {

  border:

  1px solid

  var(--linea);

  background: white;

  color: var(--texto);

}


.aviso {

  display: block;

  text-align: center;

  color: var(--gris);

  font-size: 9px;

  line-height: 1.5;

  margin-top: 15px;

}


.barra {

  display: grid;

  grid-template-columns:

  44px

  1fr

  44px;

  align-items: center;

  margin-bottom: 40px;

}


.barra button {

  width: 44px;

  height: 44px;

  border-radius: 50%;

  border:

  1px solid

  var(--linea);

  background: white;

}


.barra span {

  text-align: center;

  font-size: 12px;

  font-weight: 600;

}


.pasos {

  margin-top: 20px;

  margin-bottom: auto;

}


.paso {

  display: grid;

  grid-template-columns:

  45px

  1fr;

  gap: 14px;

  padding: 18px 0;

  border-bottom:

  1px solid

  var(--linea);

}


.paso > span {

  width: 38px;

  height: 38px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background:

  var(--dorado-claro);

  color:

  var(--dorado);

}


.paso strong {

  font-size: 13px;

}


.paso p {

  color: var(--gris);

  font-size: 11px;

  margin-top: 5px;

}


/* ====================== */
/* CÁMARA */
/* ====================== */


.camara {

  padding: 0;

  background: #111;

  color: white;

}


.camaraSuperior {

  position: absolute;

  z-index: 10;

  width: 100%;

  max-width: 520px;

  display: grid;

  grid-template-columns:

  45px

  1fr

  45px;

  padding:

  max(
    15px,
    env(safe-area-inset-top)
  )

  15px;

  align-items: center;

}


.camaraSuperior button {

  width: 44px;

  height: 44px;

  border-radius: 50%;

  border:

  1px solid

  rgba(
    255,
    255,
    255,
    .3
  );

  color: white;

  background:

  rgba(
    0,
    0,
    0,
    .25
  );

  font-size: 22px;

}


.camaraSuperior div {

  text-align: center;

}


.camaraSuperior strong {

  display: block;

  font-size: 11px;

}


.camaraSuperior small {

  opacity: .7;

  font-size: 9px;

}


.visor {

  position: relative;

  height: 73dvh;

  overflow: hidden;

}


video,
#overlay {

  position: absolute;

  width: 100%;

  height: 100%;

  object-fit: cover;

}


#overlay {

  z-index: 3;

  pointer-events: none;

}


.guiaRostro {

  position: absolute;

  z-index: 4;

  width:

  min(
    72vw,
    330px
  );

  aspect-ratio: .77;

  left: 50%;

  top: 50%;

  transform:

  translate(
    -50%,
    -50%
  );

  border:

  2px solid

  rgba(
    255,
    255,
    255,
    .75
  );

  border-radius:

  48%

  48%

  44%

  44%;

}


.zonaT {

  position: absolute;

  width: 35%;

  height: 58%;

  left: 50%;

  top: 21%;

  transform:

  translateX(-50%);

  border:

  1px dashed

  rgba(
    255,
    255,
    255,
    .5
  );

  border-radius: 40%;

}


.estado {

  position: absolute;

  z-index: 5;

  top: 90px;

  left: 50%;

  transform:

  translateX(-50%);

  padding:

  8px

  14px;

  border-radius: 100px;

  background:

  rgba(
    0,
    0,
    0,
    .55
  );

  white-space: nowrap;

  font-size: 10px;

}


.estado.correcto {

  background:

  rgba(
    40,
    110,
    60,
    .8
  );

}


.instruccion {

  position: absolute;

  z-index: 5;

  left: 20px;

  right: 20px;

  bottom: 20px;

  background:

  rgba(
    0,
    0,
    0,
    .45
  );

  backdrop-filter:

  blur(10px);

  padding: 14px;

  border-radius: 16px;

  text-align: center;

}


.instruccion strong {

  display: block;

  font-size: 13px;

}


.instruccion span {

  display: block;

  margin-top: 4px;

  opacity: .7;

  font-size: 9px;

}


.controles {

  height: 27dvh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

}


.capturar {

  width: 76px;

  height: 76px;

  border-radius: 50%;

  background: transparent;

  border:

  2px solid white;

}


.capturar span {

  display: block;

  width: 60px;

  height: 60px;

  background: white;

  border-radius: 50%;

  margin: auto;

}


.capturar:disabled {

  opacity: .35;

}


.controles small {

  font-size: 9px;

  margin-top: 12px;

  opacity: .6;

}


/* RESULTADO */


.procesandoContenido {

  margin: auto;

  text-align: center;

  width: 100%;

}


.scanner {

  width: 110px;

  height: 140px;

  border:

  1px solid

  var(--dorado);

  border-radius: 50%;

  margin:

  0 auto

  30px;

}


.listaAnalisis {

  margin-top: 30px;

}


.listaAnalisis p {

  border-bottom:

  1px solid

  var(--linea);

  padding: 12px 0;

  text-align: left;

  color:

  var(--gris);

  font-size: 12px;

}


.listaAnalisis p.ok {

  color: #39754b;

}


.resultados {

  padding: 20px;

  border:

  1px solid

  var(--linea);

  border-radius:

  var(--radio);

}


.resultadoZona
+
.resultadoZona {

  margin-top: 25px;

}


.tituloZona {

  display: flex;

  justify-content: space-between;

  font-size: 12px;

  margin-bottom: 10px;

}


.tituloZona strong {

  color: var(--dorado);

}


.barraResultado {

  height: 7px;

  background: #eee8e1;

  border-radius: 50px;

  overflow: hidden;

}


.barraResultado span {

  display: block;

  height: 100%;

  background:

  var(--dorado);

}


.resultadoZona small {

  display: block;

  color:

  var(--gris);

  margin-top: 8px;

  font-size: 9px;

}


.recomendacion {

  margin-top: 20px;

  padding: 23px;

  border-radius:

  var(--radio);

  background:

  var(--dorado-claro);

}


.recomendacion h2 {

  margin:

  8px

  0;

  font-size: 24px;

}


.recomendacion p {

  color: var(--gris);

  font-size: 12px;

  line-height: 1.6;

}


.rutina {

  margin-top: 30px;

}


.producto {

  display: flex;

  align-items: center;

  gap: 15px;

  border-bottom:

  1px solid

  var(--linea);

  padding: 16px 0;

}


.producto span {

  color: var(--dorado);

  font-size: 11px;

}


.producto strong {

  font-size: 13px;

}


@media (min-width: 650px) {

  body {

    padding: 25px;

  }

  .app {

    border-radius: 30px;

    overflow: hidden;

    box-shadow:

    0 20px 60px

    rgba(
      0,
      0,
      0,
      .1
    );

  }

}