 *
{
	margin: 0;
	padding: 0;
}
@font-face
{
	font-family: AVGARDM;
	src: url(../font/AVGARDM.TTF);
	font-weight: normal;
}
.lexend-<uniquifier> 
{
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
.font-logotipo
{
	font-family: AVGARDM;
	font-weight: normal;
}
body 
{
	font-size: 18px;
	font-family: Lexend, sans-serif;
	font-style: normal;
}
figure, img 
{
	margin: 0;
	padding: 0;
	line-height: 0;
}
header {
    background: #1e334d;
    color: #ededed;
    width: 100%;                  /* siempre 100% del ancho disponible */
    box-sizing: border-box;
    padding: 1.2em 1em;
    
    display: flex;
    flex-direction: column;       /* por defecto: vertical (menor a 768px) */
    align-items: center;          /* centrado horizontalmente */
    justify-content: center;      /* centrado verticalmente si hace falta */
    gap: 0.8em;
}

#logotipo {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

#logotipo img {
    width: 60px;
    height: auto;
}

h1 {
    font-size: 1.6em;
    margin: 0;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    margin: 0;
    text-align: center;
}

h2 span {
    background: #ededed;
    padding: 0.1em 0.3em;
    color: #1e334d;
    border-radius: 4px;
}
h3
{
	color: #1e334d;
	margin: 0.5em 0;
}

footer {
    background: #1e334d;
    color: #ededed;
    padding: 2.5em 1.5em 2em;
    font-size: 0.95em;
    width: 100%;                    /* fuerza 100% del ancho de la ventana */
    box-sizing: border-box;         /* el padding no suma al ancho */
}

/* Contenedores internos */
footer > div {  /* #contet-list y #content-redes */
    width: 100%;
    margin-bottom: 1.8em;
}

/* Mapa de sitio */
#contet-list h4 {
    margin-bottom: 0.8em;
    font-size: 1.1em;
    text-align: center;
}

#list-sitio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2em 2.5em;
    list-style: none;
    padding: 0;
    margin: 0;
}

#list-sitio li a {
    color: #ededed;
    text-decoration: none;
    transition: color 0.3s;
}

#list-sitio li a:hover {
    color: #4a6381;
}

/* Redes sociales */
#content-redes {
    text-align: center;
}

#content-redes ul#list-redes {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0 0.8em;
    padding: 0;
    list-style: none;
}

#content-redes li {
    background: #ededed;
    border-radius: 6px;
    padding: 0.5em;
    transition: background 0.3s;
}

#content-redes li:hover {
    background: #4a6381;
}

#content-redes img {
    width: 28px;
    height: 28px;
    display: block;
}

#content-redes span {
    display: block;
    font-size: 0.85em;
    font-weight: 200;
    opacity: 0.9;
}
main  {
    display: flex;
    justify-content: center;
    margin: 2em;
}
#form {
    max-width: 1024px;
}
#form h3, #form p 
{
    width: 100%;
    margin: 1em 0;
}
.campos 
{
    width: 100%;
    margin: 0;
    list-style: none;
    width: 100%;
    padding: 0;
}
.campos li
{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 1em 0;
}
.campos li label 
{
    width: 100%;
}
.campos li input, .campos li textarea
{
    width: 90%;
    max-width: 600px;
    padding: 0.2em;
}
span.enviar{
    padding: 1em 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
span.enviar input#enviar
{
   width: 100%;
   max-width: 400px;
   padding: 0.6em 0;
   background: #4a6381;
   color: #ededed;
   transition: 1s all ease-out;
   border: none;
   border-radius: 0.2em;
   cursor: pointer;
} 
span.enviar input#enviar:hover
{
    background: #ededed;
    color: #4a6381;
}
.captcha
{
    padding: 1em;
    display: flex;
    justify-content: center;
}
.captcha .g-recaptcha
{
    margin: 1em 0;
}

/* 480px+ → 2 columnas → queremos 2 + 2 (incluyendo card-bg en la segunda fila) */
@media (min-width: 480px) {
    #content-opciones {
        grid-template-columns: repeat(2, 1fr);
    }
  
}

/* 768px+ → 3 columnas → aquí SÍ queremos que card-bg ocupe toda la fila */
@media (min-width: 767px) {
    #content-opciones {
        grid-template-columns: repeat(3, 1fr);
    }
     
}


/* 1024px+ → 4 columnas → todo en una fila, card-bg como una más */
@media (min-width: 1024px) {
    #content-opciones {
        grid-template-columns: repeat(4, 1fr);
    }
    footer {
        padding: 3em 5% 2.5em;           /* mismo padding lateral que header */
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4em;
        width: 100%;                     /* explícito: 100% del ancho */
        margin: 0;                       /* elimina cualquier centrado */
        box-sizing: border-box;
    }

    #contet-list,
    #content-redes {
        flex: 1;
        margin-bottom: 0;
    }

    #contet-list {
        max-width: 40%;
    }

    #content-redes {
        max-width: 45%;
        text-align: right;
    }

    #list-sitio {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6em 3em;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #contet-list h4 {
        grid-column: 1 / -1;
        text-align: left;
    }

    #list-sitio li:nth-child(1) { grid-column: 1; grid-row: 2; }
    #list-sitio li:nth-child(2) { grid-column: 2; grid-row: 2; }
    #list-sitio li:nth-child(3) { grid-column: 1; grid-row: 3; }
    #list-sitio li:nth-child(4) { grid-column: 2; grid-row: 3; }
    #list-sitio li:nth-child(5) { grid-column: 1; grid-row: 4; }

    #content-redes ul#list-redes {
        justify-content: flex-end;
    }

    #content-redes span {
        text-align: right;
    }
    .campos li
    {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .campos li label {
        width: auto;
    }

}

/* Solo en el rango de 3 columnas forzamos que card-bg ocupe toda la fila */
@media (min-width: 768px) and (max-width: 1023px) {
   
     footer {
        padding: 2.8em 3em;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #contet-list,
    #content-redes {
        flex: 1 1 45%;
    }

    #list-sitio {
        column-count: 2;
    }

}
@media (min-width: 768px) {
    header {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 1.2em 5%;            /* padding lateral proporcional, mismo que footer */
        gap: 2em;
    }

    #logotipo {
        justify-content: flex-start;
    }

    #content-name {
        text-align: right;
    }

    h1 { font-size: 2.1em; }
    h2 { font-size: 1.9em; }
}
/* Opcional: en pantallas muy pequeñas (< 480px) podemos ajustar fuente más pequeña si quieres */
@media (max-width: 479px) {
    h1 { font-size: 1.4em; }
    h2 { font-size: 1.3em; }
}