:root {
    --color-fondo: rgb(235, 255, 239);
}

body { 
    background-color: var(--color-fondo)
}

p {
  font-family: "Segoe UI";
}

h1 {
  font-family: "Skranji", system-ui;
  font-weight: 10000;
  font-style: normal;
  color:rgb(2, 75, 0)
}

h1 {
  font-family: "Skranji", system-ui;
  font-size: 60px;
  font-weight: 1000;
  padding: 3px 39px;
  font-style: normal;
}

h2 {
  font-family: "Skranji", system-ui;
  font-weight: 300;
  font-style: normal;
}

h2 {
  font-family: "Skranji", system-ui;
  font-weight: 700;
  font-style: normal;
}

h3 {
  font-family: "Skranji", system-ui;
  font-weight: 400;
  font-style: normal;
}

h3 {
  font-family: "Skranji", system-ui;
  font-weight: 700;
  font-style: normal;
}

a {
  color: rgb(0, 104, 5);
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}


/* Contenedor de los dos vídeos */
.videos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px auto;
    width: 100%;
}

/* Cada vídeo con su título */
.video-item {
    width: 560px;
    max-width: 100%;
}

/* Títulos */
.video-item h2 {
    text-align: center;
    margin-bottom: 15px;
}

/* Vídeos */
.video-item iframe,
.video-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Adaptación a móviles */
@media (max-width: 768px) {
    .videos {
        flex-direction: column;
        align-items: center;
    }

    .video-item {
        width: 95%;
    }
}

.pagina {
width: 1000px;
height: 250px;
padding: 20px;
margin: 10px;
border: 8px solid rgb(2, 129, 76);
background-color: rgb(147, 224, 182);
}

.primero {
width: 600px;
height: 150px;
padding: 20px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.ultimo {
width: 600px;
height: 150px;
padding: 20px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.b {
width: 600px;
height: 150px;
padding: 20px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.caja6 {
width: 200px;
height: 10px;
padding: 20px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.caja7 {
width: 200px;
height: 10px;
padding: 20px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.caja8 {
width: 280px;
height: 10px;
padding: 20px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.caja9 {
width: 200px;
height: 10px;
padding: 18px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.caja10 {
width: 200px;
height: 10px;
padding: 18px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.caja11 {
width: 1000px;
height: 120px;
padding: 38px;
margin: 10px;
background-color: rgb(147, 224, 182);
}

.flex-container {
    display: flex;
    justify-content: space-around;
    /* flex-start | center | flex-end |
       space-between | space-around | space-evenly */
}

.flex-item {
background-color: rgb(147, 224, 182);
color: rgb(0, 0, 0);
padding: 10px;
margin: 5px;
}

.primero a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.ultimo a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.b a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.caja6 a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.caja7 a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.caja8 a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.caja9 a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

.caja10 a:hover {
  color: red;
  text-decoration: underline;
  text-shadow: 0 0 5px #fff, 0 0 10px rgb(14, 189, 49), 0 0 20px rgb(14, 189, 49);
}

header {
    display: flex;
    align-items: center;          /* logo y menú alineados en vertical */
    background-color: rgb(147, 224, 182);
    padding: 10px 20px;
}
header nav {
    margin-left: auto;            /* empuja el menú a la derecha */
}
header nav ul {
    display: flex;                /* los enlaces en fila */
    gap: 80px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagina {
    display: grid;
    grid-template-columns: 300px 2000fr;
    grid-template-rows: auto 100fr auto;
    grid-template-areas:
        "lateral  principal";
    gap: 0px 150px;
    min-height: 320px;
    padding: 30px 50px;
}
aside  { grid-area: lateral; }
main   { grid-area: principal; }

.contenedor { display: flex; height: 70px; }
.b { align-self: flex-end; }    /* el elemento B baja al final */
/* order: orden visual */
.primero { order: -1; }          /* pasa al principio */
.ultimo  { order: 1; }           /* pasa al final */

.catalogo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* FLEXBOX: el contenido de cada tarjeta, en columna */
.tarjeta {
    display: flex;
    flex-direction: column;
}
.boton {
    margin-top: auto;   /* empuja el botón al fondo */
}