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;
    line-height: 1;
}

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

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;
}

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

ul li{
    line-height: 1.4;
}

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

section{
    margin-bottom: 25px;
}

p{
    line-height: 1.2;
}

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


h1{
    font-size: 1.8em;
    text-align: center;
}

h2{
    color: #0056b3;
    padding-bottom: 5px;
    margin-top: 40px;
}

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

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

ul.resumen-materia{
    display: inline-block;
    align-items: center;
    text-align: left;
}

ul.resumen-materia li{
    margin-bottom: 8px;
}

ul.resumen-materia li:last-child {
    margin-bottom: 0;
}

.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: 5px;
    padding-right: 5px;
}

.menu-superior {
    background-color: #3b44b7;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #AAAAAA;
	box-shadow: 0px 1px 10px #AAAAAA;
    margin-bottom: 20px;
}

.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 a {
    display: block;
    color: white;
    font-weight: 25px;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

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

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

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

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

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

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{
	width: 250px;
}

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: 52px;
    width: 52px;
    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;
}

.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;
	}
}

.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;
}

.contenedor-galeria div.ff{
    width: 170px;
    height: 260px;
}

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

img.tt{
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
}

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

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

:root {
    --azul-fondo: #f0f7ff;    /* Azul muy claro y profesional */
    --azul-borde: #cfe2ff;    /* Un tono más oscuro para el contorno */
    --amarillo-pastel: #fff9db; /* Amarillo suave para la solución */
    --amarillo-borde: #ffec99;  /* Borde para resaltar la solución */
    --texto-color: #2c3e50;
}

.contenedor-galeria2 {
    display: block;
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
    margin: auto 0 20px 0;
    padding: 25px;
    background-color: var(--azul-fondo);
    border: 1px solid var(--azul-borde);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contenedor-galeria2 h3, .contenedor-galeria2 p{
    width: 100%;
}

.contenedor-galeria2 h3 {
    color: #d81b60;
    margin-top: 0;
}

details summary{
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

details.desarrollo summary {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #0056b3;
    outline: none;
    transition: color 0.3s;
}

details.desarrollo summary:hover {
    color: rgb(235, 16, 255);
}

details.desarrollo summary::after {
    content: " 👇 Ver Solución"; 
    float: left;
}

details.desarrollo[open] summary::after {
    content: " 👆 Ocultar Solución";
}

.solucion {
    background-color: var(--amarillo-pastel);
    border-left: 5px solid var(--amarillo-borde);
    padding: 20px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
    color: #444;
}

.btn-link{
    color: blue;
}

.btn-link:hover{
    color: rgb(235, 16, 255);
}

details.faqs{
    margin: 17px auto;
    padding: 15px;
    width: 90%;
    border: 5px solid #3b44b7;
}

details.faqs summary::after {
    content: " 👇 "; 
    float: left;
}

details.faqs[open] summary::after {
    content: " 👆 ";
}


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

    p, ul.resumen-materia{
        font-size: 20px;
    }

    section{
        margin-bottom: 60px;
    }

    .texto-lateral, .texto-centrado{
        width: 62%;
        margin: 0 auto;
    }
    
    .contenedor-galeria{
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 15px;
    }

    .contenedor-galeria a.a2{
        margin: 0 auto 30px auto;
    }
        
	.contenedor-galeria div.ff{
		width: 238px;
		height: 300px;
	}
    
    img.tt{
        height: 205px;
    }

    .contenedor-galeria2{
        margin: 0 auto 40px auto;
        font-size: 20px;
    }

    details.faqs{
        width: 94%;
    }

    summary{
        font-size: 20px;
    }
}

/* Estilo para la tabla SEO */
.tabla-seo {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
}
.tabla-seo th, .tabla-seo td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}
.tabla-seo th {
    background-color: #f0f7ff;
    color: #0056b3;
}

/* Grid de Tarjetas */
.contenedor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-tema {
    background-color: #f0f7ff; /* Tu azul claro */
    border: 1px solid #cfe2ff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.card-tema:hover {
    transform: translateY(-5px); /* Efecto de elevación */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-tema h3.rosa {
    color: #d81b60; /* Tu rosa para los H3 */
    margin-top: 0;
}

.boton-enlace {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}


.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 */
}
.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;
}