@import url("https://fonts.googleapis.com/css2?family=Ultra&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap");
/* letras que vienen con el pack */

/* "Ultra", serif; */

/* --- PALETA DE COLORES ORIGINAL --- */
:root {
  --bg-principal: #f4f4f6;
  --bg-oscuro: #261c37;
  --bg-tarjeta-clara: #c8c3c3;
  --color-acento: #52bdb3;
  --verdecito: #9fcbad;
  --texto-oscuro: #111111;
  --texto-claro: #ffffff;
  --letra-titulo: "Ultra", cursive;
  --letra-parrafo: "Roboto Serif", serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  background-color: var(--bg-principal);
  /* display: flex;
  flex-direction: column;
  min-height: 100vh; 
  
  No lo habilitaré hasta que entienda
  */
}

/* Header & Navbar */
h1 {
  font-family: var(--letra-titulo);
  text-transform: uppercase;
  font-weight: bolder;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}
header {
  background-color: var(--bg-oscuro);
  width: 100%;
  padding: 20px;
  align-items: center;
  color: var(--texto-claro);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font: size 32px;
  margin-bottom: 15px;
  font-family: "Lexend", sans-serif;
  align-items: start;
}
.nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  list-style: none;
}

/* Efecto de subrayado */

.nav a {
  font-size: 16px;
  color: var(--texto-claro);
  text-decoration: none;
  padding-bottom: 4px;
  cursor: pointer;
  background-image: linear-gradient(#ffffff, #ffffff);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition:
    background-size 0.3s ease-in-out,
    padding 0.3s ease-in-out,
    border-left 0.3s ease-in-out;
}
.nav a:hover {
  background-size: 100% 2px;
  border-left: 3px white solid;
  border-radius: 2px;
  padding: 0 0 4px 8px;
}
/* Se empieza a editar el contenido del blog */
.container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* zona de párrafos */
.content-section {
  background-color: var(--bg-tarjeta-clara);
  margin: 15px;
  padding: 10px;
  display: flex;
  justify-content: center;
  overflow-wrap: break-word;
  line-height: 2;
  text-align: justify;
  font-family: var(--letra-parrafo);
}
.parrafo-container {
  margin: 10px;
  padding: 10px 100px;
  font-size: 16px;
}
.content-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-family: var(--letra-titulo);
  text-transform: uppercase;
  font-weight: bolder;
}
/* Titulos */
h3,
h4,
h5,
h6 {
  text-align: center;
  font-family: var(--letra-titulo);
  font-weight: 200;
  text-decoration: underline;
}
.conclusion {
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 2);
  color: white;
}
.entrada-contenedor {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
}
.carta-entrada {
  border: 2px black solid;
  width: 30%;
  display: flex;
  flex-direction: column;
  margin-bottom: 100px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3 ease;
}

.carta-entrada:hover {
  transform: translateY(-8px); /* Eleva la tarjeta 8 píxeles hacia arriba */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); /* Hace la sombra más grande y difuminada */
}
.carta-entrada > a {
  color: black;
  text-decoration: none;
}
.imagen-contenedor img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  padding-bottom: 10px;
}
figcaption {
  margin: 10px;
}
.lista {
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lista > .carta-entrada {
  width: 85%;
}

footer {
  background-color: var(--bg-oscuro);
  color: var(--texto-claro);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer ul {
  list-style: none;
  text-decoration: none;
}

li > a {
  text-decoration: none;
  color: white;
}
footer p {
  text-align: center;
  align-self: center;
  font-family: var(--letra-titulo);
  font-weight: 100;
}
li {
  margin: 15px;
  font-size: small;
}
@media (max-width: 789px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  header h1 {
    font-size: 24px;
    text-align: center;
  }
  .nav ul {
    justify-content: center;
    gap: 20px;
    padding: 0;
  }
  .entrada-contenedor {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px;
  }
  .carta-entrada {
    min-width: 80%;
    scroll-snap-align: center;
  }
  .parrafo-container {
    margin: 15px;
    padding: 0;
    line-height: 1.4;
  }
}
