@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

*{box-sizing: border-box;}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;   
    margin: 0;
    color: #343434;
    background-color: #FFFBF7;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
}

p {
    line-height: 1.6;
}

p, li, figcaption {text-wrap: pretty;}

h1 {
  font-size: 50px;
  font-weight: bold;
}

h2 {
  font-weight: bold;
}

h1,
h2,
h3,
h4 {
    font-family: "VT323", monospace;
    font-weight: 700;
    font-style: normal;
    line-height: 1.1;
    text-wrap: balance;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

img {
    max-width: 100%;
  }


ul {
      list-style: none;
      padding: 0;
    }

a {
 text-decoration: none;
 font-weight: bold;
 color: #343434;
}

figure {
    margin: 0;
  }

.contenedora {
    margin-inline: auto;
    width: min( 75rem, 100% - clamp(1rem, -0.0435rem + 5.2174vw, 4rem));
    }


header {
   background-color: #7061F0;
   margin-block: 0rem;
   padding: 1rem;
   display: grid;
   grid-template-columns: auto 1fr;
   gap: 1.5rem;
   align-items: center;
   position: sticky;
   top: 0;
   z-index: 1000;
  }
  
header *, header nav ul li{
  margin: 0;
  }

nav ul {
  
  position: fixed;
  inset: 0;
  z-index: 8000;
  translate: 100%;
  transition: all .6s ease; 
  display: grid;
  place-items: center;
  place-content: center;
  position: fixed;
  inset: 0;
  z-index: 8000;
  }
      
header nav li {
  margin-block-start: .4rem;
  }
      
header nav a {
  color:#FFFBF7;
  }

  .menu-btn {
    background: hsl(0 0% 100% / 0.25);
    border-radius: 50%;
    box-shadow: -5px 5px 5px hsl(180 100% 4% / 0.2);
    padding: .75rem;
    width: 3rem;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease-out; 
  
    z-index: 9000;
    position: fixed;
    top: 1rem; 
    right: 1rem; 
    z-index: 9000; 
  }

  .menu-btn .btn-linea {
    width: 25px;
    height: 3px;
    margin: 4px 0 4px 0;
    background: hsl(0 0% 90%);
    transition: all 0.3s ease-out;
  }

  .menuVisible .menu-btn .btn-linea {
    transform: rotate(180deg);
  }
 
  .menuVisible .menu-btn .btn-linea:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
  }
  .menuVisible .menu-btn .btn-linea:nth-child(2) {
    opacity: 0;
  }
  .menuVisible .menu-btn .btn-linea:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
  }

  .menuVisible ul {
    background-color:#343434cb;
    transition: all .3s ease; 
    
    translate: 0;
  }
   
  @media(min-width: 40em) {
    header nav {
      position: unset;
    }

    header nav a{
      background-color: #B79CED;
      color: #000;
      display: block;
     height: 2rem;
     padding-block: .25em .15em;
     text-align: center;
     
    }
      
    .menu-btn {
      display: none;
    }
  
    /* menu visible */
    header nav ul,
    header .menuVisible ul {
      margin-block-end: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
      gap: .75rem;
      align-items: center;
      margin-inline-start:auto;
      width: min(100%, 50rem);
      position: unset;
      translate: unset;
      background-color: unset;
    }
      
    header nav ul li {
      min-width: 4em; 
      height: 100%;
      width: 100%;
    }
  
    /* vínculos del menu principal */
    
    .textos > .articulos {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1em;
    }

header nav a:hover,
header nav a:focus-visible,
    
.index nav li:first-of-type a,
.perfiles nav li:nth-of-type(2) a,
.mapa_barrio nav li:nth-of-type(3) a,
.img_que_cuentan_una_historia nav li:nth-of-type(4) a,
.voces nav li:nth-of-type(5) a{
     
  background-color: #343434;
  color: #B79CED;
  }

body header div {
color: #ffffff;
}
  
}


@media (width>= 57em){

  footer section{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

#redes{
  display: grid;
  grid-template-columns: 5rem 5rem 5rem;
}

#redes img{
  width: 6em;
  display: block;
  object-fit: contain;
  height: 4em;
}

footer{
  color: #ffffff;
  padding-left: 4rem;
  padding-right: 4rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #7061F0;
  margin-block: 0rem;
}

#columna-drch{
  font-size: smaller;
}

iframe{
  aspect-ratio: 19/9;
  width: 100%;
  height: 100%;
}

/*home page*/

@media(width>= 44em){
  .hero {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-secundaria{
    margin: 0;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    color: #000;
  }
}

.img-hero{
  width: 100%;
  height: 100%;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  object-fit: cover;
}


#hero_hebe {
  grid-column: 1;
}

#hero_hebe a{
  display: block;
}

#hero_galeria {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
  gap: .5rem;
}

#bajada_hero {
  background-color: #b79ced7f;
  padding: clamp(1rem, -0.0435rem + 5.2174vw, 4rem);
  display: grid;
  grid-column-end: -1;
  grid-row: 1 / -1;
}

.bajada-hero-secundaria {
  background-color: #b79ced7f;
  padding: clamp(1rem, -0.0435rem + 5.2174vw, 4rem);
  display: grid;
  grid-column: -1 / 1;
  grid-row-end: -1 ;
  align-content: center;
  }

.bajada-hero-secundaria p{
  margin-top: 0;
  margin-bottom: 0;
}
  
  
.img-hero-secundaria{
  width: 100%;
  height: 100%;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  object-fit: cover;
}


.botones {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  margin-bottom: 3rem;
  width: 100%;
}

.btn-primario {
  background-color: #B79CED;
  text-align: center;
  padding: .5rem;
  outline: solid;
}

.btn-secundario{
  text-align: center;
  outline: solid;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

#hero_galeria img {
  object-fit: cover;
  object-position: left center;
  display: block;
  width: 100%;
  height: 100%;
}

#hero_galeria article {
  position: relative;
  overflow: hidden;
}

#hero_galeria div {
  background-color: #6f61f07c;
    color: #ffffff;
    padding: .5em;
    line-height: 1em;
    font-weight: 700;
    position: absolute;
    inset: 0;
    translate: 0 calc(100% - 2em);
}

#hero_galeria
  article:hover div {
    background-color: #6f61f07c;
    transition: all .3s ease;
    translate: 0;
  display: grid;
  text-align: center;
  place-items: center;
  place-content: center;
  padding-inline: 2em;
}

#hero_galeria div span {
  display: block;
  font-size: .75em;
  font-weight: bold;
  color: #ffffff;
  margin-block-start: .5em;
  text-transform: none;
}

#hero_galeria div a {
  display: inline-block;
  margin-block-start: .5em;
  background-color: #b79ced;
  color: #343434;
  padding: .25em 1em;
}

#hero_galeria div a:hover {
    background-color: #343434;
    color: #b79ced;
  }

#bajada_hero article h2 {
    margin-bottom: 0;
 }
  
#bajada_hero article p {
    margin-top: 0;
}

.mapa{
  background-color:#00DF82;
  padding: clamp(1rem, -0.0435rem + 5.2174vw, 4rem);
  margin-top: 4rem;
}

.mapa a{
  display: block;
  text-align: center;
  width: 10em;
  margin: auto;
  margin-top: 1rem;
}

.mapa img{
margin-bottom: 1rem;
}

.card-img{
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.card-img > *:not(:first-child):not(:last-child) {
  margin-inline: 1rem;
}

.card-img div p{
  margin: 0;
}

.fotografo {
  color: #00DF82;
  font-family: "VT323", monospace;
}

.card-img-home{
  background-color: #343434;
  color: #ffffff;
  margin-bottom: 1rem;
}

.card-img{
  background-color: #343434;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}


.img-secundaria img{
  object-fit: cover;
  object-position: center center;
  display: block;
  width: 100%;
  height: 100%;
}

.card-img-secundarias{
  display: grid;
  grid-template-rows: auto;
  gap: 1rem;
}

.contenido-img-secundaria{
  padding: 1rem;
}

#img-principal img{
  object-fit: cover;
  object-position: center center;
  display: block;
  width: 100%;
  height: 100%;
}

.imagenes a{
  display: block;
  text-align: center;
  width: 14em;
  margin: auto;
  margin-top: 1rem;
}

@media (width>= 61em ) {
  #galeria-img{
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
    grid-template-rows: auto;
  }
}

@media (width>= 34em ) {
  .img-secundaria{
    display: grid;
    grid-template-columns: auto auto;
  }
}


.card-entrevista-principal, .card-entrevista-secundaria{
  background-color: #343434;
  color: #ffffff;
  margin-bottom: 1rem;
}

.card-entrevista-principal h3, .card-entrevista-secundaria h3 {
  padding: 1rem;
  margin: 0;
}

.card-entrevista-principal p{
  padding-left: 1rem;
  padding-bottom: 1rem;
  margin: 0;
}

.card-entrevista-principal, .card-entrevista-secundaria, iframe{
  width: 100%;
}

.entrevistas a {
  display: block;
  text-align: center;
  width: 18em;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (width>= 37em ) {
  #entrevistas-secundarias{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1rem;
  }

  .card-entrevista-secundaria{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "iframe h3";
  }

}


 /*Pagina perfiles general*/ 

.perfiles-gral h1 {
  color: #00DF82;
}

.sub-titulo-perfiles{
  color: #7061F0;
  font-size: xx-large;
}

@media (width>= 53em){
  .grid{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1rem;
  }

}

.card-perfiles{
  background-color: #7061F0;
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.card-perfiles img{
object-fit: cover;
width: 100%; 
height: 100%;
}

.card-perfiles a{
  display: block;
  margin: 1rem;
}

.card-perfiles h3{
  font-size: x-large;
}


/*Pagina mapa*/ 

.map h1, .map h2{
  color: #00DF82;
}

#centros_de_detención span{
  color: #00DF82;
  font-weight: bolder;
}

.button-filtro-1,.button-filtro-2, .button-filtro-3, .button-filtro-4, 
.button-filtro-5, .button-filtro-6, .button-filtro-7, .button-filtro-8, .button-filtro-9 {
  text-align: center;
  outline: solid;
  padding-top: .5rem;
  padding-bottom: .5rem;
  padding-right: 1rem;
  padding-left: 1rem;
  font-family: inherit;
  background: none;
  margin-right: 1rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
  border-width: .1em;
  width: 8rem;
}

.button-filtro-1{
  background-color: #343434;
  color: #ffffff;
}

.button-filtro-2:hover,
.button-filtro-3:hover,
.button-filtro-4:hover,
.button-filtro-5:hover,
.button-filtro-6:hover,
.button-filtro-7:hover,
.button-filtro-8:hover,
.button-filtro-9:hover {
    background-color: #343434;
    color: #ffffff;
}

@media(width<= 35em) {

  #filtro_mapa{
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
  }
}

#google-maps{
  width: 100%;
  height: 500px;
}



/*img que cuentan una historia*/


@media(width>= 40em){
#grid-galeria{
  display: grid;
  grid-template-columns: auto auto;
  gap: 1rem;
  
}
}

@media(width>= 63em){
  #grid-galeria{
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 1rem;
  }
}


.popover-contenedor{
  position: absolute; 
  top: 1rem; 
  right: 1rem; 
  display: inline-block;
  z-index: 997;
}


.popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: none;
}

.popover-boton button {
  cursor: pointer;
  background-color: #00DF82;
  border: none;
  padding: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popover-boton button img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  transition: transform 0.2s ease;
  position: relative;
}

.popover-boton button:hover img {
  transform: scale(1.1);
}

.popover-contenido {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popover-contenido img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 85vh;
}


.popover-contenedor:hover .popover-contenido,
.popover-contenedor:focus-within .popover-contenido {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}


.popover-contenedor:hover .popover-overlay,
.popover-contenedor:focus-within .popover-overlay {
  display: block;
}

.buscador{
  text-align: center;
  outline: solid;
  padding-top: .5rem;
  padding-bottom: .5rem;
  padding-right: 1rem;
  padding-left: 2rem;
  font-family: inherit;
  background: none;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
  border-width: .1em;
  width: 100%;
  max-width: 30rem;
  background-image: url(../imagenes/magnifying-glass-svgrepo-com.svg);
  background-repeat: no-repeat;
  background-position: .5rem center;
  background-size: 2rem;
}

.card-img img{
width: 100%;
height: 100%;
}




/*Pagina voces*/

.videos_voces_de_resistencia h1{
  color: #00DF82;
}

.card_entrevista {
  background-color: #7061F0;
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

.card_video {
  background-color: #7061F0;
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

.card_video h3{
  margin-bottom: 0;
}

.videos_voces_de_resistencia div {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (width>= 34em){
  #entrevistas {
    display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-areas: ".card_entrevista"
      ".card_video";
      gap: 1rem;
  }
}

/*Pagina perfil individual*/

.hero-secundaria .btn-primario{
  width: 18em;
}

.quote{
  color: #7061F0;
  font-weight: bold;
  border-top: solid;
  border-bottom: solid;
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.quote p{
  margin: 0;
}

@media(width>= 63em) {
  .perfil-info-general {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
  }
  
  .perfil-info-general img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

}

.perfil-info-general h3{
  margin-bottom: 0;
}

.perfil-info-general img{
 width: 100%;
 height: 100%;
 object-fit: cover;
}

#rol_resistencia_fondo{
  background-color: #00DF82;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media(width>= 46em) {
  .rol_resistencia{
    display: grid;
    grid-template-columns: auto auto;
    gap: 2rem;
  }

}

.rol_resistencia h2{
  font-size: xx-large;
}

.sub-titulo {
  background-image: url(../imagenes/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: -.1rem center;
  background-size: 2rem;
}

.rol_resistencia div h3{
  margin-left: 2rem;
}

.rol_resistencia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(width>= 46em) {
  .audiovisual{
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
  }
 
}

.card_video_perfiles {
  background-color: #7061F0;
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1rem;
}


/*Pagina familia*/

.alejandro h2{
  font-size: xx-large;
  margin-top: 2rem;
  
}

#info_alejandro_fondo{
  background-color:#00DF82;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.info_caja_ale{
  background-color: #FFFBF7;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.info_caja_ale span{
  display: block;
  font-size: xxx-large;
}

.info_caja_ale p {
  margin-top: 0;
}

.info_caja_ale h3 {
  margin-bottom: 0;
}

@media(width>= 35em){
  .info_alejandro{
    display: grid;
    grid-template-columns: auto auto;
    gap: 2rem;
  }

}

#estudio-trabajo p{
  font-weight: bold;
}

#estudio-trabajo span{
  color:#7061F0;
}

@media(width>= 55em){
  .desaparicion_alejandro{
    display: grid;
    padding: 2rem;
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
  }  

}

.desaparicion{
  background-color: #00DF82;
}

.desaparicion_alejandro{
  padding: 2rem;
}


.desaparicion img{
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.desaparicion p{
  margin-bottom: 0;
}

.card-familia{
  color: #ffffff;
}

.galeria{
  padding: 0 0 0 0;
  width: min(100%, 100%);
  margin-inline: auto;
}

.img-slider{
  width: 100%;
  height: max(40vh, 450px);
  position: relative;
  overflow: hidden;
  display: flex; 
  align-items: stretch; 
}

.slide{
  height: 100%;
    position: absolute;
    transition: all 0.5s;
    width: 100%; 
    flex-shrink: 0; 
}

.galeria .btn{
  position: absolute;
    z-index: 10;
    top: 2em;
    width: 2.5em;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color:#7061F0;
    color: white;
    font-size: 1.1em;
}

.btn-prox {
  right: 1em;
}

.btn-prev {
  left: calc(100% - 6.25em);
}
  
.slide figcaption {
    background-color:#00df8240;
    border-radius: .5em;
    color: white;
    padding: 1em;
    position: absolute;
    inset: 20em 2em 2em;
    display: grid;
    grid-template-columns: auto 10em;
    gap: 1em;
    align-items: center;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
}

.slide h3{
  margin-top: 0;
  margin-bottom: 0;
}

#marido-marina{
  color: #000;
}

/*Pagina formulario*/

input {
  outline: 3px solid hsl(203, 30%, 26%);
}

input:focus:valid,
input:valid:not(:placeholder-shown) {
  outline-color: var(--clr-success);
}

input:invalid:not(:placeholder-shown) {
  outline-color: var(--clr-error);
}

input:focus:invalid:not(:placeholder-shown) {
  outline-color: var(--clr-warning);
}

.hint {
  color: var(--clr-warning);
}
.error {
  color: var(--clr-error);
}

.hint,
.error {
  display: none;
}

/* mostrar sugerencia si el usuario está en el input
   pero es valor inválido */
input:focus:invalid:not(:placeholder-shown) ~ .hint {
  display: block;
}

/* mostrar error después de que el usuario deja el input
   si es valor inválido */

input:not(:focus):invalid:not(:placeholder-shown) ~ .error {
  display: block;
  
}

@keyframes form-error {
  25% {
    translate: -5px;
  }
  75% {
    translate: 5px;
  }
}

@layer general-styling {
  .formulario {
    --clr-success: hsl(143, 100%, 26%);
    --clr-warning: hsl(43, 100%, 66%);
    --clr-error: hsl(348, 55%, 49%);
  }

  form {
    display: grid;
    gap: 1rem;
  }

  .form-group {
    display: grid;
    gap: 0.25rem;
  }

  label {
    font-size: 0.75rem;
  }

  .formulario input,
   .formulario button {
    font: inherit;
    
    @media (prefers-reduced-motion: no-preference) {
      transition: all .5s;
    }
  }

  .formulario input {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 0;
    background-color:#FFFBF7;
    min-width: 5rem;
  }

  .formulario button {
    background-color:#343434;
    border: none;
    border-radius: 0.25rem;
    color: #B79CED;

    cursor: pointer;

    margin-block-start: 1rem;
    padding: 0.5rem 1rem;

    :invalid & {
      opacity: 0.2;
      pointer-events: none;
    }

    &:focus-visible,
    &:hover {
      outline-color: hsl(203 30% 45%);
    }
  }

  .formulario h1 {
    font-size: 1.5rem;
    line-height: 1.1;
    text-align: center;
    text-wrap: balance;
  }}

.formulario footer{
  margin-top: 2rem;
}

/*Pagina respuesta*/

.respuesta{
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center
}

/* Seccion comentarios*/

.card-comentarios{
  background-color: #343434;
  color: #FFFBF7;
  padding: 2rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.card-comentarios img{
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

@media(width>= 47em){
  #grid-comentarios{
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
  }

}

.iconos{
  grid-column: 2;
}

#btn-formulario{
  text-decoration: underline;
}