body{
    background: rgb(255, 255, 255);    
    font-family: Helvetica, Sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	vertical-align: baseline;
}

a{
    margin: 0;
	padding: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

button{
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

hr{
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, transparent, #2c3e50, transparent);
    margin: 20px 0;
    opacity: 0.3;
}

img{
    vertical-align: middle;
    display: flex;
}

.texto-centrado{
    display: block;
    width: 100%;
    justify-content: center;
    margin-bottom: 35px;
}

.texto-lateral{
    display: block;
    width: 100%;
    justify-content: left;
}

ul, ol {
    margin-left: 0;
    padding-left: 1.5rem;
}

ul li{
    line-height: 1.5;
}

header nav{
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left: 0;
}

p{
    font-size: 18px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 20px;
}

p + ul, p + ol{
    margin-top: 0;
}

h2 + h3{
    margin-top: 15px;
}

section > h3 {
    font-size: 1.2em;
}

/***********************************************************INICIO***********************************************************************/


h1{
    font-size: 2em;
    line-height: 1.3;
    margin-top: 0;
}

h1.primer{
    margin-top: 20px;
}

h2{
    color: #0056b3;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 6px;
}

h2.indice{
    margin-top: 20px;
}

h3{
    line-height: 1;
    margin-top: 25px;
    margin-bottom: 6px;
}

.titulo-centrado{
    text-align: center;
}

a.btn-practica:visited{
	color: #00f;
}

.parent{
	width: 100%;
    overflow: auto;
	box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
	top: 0;
	right: 0;
	left: 0;
    margin: 0 auto;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 100px;
}

.menu-superior {
    background-color: #3b44b7;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #AAAAAA;
	box-shadow: 0px 1px 10px #AAAAAA;
    margin-bottom: 20px;
    height: 75px;
    align-items: center;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.menu-superior.oculto {
  transform: translateY(-100%);
}

.menu-superior ul {
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.logo{
    margin: 0 auto;
}

.dropdown{
    display: none;
}

.menu-superior li {
    position: relative; /* Necesario para posicionar el desplegable */
}

.menu-superior li button {
    display: block;
    color: white;
    font-weight: 25px;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.menu-superior li button:hover {
    background-color: #6872ff;
}

.dropdown-content {
    display: none;
    position: absolute;
    flex-direction: column;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-content a {
    text-decoration: none;
    color: #333 !important;
    padding: 12px 16px;
    text-align: left !important;
    border-bottom: 1px solid #ddd;
}

.dropdown-content a:hover {
    background-color: #6872ff;
    color: #fff !important;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

footer{
    width: 100%;
	padding-bottom: 25px;
	padding-top: 30px;
    margin-top: 20px;
	margin-bottom: 0;
    clear: both;
    left: 0;
    right: 0;
	border-top: 1px solid #AAAAAA;
}

footer div a{
	color: #000;
	cursor: pointer;
}

footer div a:visited{
	color: #000;
}

.icono-footer, .copy{
	box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: auto;
}

.icono-footer img{
    vertical-align: middle;
}

.copy{
	padding-top: 5px;
	text-align: center;
	font-size: 10px;
	font-weight: bold;
}

.legal{
	box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 80%;
    margin: auto;
}

.legal div{
	margin: 5px;
    text-align: center;
}

.menu-toggle{
    position: fixed;
    height: 64px;
    width: 64px;
    bottom: 50px;
    right: 20px;
    background-color: #d9d9d9;
    color: #fff;
    border-radius: 50%;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 9999;
}

.menu-toggle:hover{
    box-shadow: 0 4px 6px #737373;
}

.modal{
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); /* Fondo semi-transparente */
}

.modal-content{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.close-btn{
    padding: 10px 45px 8px 12px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
}

.indice-vertical{
    width: 80%;
    text-align: left;
    background-color: #fff;
    overflow-y: auto;
}

.indice-vertical h2{
    margin-left: 15px;
    margin-right: 25px;
}

.acordeon-btn{
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.4s;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.acordeon-btn:hover, .active{
    background-color: #ccc;
}

.acordeon-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.acordeon-content a{
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px solid #f1f1f1;
    font-size: 15px;
}

@media only screen and (min-width: 800px){
    .parent{
		overflow: visible;
        padding-left: 0;
        padding-right: 0;
	}

    .menu-superior{
        margin-bottom: 60px;
    }
    
    .logo{
        margin-left: 20px;
        margin-right: 50px;
    }

    .dropdown{
        display: block;
    }

    .menu-toggle{
        display: none;
    }

    footer{
		margin-top: 100px;
	}

    .legal{
        width: 70%;
    }
}

.contenedor-galeria{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3px;
    width: 100%;
    padding: 10px 0px;
    z-index: 0;
}

.contenedor-galeria a.a2{
    margin: 0 auto 15px auto;
    text-decoration: none;
}

div.ff, div.f1, div.f2, div.f3{
    width: 160px;
    height: 160px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

div.ff{
    background-color: #fff9db;
    border: 3px solid #ffec99;
}

div.f1{
    background-color: #ebfbee;
    border: 3px solid #d8f5a2;
}

div.f2{
    background-color: #e7f5ff;
    border: 3px solid #d0ebff;
}

div.f3{
    background-color: #fbf2fc;
    border: 3px solid #eebefa;
}

.contenedor-galeria div.dd{
    white-space: wrap;
    text-align: center;
    justify-content: center;
    font-weight: bold;
}

img.tt{
    width: 90%;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
}

h3.a1{
    font-size: 20px;
    margin: 2px;
    line-height: 1.2;
    color: #000;
}

/**********************************************************PLANTILLAS********************************************************************/

/* Temas Recientes */
.lista-recientes{
    list-style: none;
    padding: 0;
}

.lista-recientes li{
    margin-bottom: 12px;
    padding: 10px;
    background: #fdfdfd;
    border-left: 4px solid #d81b60; /* Rosa en el borde izquierdo */
}

.lista-recientes li a:visited{
    color: #00f;
}

.badge{
    background-color: #ffeb3b; /* Amarillo para resaltar "Nuevo" */
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 10px;
}

.temas-rapidos{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.tag-tema{
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #d81b60; /* Tu rosa para destacar */
    color: #d81b60;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.tag-tema:hover{
    background-color: #d81b60;
    color: white;
}

@media only screen and (min-width: 1000px){
    h1{
        font-size: 42px;
    }

    h2{
        font-size: 35px;
    }

    section > h3 {
        font-size: 22px;
    }

    h3{
        margin-top: 40px;
    }

    p, h3{
        font-size: 20px;
    }

    .texto-lateral, .texto-centrado{
        width: 62%;
        margin: 0 auto 55px auto;
    }
    
    .contenedor-galeria{
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 15px;
    }
        
	div.ff, div.f1, div.f2, div.f3{
		width: 210px;
        height: 210px;
	}

    img.tt{
        width: 100%;
    }
}