@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

* {
    box-sizing: border-box;
    font-family: "DM Sans";
    margin: 0;
    padding: 0;
}
:root {
    --color-identidad:#16324F;
    --color-destacado:#9E3F5B;
    --color-informacion-secundaria:#6D8194;
    --color-fondo:#F1EEE7;
    --color-texto-principal:#202124;
    --color-botones:#D66A5D;
    --altura-linea-textos: 1.6;
    --altura-linea-titulos: 1.1;
    --ancho-contenedor: min(75rem, calc(100% - 2rem));
    --espaciado-base: 1rem;
    --sombra-caja: 0 4px 4px hsl(0 0% 0% / 25%);
}
html {
  scrollbar-gutter: stable;
  overflow-x: hidden;

  display: flex;
  height: 100%;
  width: 100%;
}
body {
    background-color: var(--color-informacion-secundaria);
    font-family: var(--fuente-principal);
    margin: 0;
    line-height: var(--altura-linea-textos);
    text-wrap: pretty;

    min-height: 100vh;
    max-width: 100vw;
    min-width: 100vw;
    
    padding: 0;
    margin: 0;
}

.principal {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
a {
    font-family: var(--fuente-titulos);
    text-wrap: balance;
    line-height: var(--altura-linea-titulos);
}
h1,
h2,
h3,
h4 {
    color: var(--color-fondo);
    font-family: "Space Grotesk";
}
img {
    max-width: 100%;
    height: auto;
}
a{
    text-decoration: none;
    color: var(--color-texto-principal);
    font-weight: bold;
}
a:hover, 
a:focus-visible {
    color: var(--color-informacion-secundaria);
}
ul,
ol,
li {
    padding: 1;
    list-style: none;
}
.contenedora {
    width: var(--ancho-contenedor);
    margin-inline: auto;
}
figure{
    margin: 0;
}
header,
footer {
    background-color: var(--color-fondo);
    color: var(--color-identidad);
    padding-block: var(--espaciado-base);
    padding: 0.8rem;
}
footer {
    justify-self: flex-end;}
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-informacion-secundaria);

    width: 100%;
}
header ul {list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
header #logo_header img {
    height: 100%;
    width: 7.5em;
}
header nav ul {
    margin-block: 0;
}
header nav a {
    background-color: hsl(from var(--color-botones) h s l / 90%);
    color: var(--color-texto-principal);
    display: block;
    width: fit-content;
    padding-block: calc(var(--espaciado-base) / 2);
    padding-inline: var(--espaciado-base);
    border-radius: calc(var(--espaciado-base) / 4);
    transition: background-color 0.5s ease, color 0.5s ease;
}
header nav a:hover,
header nav a:focus-visible {
    background-color: var(--color-destacado);
    color: var(--color-texto-principal);
}
section {
    padding-block: calc(var(--espaciado-base) * 2);
}
section h2,
section h3, 
section h4 {
    text-align: center;
    width: 100%;
    margin-bottom: 0.4rem;
}
.comitente>*:not(h1) {
    font-size: 1.25em;
}

nav ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* clases e ids propios */
#logo_header {width: 45px;}

#foto_valen {
    width: 300px;
    border-radius: 10%;
}
#foto_luz {
    width: 250px;
    height: 250px;
    border-radius: 7%;
}

#datos h3 a{color: var(--color-destacado);}
#datos h3 a:focus {color: var(--color-identidad);}
#datos h3 a:hover{color: var(--color-informacion-secundaria);}

.presentacion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
}
.presentacion #imagen {
    display: flex;
    justify-content: center;
    flex-direction: row;
    background-color: var(--color-fondo);

}
.presentacion #imagen img {
    width: 35rem;
}
.presentacion #imagen #valen_png {
    width: 20rem;
}

.contenedor-tarjetas {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 12px;

    text-align: center;
}

.contenedor-tarjetas .tarjetas {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 12px;
    padding: 1rem;
}
.contenedor-tarjetas .tarjeta {
    padding: 1rem;
    border: 2px solid var(--color-identidad);
    border-radius: 12px;
    background-color: var(--color-destacado);
    color: var(--color-fondo);
}
.datos.contenedor-tarjetas .tarjeta {
    padding: 1rem 0.5rem;
    width: 40%;
}

#equipo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: var(--color-destacado);
    border: 3px solid var(--color-identidad);
    border-radius: 12px;
    width: 50%;
    margin: 0 auto 2rem auto;
}
#equipo .rotulo {
    width: 40%;
    margin: 0 auto; 
    background-color: var(--color-botones);
    border: 3px solid var(--color-botones);
    padding: 1rem;
    border-radius: 12px;
    color: var();
}

#programas {display: flex;
    justify-content: center;
    margin: 0 0 2rem 0;
    
    background-color: var(--color-identidad);}
#programas img {width: 20rem;
    height: 100%;}
