@charset "utf-8";

*,
*::after,
*::before {
  box-sizing: border-box;

  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 5em;
}

body {
  /* tipografía general del proyecto */
  font-family: 'Montserrat', sans-serif;
  background-color: #F2EBDC;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: 'DM Serif Display' ;
  margin-block-end: 1em;

}

a {
  text-decoration: none;
}

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

img {
  max-width: 100%;

  height: auto;
}

.contenedora {
  width: min(50rem, 100%);
  margin-inline: auto;
  padding: 1rem;
}

header,
footer {
  background-color:#B92B9D;
  color: #f2ebdc;
}

header {
  box-shadow: 0 4px 2px hsl(0 0% 0% / 0.25); /* sombra difusa  */

  position: sticky;

  top: 0;

  z-index: 8000;
  font-family: 'Montserrat', sans-serif;
}

header .contenedora {
  display: flex;
  flex-wrap: wrap;

  justify-content: space-between;

  align-items: center;
}

#logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9999;
  
}

#logo img {
  width: 4em;
  margin: -1em 0.75em -1em 0;
}

#logo h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 100;
  
  margin: 0;
}

#logo h3 span {
  display: block;
}

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

  position: fixed;
  top: 1em;
  right: 1em;
  z-index: 9000;
}

.menu-btn .btn-linea {
  width: 25px;
  height: 3px;
  margin: 4px 0 4px 0;
  background: #BF3636;
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 9000;
}
.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);
}

nav ul {
  background-color: #f2ebdc;
  display: grid;
  place-items: center;
  place-content: center;

  position: fixed;

  inset: 0;

  z-index: 8000;

  translate: 100%;

  transition: all 0.6s ease;
}

.menuVisible ul {
  background-color: #f2ebdc;
  transition: all 0.4s ease;

  translate: 0;
}


nav ul li a {
  border-bottom: solid 3px hsl(0 0% 100% / 0.1);
  color: #bf3636;
  display: block;
  font-size: 1.5rem;
  margin-block-end: 0.5rem;
  width: min(
    70vw,
    20rem
  ); 
  text-align: center;

  padding: 0.5rem;
  text-decoration: none;
}

nav ul li a:hover {
  border-bottom: solid 3px #BF3636;
  transition: all 0.3s;
}

/* ----------------
   cuerpo principal
   ---------------- */

main h3 {
  background-color: hsl(198 100% 43% / 0.1);
}

/* clase para diferentes títulos */
.titulo {
  
  padding-block-end: 0.35em; /* separa el "subrayado" del texto */
}

/*
  galeria de imagenes
*/

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

.slider {
  width: 100%;
  height: max(400px, 50vh);
  position: relative;
  overflow: hidden;
}

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

.slide img {
  border-radius: 0.25em;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top 25%;
}

.slide figcaption {
  background-color: hsl(210 29% 30% / 0.75);
  border-radius: 0.5em;
  color: white;
  padding: 1em;
  text-transform: uppercase;
  font-weight: 700;
  position: absolute;
  inset: auto 1em 1em 1em;

  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5em;
}

.slide figcaption span {
  display: block;
  font-size: 0.85em;
  color: #ddd;
  text-transform: none;
}

.slide a {
  background-color: hsl(209 100% 35% / 0.5);
  color: hsl(0 0% 90% / 0.85);
  padding: 0.25em 1em;
  border-radius: 2em;
  text-decoration: none;
  justify-self: end;
  margin-block-start: 1em;
}

.slide a::after {
  content: " →";
}

.slide a:hover {
  background-color: hsl(209 100% 35% / 0.95);
  box-shadow: 0 0.25em 0.25em hsl(0 0% 0% / 0.25);
  color: hsl(0 0% 90%);
}

@media (min-width: 30em) {
  .slide figcaption {
    font-size: 1.1em;
    inset: 2em 50% 2em 2em;
    gap: 1em;
    padding: 1.5em;
    transition: 0.5s;
  }
}

@media (min-width: 40em) {
  .slide figcaption {
    font-size: 1.25em;
    inset: auto 50% 2em 2em;
  }
}

.btn {
  position: absolute;
  z-index: 10;
  top: 1em;

  width: 2.5em;
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background-color: #f2ebdc;
  color: #671B75;
  font-size: 1.1em;
  opacity: 0.75;
}

.btn:active,
.btn:hover {
  opacity: 0.9;
  border: solid 1px #671B75;
}

.btn-prev {
  left: calc(100% - 6.25em);
}

.btn-prox {
  right: 1em;
}

/* sección textos */

.textos {
  padding-block-start: 2em;
}

.textos h3 {
  padding: 0.5em 1em;
}

.textos > *,
.textos p:not(:last-child) {
  margin-block-end: 1em;
}

/* textos > artículos */

.articulos,
#final {
  padding-block-start: 2em;
}

.textos article {
  border: solid 1px #F29A2E;
  border-radius: 4px;
  padding: 1em;
  padding-block-start: 0;
  margin-block-end: 1em;
}

.textos article h4 {
  background-color: hsla(0 0% 100% / 0.85);
  padding: 1em 0 0.5em 0;
  margin-block-end: 1em;

  /* para salir del "flujo de información" del fondo 
  y colocase en una capa superior "pegajosa" */
  position: sticky;
  /* emplazamiento a 5 renglones del borde superior */
  top: 5em;
}

/* footer */

footer > p:last-child {
  margin-block-end: 0;
}

/*
----------------
"boton" explorar
----------------
*/

.explorar {
  background-color: hsl(38 100% 47% / 0.85);
  border: 4px solid hsl(27, 100%, 43%);
  border-radius: 50%;
  box-shadow: 0 0.15em 0.1em hsla(0 0% 0% / 0.215);
  color: white;
  cursor: pointer;
  font-size: 1.75em;
  font-weight: bold;
  width: 4rem;
  aspect-ratio: 1;

  display: grid;
  place-items: center;

  /* para salir del "flujo de información" del fondo 
  y colocase en una capa superior fija */
  position: fixed;
  /* emplazamiento a 1 r-renglón del borde inferior */
  bottom: 1rem;
  /* emplazamiento a 1 r-renglón del borde derecho */
  right: 1rem;
  /* capa superior, encima de casi todo */
  z-index: 9000;
}

/*
  caja modal de diálogo
*/

dialog {
  background-color: hsl(225 90% 90%);
  inline-size: min(20em, 80%);
  border: solid 2px hsl(225 90% 50%);
  border-radius: 0.5em;
  box-shadow: 0 0 0 0 hsl(0 0% 10%);
  padding: 0.5em;

  position: fixed;
  inset: 0;
  margin: auto;

  transform: translateY(-100vh);
  transition: 0.5s;
}

dialog.visible {
  box-shadow: 0 10px 10px 0 hsl(0 0% 0% / 20%);
  transform: translateY(0);
  transition: 0.5s;
  transition-delay: 0.5s;
}

dialog::backdrop {
  opacity: 0;
}

dialog.visible::backdrop {
  opacity: 1;

  transition: 1s;

  background-image: linear-gradient(
      0deg,
      hsl(0 100% 50% / 0.5) 0%,
      transparent 100%
    ),
    linear-gradient(60deg, hsl(60 100% 50% / 0.5) 0%, transparent 100%),
    linear-gradient(120deg, hsl(120 100% 50% / 0.5) 0%, transparent 100%),
    linear-gradient(180deg, hsl(180 100% 50% / 0.5) 0%, transparent 100%),
    linear-gradient(240deg, hsl(240 100% 50% / 0.5) 0%, transparent 100%),
    linear-gradient(300deg, hsl(300 100% 50% / 0.5) 0%, transparent 100%);
}

form {
  display: grid;
  gap: 1em;

  background-color: white;
  padding: 1em;
  box-shadow: 0 0.1em 0.25em hsl(0 0% 0% / 20%) inset;
}

.form__grupo {
  position: relative;
  color: hsl(0 0% 35% / 50%);
}

.form__input {
  width: 100%;
  background: white;
  color: hsl(0 0% 50%);
  font-size: 1rem;
  padding: 1em 0.5em;
  border: solid 1px hsl(225 90% 60%);
  border-radius: 0.25em;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: 1s;
}

.form__input:focus {
  color: hsl(225 90% 60%);
  font-weight: 700;
}

.form__label {
  color: hsl(225 90% 60%);
  position: absolute;
  top: 0;
  left: 0.5em;
  transform: translateY(0.5em);
  transition: transform 0.5s, color 0.3s, padding 0.5s;
  background-color: hsl(0 0% 100%);
  padding: 0;
}

:is(.form__input:not(:placeholder-shown), .form__input:focus) {
  color: hsl(225 90% 60%);
}

:is(.form__input:not(:placeholder-shown), .form__input:focus) + .form__label {
  transform: translateY(-0.6em) scale(0.7);
  transform-origin: left top;
  padding: 4px;
  color: hsl(225 90% 60%);
}

.form__submit {
  background-color: hsl(225 90% 60%);
  color: hsl(0 0% 100%);
  font-family: inherit;
  font-size: inherit;
  padding: 0.25em 1em;
  inline-size: max-content;
  border: none;
  border-radius: 0.25em;
  outline: none;
  justify-self: end;
  transition: 0.5s;
}

.form__submit:focus,
.form__submit:hover {
  background-color: hsl(225 50% 40%);
}

/* --------------------------
   media queries,
   para cambiar la apariencia
   en la medida en que el
   navegador se ensancha
   (mobile first)
   -------------------------- */

/* cambios a partir de los 360px */
@media (min-width: 25em) {
}

/* cambios a partir de los 640px */
@media (min-width: 40em) {
  /* el menú deja de ser fijo */
  header nav {
    /* para que esté en capa superior pero que no parezca */
    position: relative;
  }

  /* botón "hamburguesa" oculto */
  .menu-btn {
    display: none;
  }

  /* menu visible */
  header nav ul,
  header .menuVisible ul {
    /* caja flexible para menu horizontal*/
    display: flex;
    /* separación entre sus elementos */
    gap: 0.25em;

    /* para que esté en capa superior pero que no parezca */
    position: relative;

    /* elimina desplazamiento */
    translate: 0;

    /* elimina fondo */
    background-color: unset;
  }

  /* items de lista  que contienen los vínculos del menu */
  header nav ul li {
    min-width: 4em; /* que no midan menos de: */
  }

 
  header nav ul li a {
    background-color:  #f2ebdc;
    border-radius: 0.25em;
    color: #671B75;
    font-size: 1rem;
    width: auto;
    padding: 0.25em 1em;
    text-align: center;
    display: block; 
    margin-block-end: unset;
    border-block-end: unset;
  }

  header nav ul li a:hover {
    background-color: #671B75;
    color: #f2ebdc;
    border-block-end: unset;
  }

  /* para que "artículo 1" y "artículo 2"
  queden uno al lado del otro */
  .textos > .articulos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
}

/* cambios a partir de los 800px */
@media (min-width: 50em) {
  .galeria {
    padding: 1em;
  }

  .textos h3 {
    padding: 1em;
  }
}

/* cambios a partir de los 1200px */
@media (min-width: 75em) {
  .galeria {
    margin-block-start: 4em;
    margin-block-end: 3em;
  }
}
.proximoseventos {
  background-color:  #BF3636;
}
.tituloproximoseventos {
  text-align: center;
  padding-top: 1em;
  color: #f2ebdc;
}

.eventos {
  display: grid;
  grid-template-columns: 50% 50%;
  justify-items: center;
  align-items: center;
  padding-inline: 1em;
  gap: 0.5em;
  justify-content: center;
}

article {
  display: block;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    ;
}

.message-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    background-color: #9dc4b8;
    border: 1px solid #671B75;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.message {
    background-color: #f8f6f6;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
}

.message-header {
  font-weight: bold;
}

.message-header1 {
  font-weight: bold;
  color: #ff5e00;
}
.message-header2 {
  font-weight: bold;
  color: #1100ff;
}
.message-header3 {
  font-weight: bold;
  color: #3c1779;
}
.message-header4 {
  font-weight: bold;
  color: #ff008c;
}

.input-box {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

button {
    background-color: #B92B9D;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

/* Agrega más estilos según tus preferencias */
