/* Asegura que el diseño sea escalable en todos los dispositivos */
html {
    font-size: 18px; /* Aumenta el tamaño base para mejorar legibilidad */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

/* Títulos */
h1 {
    background-color: #0073e6;
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    font-size: 1.5rem; /* 24px aprox */
    margin-bottom: 1rem;
}

/* Subtítulos */
h3 {
    font-size: 1rem; /* 16px */
    border-top: 1px solid lightblue;
    color: white;
    background-color: #40e0d0;
    font-weight: bold;
    padding: 0.7rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;
}

/* Enlaces */
a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover en enlaces */
a:not([name]):hover {
    background-color: yellow;
    color: black;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
}

/* Enlaces de índice */
a.indice {
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 5px;
    display: inline-block;
    box-sizing: border-box;
}

a.indice:hover {
    background-color: #40e0d0;
    color: white;
}

/* Párrafos */
p {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    margin: 0.7rem 0;
}

/* Listas */
ol, ul {
    padding-left: 1.5rem;
}

ol > li {
    font-size: 1rem; /* 16px */
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Negrita */
strong {
    color: #444;
}

/* Contenedores */
div {
    padding: 0.7rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Mejora la visibilidad en pantallas pequeñas */
@media (max-width: 768px) {
    html {
        font-size: 20px; /* Aumenta el tamaño en móviles */
    }

    body {
        padding: 0.8rem;
    }

    h1 {
        font-size: 1.7rem; /* 27px */
        padding: 0.8rem;
    }

    h3 {
        font-size: 1.1rem; /* 18px */
    }

    p, li {
        font-size: 1.1rem; /* 18px */
    }
}
