﻿/* --- Contenido original --- */

/* 🔹 Opción 1: Corrige solo textos grises específicos */
span[style*="color: #1F1F1F"],
span[style*="color: #333333"],
span[style*="color: #666666"],
span[style*="color: #999999"],
span[style*="color: #CCCCCC"],
span[style*="color: #D3D3D3"] {
    color: #000000 !important; /* Convierte los tonos grises en negro */
}

/* 🔹 Estilo general para formatear texto - tamaño, fuente, justificación */
/* Estilo general para escritorio */
body, .WordSection1, .WordSection1 * {
    font-family: Georgia, serif;
    font-size: 24px !important;
    line-height: 1.4!important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0px !important;  /* Reduce el espacio superior */
}
p {
    margin-top: 3px !important;  /* Reduce el espacio superior */
    margin-bottom: 3px !important;  /* Reduce el espacio inferior */
    line-height: 1.3 !important;  /* Ajusta la altura de línea para mayor claridad */
    padding: 0 !important;  /* Elimina cualquier relleno innecesario */
}

/* 🔹 Restablece márgenes en los párrafos con clase MsoNormal */
p.MsoNormal {
    margin-top: 3px !important; /* Reduce el espacio superior */
    margin-bottom: 3px !important; /* Reduce el espacio inferior */
    padding: 0 !important;
    line-height: 1.0 !important; /* Ajusta la altura de línea */
    text-align: justify !important; /* Asegura justificación */
}

/* 🔹 Asegura que los spans dentro de los párrafos no generen saltos de línea */
p.MsoNormal span {
    display: inline !important;
}

/* 🔹 Ajuste para mejorar la compatibilidad con el estilo de Microsoft Word */
p.MsoNormal[style*="margin-bottom:0cm"] {
    margin-bottom: 5px !important; /* Forzar una reducción en el margen inferior */
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
  
/* --- Nueva regla para espaciado lateral --- */
/* Agrega un padding izquierdo y derecho al body para alejar el texto de los bordes */
body {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ==== ESTILOS DEL MENÚ LATERAL ==== */
/* Botón de menú hamburguesa */
.menu-toggle {
    position: fixed;
    top: 80px;
    left: 0px;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    font-size: 18px;
}

/* Sidebar del menú */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    padding-top: 20px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-250px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 9999;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar h1 {
    color: white;
    text-align: center;
    font-size: 18px;
    margin-top: 60px;
}

/* Botón de logout */
#logout {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}

#logout:hover {
    background-color: #c0392b;
}


/* 🔹 Tablets (pantallas medianas: 768px - 1024px) */
@media (max-width: 1024px) {
    body, .WordSection1, .WordSection1 * {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .menu-toggle {
        top: 60px;
        font-size: 16px;
        padding: 8px;
    }

    .sidebar {
        width: 220px;
    }

    .sidebar h1 {
        font-size: 16px;
    }
}

/* 🔹 Móviles (pantallas pequeñas: 480px - 767px) */
@media (max-width: 767px) {
    body, .WordSection1, .WordSection1 * {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    body {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .menu-toggle {
        top: 50px;
        font-size: 14px;
        padding: 6px;
    }

    .sidebar {
        width: 200px;
    }

    #logout {
        font-size: 12px;
        padding: 8px;
    }
}

/* 🔹 Móviles muy pequeños (pantallas < 480px) */
@media (max-width: 480px) {
    body, .WordSection1, .WordSection1 * {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .menu-toggle {
        top: 40px;
        font-size: 12px;
        padding: 5px;
    }

    .sidebar {
        width: 180px;
    }

    .sidebar h1 {
        font-size: 14px;
    }

    #logout {
        font-size: 11px;
    }
}
