@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

:root {
  --azul: #111b49;
  --fondo: #eafafa;
  --barra: #cceced;
  --card-celeste: #d8f2f2;
  --turquesa: #10b8d4;
  --rosa: #ff3f86;
  --amarillo: #ffc20e;
  --amarillo-suave: #ffecad;
  --lila: #efe4ed;
  --texto: #111b49;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--fondo);
  color: var(--texto);
  max-width: 26.875rem;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 6rem;
}

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

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

main {
  padding: 1.5rem 1.125rem 0;
}

/* HEADER */

header {
  height: 6.6875rem;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#logo img {
  width: 8.25rem;
}

#regresar {
  position: absolute;
  left: 1.75rem;
}

#regresar img {
  width: 2.125rem;
}

.menu-desktop {
  display: none;
}

/* CONFIGURACIÓN */

#configuracion {
  position: absolute;
  right: 1.75rem;
  z-index: 200;
}

.boton-config {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.boton-config img {
  width: 2.125rem;
}

.menu-config {
  display: none;
  position: absolute;
  top: 3rem;
  right: 0;
  width: 11.25rem;
  overflow: hidden;
  border-radius: 0 0 .5rem .5rem;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}

#configuracion:hover .menu-config,
#configuracion:focus-within .menu-config {
  display: block;
}

.menu-config button {
  width: 100%;
  border: none;
  padding: .7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
}

.menu-config button:nth-child(1),
.menu-config button:nth-child(4) {
  background: #f3d4e4;
}

.menu-config button:nth-child(2),
.menu-config button:nth-child(5) {
  background: #f4f1c9;
}

.menu-config button:nth-child(3) {
  background: #bff1f4;
}

/* CAJA ROSA VERIFICAR */

.verificacion {
  background: var(--rosa);
  color: white;
  border-radius: 1.75rem;
  padding: 1.875rem 1rem;
  text-align: center;
}

.verificacion h1 {
  font-size: 2.375rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.verificacion p,
.verificacion form > p {
  max-width: 17.5rem;
  margin: 0 auto 1.5rem;
  font-size: .9375rem;
  line-height: 1.15;
}

.ejemplo {
  width: 100%;
  min-height: 3.25rem;
  background: var(--fondo);
  border-radius: 1.0625rem;
  padding: 0 1.125rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #999;
}

.ejemplo img {
  width: 1.5625rem;
}

.ejemplo input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--texto);
}

.boton-verificar,
.verificacion article:last-child {
  width: 100%;
  min-height: 3.75rem;
  border: none;
  border-radius: .9375rem;
  background: var(--amarillo);
  color: black;
  display: grid;
  grid-template-columns: 2.75rem 1fr 1.75rem;
  align-items: center;
  gap: .5rem;
  padding: 0 1.125rem;
  font-family: inherit;
  cursor: pointer;
}

.boton-verificar h2,
.verificacion article:last-child h2 {
  font-size: 1.5625rem;
  font-weight: 700;
  text-align: center;
}

.boton-verificar img,
.verificacion article:last-child img {
  width: 2.125rem;
}

/* AYUDA */

.ayuda {
  margin: 1.375rem .5rem;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: .375rem;
}

.ayuda picture img {
  width: 1.375rem;
}

.ayuda h5 {
  font-size: 1rem;
  line-height: 1.2;
}

.ayuda ul {
  grid-column: 1 / 3;
  margin-left: 1.125rem;
  margin-top: .25rem;
  font-size: .9375rem;
  line-height: 1.25;
}

/* INICIO */

.final {
  margin-bottom: .75rem;
}

.imagen-señora img {
  width: 100%;
  border-radius: 1.75rem 1.75rem 0 0;
}

.consejo {
  background: var(--amarillo-suave);
  border-radius: 0 0 1rem 1rem;
  padding: .75rem 1.125rem;
  display: grid;
  grid-template-columns: 3.625rem 1fr;
  gap: .875rem;
  align-items: center;
}

.consejo picture img {
  width: 3.625rem;
}

.consejo p {
  font-size: .9375rem;
  line-height: 1.05;
}

.consejo p:first-of-type {
  font-weight: 700;
}

/* RESULTADOS */

.verif.vinculo {
  border: .125rem solid var(--turquesa);
  border-radius: 1.25rem;
  padding: .8125rem 2rem;
  margin: .375rem 0 1.375rem;
}

.verif.vinculo p:first-child {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.15;
}

.verif.vinculo p:last-child {
  font-size: .8125rem;
  line-height: 1.15;
  margin-top: .5rem;
}

.resultado {
  background: var(--card-celeste);
  border-radius: 2.125rem;
  text-align: center;
  padding: 1.5rem 1.5rem 1.875rem;
  margin-bottom: 1.75rem;
}

.resultado picture img {
  width: 9.375rem;
  margin: 0 auto .875rem;
}

.resultado h2 {
  font-size: 2.1875rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: .875rem;
}

.resultado p {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.1;
}

body:has(img[src*="cuidado"]) .verif.vinculo {
  border-color: var(--rosa);
}

body:has(img[src*="cuidado"]) .resultado {
  background: var(--lila);
}

body:has(img[src*="cuidado"]) .resultado h2 {
  color: var(--rosa);
}

/* LISTAS RESULTADOS */

.estafas {
  margin: 0 .75rem 1.5rem;
}

.estafas h3 {
  font-size: 1.3125rem;
  line-height: 1.1;
  margin-bottom: 1.125rem;
}

.estafas ul {
  list-style: none;
}

.estafas li {
  position: relative;
  padding-left: 1.125rem;
  margin-bottom: 1.125rem;
  font-size: 1rem;
  line-height: 1.25;
}

.estafas li::before {
  content: "";
  width: .875rem;
  height: .875rem;
  background: var(--turquesa);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: .25rem;
}

body:has(img[src*="cuidado"]) .estafas li::before {
  background: var(--rosa);
}

.estafas article:last-child p {
  background: var(--rosa);
  color: white;
  border-radius: .9375rem;
  padding: .9375rem;
  text-align: center;
  font-size: 1.5625rem;
  font-weight: 700;
  margin-top: 1.125rem;
}

/* CÓMO DENUNCIAR */

.como_denunciar {
  padding-top: .5rem;
}

.como_denunciar .denuncia {
  border: .125rem solid var(--rosa);
  border-radius: 1.25rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 4.375rem 1fr;
  column-gap: .75rem;
  align-items: center;
  margin-bottom: 1.625rem;
}

.como_denunciar .denuncia picture {
  grid-row: 1 / 3;
}

.como_denunciar .denuncia img {
  width: 4.25rem;
}

.como_denunciar .denuncia h3 {
  font-size: 1.25rem;
  line-height: 1;
}

.como_denunciar .denuncia p {
  font-size: .8125rem;
  line-height: 1.1;
  margin-top: .3125rem;
}

.como_denunciar h2 {
  font-size: 1.6875rem;
  line-height: 1.1;
  margin: 0 .75rem .875rem;
}

.como_denunciar ul {
  list-style: none;
}

.como_denunciar li {
  background: var(--card-celeste);
  border-radius: .875rem;
  padding: .875rem 1rem;
  margin-bottom: .875rem;
}

.como_denunciar h4 {
  font-size: 1.125rem;
  line-height: 1.1;
  position: relative;
  padding-left: 1rem;
}

.como_denunciar h4::before {
  content: "";
  width: .8125rem;
  height: .8125rem;
  background: var(--rosa);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: .3125rem;
}

.como_denunciar li p {
  font-size: .875rem;
  line-height: 1.15;
  margin-top: .375rem;
}

/* PREVENÍ ESTAFAS */

.prevení_estafas {
  padding: .625rem .25rem 0;
}

.prevení_estafas h2 {
  font-size: 1.9375rem;
  line-height: 1.1;
  margin-bottom: .25rem;
}

.prevení_estafas > p {
  font-size: .875rem;
  line-height: 1.15;
  margin-bottom: 1.625rem;
}

.prevení_estafas article {
  min-height: 8.125rem;
  border-radius: 1.5rem;
  padding: 1.375rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 5.625rem 1fr 2rem;
  align-items: center;
  gap: 1rem;
}

.prevení_estafas article:nth-of-type(1) {
  background: #f3d4e4;
}

.prevení_estafas article:nth-of-type(2) {
  background: #f4f1c9;
}

.prevení_estafas article:nth-of-type(3) {
  background: #bff1f4;
}

.prevení_estafas article:nth-of-type(4) {
  background: #d8daef;
}

.prevení_estafas article picture:first-child img,
.prevení_estafas article > img:first-child {
  width: 4.875rem;
}

.prevení_estafas article p {
  font-size: 1.1875rem;
  line-height: 1.1;
  text-align: center;
  font-weight: 500;
}

.prevení_estafas article picture:last-child img {
  width: 2rem;
}

/* BARRA INFERIOR MOBILE */

.barra {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  max-width: 26.875rem;
  width: 100%;
  height: 5.5rem;
  background: var(--barra);
  padding: .5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  align-items: center;
  z-index: 50;
}

.barra a {
  display: block;
}

.barra article {
  width: 100%;
  height: 4.5rem;
  border-radius: .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.barra article.activo {
  background: rgba(255, 255, 255, .65);
}

.barra picture img {
  height: 1.875rem;
  margin-bottom: .25rem;
}

.barra p {
  font-size: .875rem;
  line-height: 1;
}

/* FOOTER MOBILE OCULTO */

footer {
  display: none;
}

/* ESCRITORIO */

@media (min-width: 64rem) {

  body {
    max-width: none;
    width: 100%;
    padding-bottom: 0;
  }

  main {
    padding: 3.75rem;
  }

  header {
    height: 6.375rem;
    padding: 0 2.25rem;
    display: grid;
    grid-template-columns: 12rem 1fr 3rem;
    align-items: center;
  }

  header #logo img {
    width: 8.75rem;
  }

  #regresar {
    display: none;
  }

  #configuracion {
    position: relative;
    right: auto;
    justify-self: end;
  }

  .menu-config {
    top: 2.75rem;
    right: 0;
  }

  .menu-desktop {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4rem;
    margin-right: 4rem;
  }

  .menu-desktop a {
    color: var(--fondo);
    font-size: 1.25rem;
    font-weight: 600;
    padding: .65rem 1rem;
    border-radius: .75rem;
  }

  .menu-desktop a.activo {
    background: var(--fondo);
    color: var(--azul);
  }

  main > .barra {
    display: none;
  }

  footer {
    display: grid;
    grid-template-columns: 12rem 20rem 1fr 12rem 12rem;
    gap: 2rem;
    background: var(--azul);
    color: var(--fondo);
    padding: 2.75rem 4rem 1.25rem;
  }

  footer .alertanet,
  footer .footer {
    display: contents;
  }

  footer .alertanet #logo {
    grid-column: 1;
  }

  footer .alertanet #logo img {
    width: 12rem;
  }

  footer .alertanet p {
    grid-column: 2;
    max-width: 16rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.15;
    margin-top: .5rem;
  }

  footer .links {
    grid-column: 4;
  }

  footer .redes {
    grid-column: 5;
  }

  footer h6 {
    font-size: .9375rem;
    margin-bottom: 1.25rem;
  }

  footer ul {
    list-style: none;
  }

  footer li {
    font-size: .9375rem;
    line-height: 1.4;
  }

  footer .privacidad {
    grid-column: 1 / 6;
    border-top: .125rem solid var(--turquesa);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: .8125rem;
  }

  footer .privacidad p:last-child {
    font-weight: 700;
  }

  /* INICIO DESKTOP */

  body:has(.ayuda) main {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 1.25rem;
    align-items: start;
  }

  body:has(.ayuda) .verificacion {
    grid-column: 1;
    padding: 3rem 2.25rem 1.75rem;
    border-radius: 1.75rem;
  }

  body:has(.ayuda) .verificacion h1 {
    font-size: 3.75rem;
    color: var(--azul);
  }

  body:has(.ayuda) .verificacion p {
    font-size: 1.5rem;
    color: white;
    max-width: 31rem;
  }

  body:has(.ayuda) .ejemplo {
    height: 4.25rem;
    border-radius: .75rem;
    margin-top: 2rem;
  }

  body:has(.ayuda) .boton-verificar {
    height: 4.25rem;
    border-radius: .75rem;
  }

  body:has(.ayuda) .ayuda {
    grid-column: 1;
    margin: 1.25rem 0;
  }

  body:has(.ayuda) .ayuda ul {
    columns: 2;
    list-style: none;
    margin-left: 0;
  }

  body:has(.ayuda) .ayuda li {
    font-size: 1rem;
    line-height: 1.35;
  }

  body:has(.ayuda) .final {
    display: contents;
  }

  body:has(.ayuda) .imagen-señora {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  body:has(.ayuda) .imagen-señora img {
    height: 38.75rem;
    object-fit: cover;
    border-radius: 1.75rem;
  }

  body:has(.ayuda) .consejo {
    grid-column: 1;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
  }

  body:has(.ayuda) .consejo p {
    font-size: 1.125rem;
  }

  /* RESULTADOS DESKTOP */

  body:has(.resultado) main {
    max-width: 80rem;
    min-height: 46rem;
    margin: 0 auto;
    padding: 2rem 3.75rem 3rem;
    display: grid;
    grid-template-columns: 30rem 34rem;
    grid-template-rows: auto 1fr auto;
    column-gap: 4.5rem;
    row-gap: 1.5rem;
    align-items: start;
  }

  body:has(.resultado) .verif.vinculo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: .875rem 2rem;
  }

  body:has(.resultado) .resultado {
    grid-column: 1;
    grid-row: 2 / 4;
    width: 100%;
    min-height: 32rem;
    margin: 0;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body:has(.resultado) .resultado picture img {
    width: 18rem;
    margin: 0 auto 1.25rem;
  }

  body:has(.resultado) .resultado h2 {
    font-size: 3rem;
  }

  body:has(.resultado) .resultado p {
    font-size: 1.5rem;
    line-height: 1.15;
  }

  body:has(.resultado) .estafas {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: start;
  }

  body:has(.resultado) .estafas h3 {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.5rem;
  }

  body:has(.resultado) .estafas ul {
    display: grid;
    gap: 1rem;
  }

  body:has(.resultado) .estafas li {
    background: #b9eef3;
    border-radius: 1.25rem;
    padding: 1.375rem 2rem 1.375rem 3rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.15;
  }

  body:has(img[src*="cuidado"]) .estafas li {
    background: #f8e1ea;
  }

  body:has(.resultado) .estafas li::before {
    left: 1.5rem;
    top: 1.625rem;
  }

  body:has(.resultado) .estafas article:last-child p {
    margin-top: 1rem;
    font-size: 1.75rem;
    padding: 1rem;
    border-radius: .75rem;
  }

  body:has(.resultado) .verificacion {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    margin: 0;
    align-self: end;
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  body:has(.resultado) .verificacion h1,
  body:has(.resultado) .verificacion form > p {
    display: none;
  }

  body:has(.resultado) .verificacion .ejemplo {
    margin: 0 0 1rem;
    min-height: 3.5rem;
  }

  body:has(.resultado) .boton-verificar {
    min-height: 3.5rem;
  }

  /* DENUNCIA DESKTOP */

  body:has(.como_denunciar) main {
    max-width: 78rem;
    margin: 0 auto;
  }

  .como_denunciar .denuncia {
    display: grid;
    grid-template-columns: 5rem 1fr;
    max-width: none;
    padding: 1rem 12rem;
    border-radius: 1.25rem;
  }

  .como_denunciar .denuncia h3 {
    font-size: 1.5rem;
  }

  .como_denunciar .denuncia p {
    font-size: 1.25rem;
  }

  .como_denunciar h2 {
    font-size: 3rem;
    margin: 2rem 0 1.5rem;
  }

  .como_denunciar ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2.5rem;
  }

  .como_denunciar li {
    min-height: 8rem;
    padding: 1.75rem 2rem 1.75rem 4rem;
    border-radius: 1.25rem;
  }

  .como_denunciar h4 {
    font-size: 2rem;
  }

  .como_denunciar h4::before {
    width: 1.25rem;
    height: 1.25rem;
    left: -2rem;
    top: .5rem;
  }

  .como_denunciar li p {
    font-size: 1.25rem;
  }

  /* PREVENÍ DESKTOP */

  body:has(.prevení_estafas) main {
    padding: 4.5rem 3.75rem 6.75rem;
  }

  .prevení_estafas {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .prevení_estafas h2 {
    grid-column: 1 / 5;
    font-size: 4rem;
  }

  .prevení_estafas > p {
    grid-column: 1 / 5;
    font-size: 1.375rem;
    max-width: 40rem;
    margin-bottom: 2rem;
  }

  .prevení_estafas article {
    min-height: 25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2.25rem;
    margin: 0;
  }

  .prevení_estafas article picture:first-child img {
    width: 11rem;
    margin: 0 auto;
  }

  .prevení_estafas article p {
    font-size: 1.5rem;
  }

  .prevení_estafas article picture:last-child img {
    width: 3.625rem;
    margin: 0 auto;
  }
}