*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#eef4fa;
}

header{
    width:100%;
    height:70px;
    background:#1565c0;
    color:white;
    display:flex;
    align-items:center;
    padding:0 20px;
    position:fixed;
    top:0;
    z-index:1000;
}

header h2{
    margin-left:20px;
}

#abrir,#cerrar{
    background:none;
    border:none;
    color:white;
    font-size:30px;
    cursor:pointer;
}

#menu{
    position:fixed;
    left:-320px;
    top:0;
    width:320px;
    height:100%;
    background:#0d47a1;
    transition:.4s;
    overflow-y:auto;
    padding-top:20px;
    z-index:9999;
}

#menu ul{
    list-style:none;
}

#menu li{
    border-bottom:1px solid rgba(255,255,255,.1);
}

#menu a{
    color:white;
    text-decoration:none;
    display:block;
    padding:16px;
}

#menu a:hover{
    background:#1976d2;
}

.contenido{
    margin-top:100px;
    padding:30px;
}

.inicio{
    max-width:1000px;
    margin:auto;
    background:white;
    border-radius:15px;
    padding:40px;
    box-shadow:0 0 15px rgba(0,0,0,.15);
}

.inicio h1{
    color:#1565c0;
    text-align:center;
    margin-bottom:20px;
}

.portada{
    width:100%;
    border-radius:15px;
    margin:20px 0;
}

footer{
    text-align:center;
    background:#1565c0;
    color:white;
    padding:20px;
    margin-top:50px;
}

.escala{
    max-width:1100px;
    margin:auto;
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.escala-header{
    background:linear-gradient(135deg,#1565c0,#42a5f5);
    color:white;
    padding:45px;
    text-align:center;
}

.escala-header h1{
    font-size:42px;
    margin-bottom:10px;
}

.escala-header p{
    font-size:20px;
}

.escala-body{
    padding:40px;
}

.escala-body section{
    margin-bottom:35px;
}

.escala-body h2{
    color:#1565c0;
    margin-bottom:15px;
    border-left:6px solid #42a5f5;
    padding-left:12px;
}

.escala-body p{
    text-align:justify;
    line-height:1.8;
    color:#444;
}

.escala-body ul{
    margin-left:25px;
}

.escala-body li{
    margin-bottom:12px;
    line-height:1.7;
}

.alerta{
    background:#fff8e1;
    border-left:8px solid #ff9800;
    padding:25px;
    border-radius:10px;
    margin:40px 0;
}

.alerta h2{
    border:none;
    color:#e65100;
}

.pregunta{
    background:#f8f9fa;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
    border-left:6px solid #1565c0;
}

.pregunta h3{
    color:#1565c0;
    margin-bottom:10px;
}

.btn-regresar{
    display:inline-block;
    margin-top:20px;
    background:#1565c0;
    color:white;
    text-decoration:none;
    padding:14px 30px;
    border-radius:8px;
    transition:.3s;
}

.btn-regresar:hover{
    background:#0d47a1;
}

@media(max-width:768px){
.escala-header{
padding:30px;
}
.escala-header h1{
font-size:30px;
}
.escala-body{
padding:20px;
}

}

.portada {
    display: block;
    width: 350px;
    max-width: 90%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
}


.imagen-tema {
    display: block;
    width: 750px;
    max-width: 90%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
}

#cerrar {
    position:absolute;
    top:15px;
    right:18px;
}

#menu > ul {
    margin-top:50px;
}

#menu .menu-medicina a {
    background-color: red !important;
    color: white !important;
    font-weight: bold;
}

#menu .menu-medicina a i {
    color: white !important;
}

.categoria-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.boton-acordeon {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.boton-acordeon span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boton-acordeon:hover {
    background-color: #b71c1c;
}

.flecha {
    transition: transform 0.3s ease;
}

.categoria-menu.activo .flecha {
    transform: rotate(180deg);
}

.submenu-acordeon {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.submenu-acordeon li a {
    display: block;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 15px 10px 45px;
    transition: all 0.3s ease;
}

.submenu-acordeon li a:hover {
    background-color: #8e0000;
    color: white;
    padding-left: 50px;
}

.navegacion-temas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-regresar,
.btn-siguiente {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-regresar {
    background-color: #555;
    color: white;
}

.btn-siguiente {
    background-color: #b71c1c;
    color: white;
}

.btn-regresar:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-siguiente:hover {
    background-color: #8e0000;
    transform: translateY(-2px);
}

.logo-header {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 55px;
    width: auto;
    object-fit: contain;
}

.buscador {
    margin-left: auto;
    display: flex;
    align-items: center;
}

#boton-buscar {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 21px;
    cursor: pointer;
}

#boton-buscar:hover {
    background: rgba(255,255,255,0.15);
}

.campo-busqueda {
    display: none;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-left: 5px;
}

.campo-busqueda.activo {
    display: flex;
}

.campo-busqueda input {
    width: 190px;
    height: 38px;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 14px;
}

.campo-busqueda button {
    width: 40px;
    height: 38px;
    border: none;
    background: white;
    color: #1565c0;
    cursor: pointer;
    font-size: 15px;
}

.resultados-busqueda {
    margin-top: 25px;
}

.resultado {
    display: block;
    background: #f8f9fa;
    border-left: 6px solid #1565c0;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.resultado:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.resultado h3 {
    color: #1565c0;
    margin-bottom: 8px;
}

.resultado p {
    margin: 0;
    color: #666;
}

.sin-resultados {
    text-align: center;
    padding: 40px 20px;
}

.sin-resultados h2 {
    color: #1565c0;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    background: #1565c0;
    color: white;
    padding: 25px 20px;
    margin-top: 50px;
}

footer p {
    margin: 6px 0;
}

footer .autores {
    font-size: 14px;
}

footer .revisor {
    font-size: 14px;
}

footer strong {
    font-weight: bold;
}