/* Variables de colores TECNM */
:root {
    --tec-blue: #003366;
    --tec-light-blue: #0066cc;
    --tec-white: #ffffff;
    --tec-gray: #f8f9fa;
    --tec-dark-gray: #343a40;
    --gradient-primary: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 51, 102, 0.05) 100%);
    --shadow-soft: 0 4px 20px rgba(0, 51, 102, 0.08);
    --shadow-strong: 0 8px 30px rgba(0, 51, 102, 0.12);
    --border-color: rgba(0, 51, 102, 0.1);
    
    /* Variables para modo oscuro */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-surface-hover: #2d2d2d;
    --dark-surface-active: #333333;
    --dark-text: #e0e0e0;
    --dark-text-secondary: #a0a0a0;
    --dark-border: #333333;
    --dark-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --dark-gradient: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
}

/* Estilos para el menú lateral de accesibilidad */
.accessibility-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 120px;
    background: var(--gradient-primary);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tec-white);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
}

.accessibility-tab:hover {
    width: 45px;
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    box-shadow: var(--shadow-strong);
}

.accessibility-tab i {
    font-size: 24px;
    transform: rotate(0deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--tec-white);
}

.accessibility-tab.active i {
    transform: rotate(180deg);
}

/* Asegurar que la pestaña sea visible en modo oscuro */
body.dark-mode .accessibility-tab {
    background: var(--dark-gradient);
    border-color: var(--dark-border);
    box-shadow: var(--dark-shadow);
}

body.dark-mode .accessibility-tab:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
}

/* Menú lateral */
.accessibility-sidebar {
    position: fixed;
    left: -300px;
    top: 80px;
    width: 300px;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-strong);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    transform: translateZ(0);
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.accessibility-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 1;
    z-index: -1;
}

.accessibility-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.95) 100%
    );
    z-index: -1;
}

.accessibility-sidebar.active {
    left: 0;
    box-shadow: var(--shadow-strong);
}

.accessibility-sidebar.active + .accessibility-tab {
    left: 300px;
}

/* Encabezado del menú */
.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-soft);
}

.accessibility-header h3 {
    margin: 0;
    color: var(--tec-white);
    font-size: 1.3em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Botones del menú */
.accessibility-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    flex: 1;
    backdrop-filter: blur(10px);
}

.accessibility-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 20px 25px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--tec-blue);
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 0 var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.accessibility-menu button:last-child {
    border-bottom: none;
}

.accessibility-menu button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.accessibility-menu button:hover {
    background: var(--tec-white);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.accessibility-menu button:hover::before {
    transform: scaleY(1);
}

.accessibility-menu button i {
    width: 24px;
    text-align: center;
    color: var(--tec-light-blue);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.accessibility-menu button:hover i {
    transform: scale(1.1);
}

/* Secciones del menú */
.accessibility-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.accessibility-section:last-child {
    border-bottom: none;
}

.accessibility-section-title {
    padding: 0 25px 15px;
    color: var(--tec-blue);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.7;
}

/* Overlay para cerrar el menú */
.accessibility-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    transform: translateZ(0);
    will-change: opacity, visibility;
}

.accessibility-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modos de accesibilidad */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.reading-mode {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fafafa;
}

body.high-contrast {
    background-color: #000000;
    color: #ffffff;
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .accessibility-sidebar {
        width: 280px;
        height: calc(100vh - 60px);
    }
    
    .accessibility-menu button {
        padding: 18px 20px;
        font-size: 1em;
    }
    
    .accessibility-section-title {
        padding: 0 20px 12px;
    }
}

/* Estilos específicos para modo oscuro */
body.dark-mode .accessibility-sidebar {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    box-shadow: var(--dark-shadow);
}

body.dark-mode .accessibility-menu button {
    background: var(--dark-surface);
    color: var(--dark-text);
    border-bottom-color: var(--dark-border);
    box-shadow: 0 1px 0 var(--dark-border);
}

body.dark-mode .accessibility-menu button:hover {
    background: var(--dark-surface-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .accessibility-section-title {
    color: var(--dark-text-secondary);
}

body.dark-mode .accessibility-menu button i {
    color: var(--dark-text-secondary);
}

body.dark-mode .accessibility-header {
    background: var(--dark-gradient);
    border-bottom-color: var(--dark-border);
}

body.dark-mode .accessibility-header h3 {
    color: var(--dark-text);
}

/* Ajustes para elementos comunes en modo oscuro */
body.dark-mode * {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode button {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode input:hover,
body.dark-mode textarea:hover,
body.dark-mode select:hover,
body.dark-mode button:hover {
    background-color: var(--dark-surface-hover);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    background-color: var(--dark-surface-active);
    border-color: var(--dark-text-secondary);
}

/* Ajustes para imágenes en modo oscuro */
body.dark-mode img {
    filter: grayscale(20%) brightness(0.9);
}

/* Ajustes para enlaces en modo oscuro */
body.dark-mode a {
    color: var(--dark-text-secondary);
}

body.dark-mode a:hover {
    color: var(--dark-text);
}

/* Ajustes para tablas en modo oscuro */
body.dark-mode table {
    border-color: var(--dark-border);
}

body.dark-mode th,
body.dark-mode td {
    border-color: var(--dark-border);
    background-color: var(--dark-surface);
}

body.dark-mode th {
    background-color: var(--dark-surface-hover);
}

/* Ajustes para listas en modo oscuro */
body.dark-mode ul,
body.dark-mode ol {
    background-color: transparent;
}

body.dark-mode li {
    background-color: transparent;
}

/* Ajustes para citas y bloques de código */
body.dark-mode blockquote,
body.dark-mode pre,
body.dark-mode code {
    background-color: var(--dark-surface-hover);
    border-color: var(--dark-border);
}

/* Ajustes para elementos de formulario */
body.dark-mode label {
    color: var(--dark-text-secondary);
}

body.dark-mode fieldset {
    border-color: var(--dark-border);
}

body.dark-mode legend {
    color: var(--dark-text);
}

/* Ajustes para elementos de navegación */
body.dark-mode nav {
    background-color: var(--dark-surface);
}

body.dark-mode nav a {
    color: var(--dark-text-secondary);
}

body.dark-mode nav a:hover {
    color: var(--dark-text);
    background-color: var(--dark-surface-hover);
}

/* Ajustes para elementos de diálogo */
body.dark-mode dialog {
    background-color: var(--dark-surface);
    border-color: var(--dark-border);
}

/* Ajustes para elementos de progreso */
body.dark-mode progress {
    background-color: var(--dark-surface-hover);
}

body.dark-mode progress::-webkit-progress-bar {
    background-color: var(--dark-surface-hover);
}

body.dark-mode progress::-webkit-progress-value {
    background-color: var(--dark-text-secondary);
}

/* Transiciones suaves */
body,
body * {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Ajustes para impresión */
@media print {
    body.dark-mode {
        background-color: white !important;
        color: black !important;
    }
    
    body.dark-mode * {
        background-color: white !important;
        color: black !important;
        border-color: #ccc !important;
    }
}

/* Imágenes con fondo blanco */
body.dark-mode img[data-has-white-bg="true"] {
    filter: brightness(0.9) contrast(1.1);
    background-color: var(--dark-surface);
    mix-blend-mode: multiply;
}

/* Contenedor para imágenes con fondo blanco */
.image-container {
    position: relative;
    display: inline-block;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-surface);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.dark-mode .image-container::before {
    opacity: 1;
}

/* Ajustes específicos para diferentes tipos de imágenes */
body.dark-mode img[data-type="logo"] {
    filter: brightness(1) contrast(1.1);
    mix-blend-mode: normal;
}

body.dark-mode img[data-type="icon"] {
    filter: brightness(0.9) contrast(1.1);
    mix-blend-mode: normal;
}

body.dark-mode img[data-type="photo"] {
    filter: brightness(0.95) contrast(1.05);
    mix-blend-mode: normal;
}

/* Ajustes para imágenes en tablas */
body.dark-mode td img,
body.dark-mode th img {
    background-color: transparent;
    mix-blend-mode: normal;
}

/* Ajustes para imágenes en enlaces */
body.dark-mode a img {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

body.dark-mode a:hover img {
    filter: brightness(1.1) contrast(1.1);
}

/* Ajustes para imágenes con bordes */
body.dark-mode img[data-has-border="true"] {
    border-color: var(--dark-border);
}

/* Ajustes para imágenes con sombras */
body.dark-mode img[data-has-shadow="true"] {
    box-shadow: var(--dark-shadow);
}

/* Ajustes para imágenes responsivas */
@media (max-width: 768px) {
    body.dark-mode img {
        max-width: 100%;
        height: auto;
    }
}

/* Ajustes para imágenes en modo de impresión */
@media print {
    body.dark-mode img {
        filter: none !important;
        mix-blend-mode: normal !important;
    }
}

/* Ajustes para enlaces en modo oscuro */
body.dark-mode a {
    color: var(--dark-text-secondary);
}

body.dark-mode a:hover {
    color: var(--dark-text);
}

/* Ajustes para tablas en modo oscuro */
body.dark-mode table {
    border-color: var(--dark-border);
}

body.dark-mode th,
body.dark-mode td {
    border-color: var(--dark-border);
    background-color: var(--dark-surface);
}

/* Ajustes para formularios en modo oscuro */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--dark-text-secondary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Ajustes para botones en modo oscuro */
body.dark-mode button:not(.accessibility-menu button) {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode button:not(.accessibility-menu button):hover {
    background-color: var(--dark-surface-hover);
    border-color: var(--dark-text-secondary);
}

/* Estilos para el botón de lectura por voz */
.accessibility-menu button.active {
    background: var(--gradient-primary);
    color: var(--tec-white);
    transform: translateX(5px);
    box-shadow: var(--shadow-strong);
}

.accessibility-menu button.active i {
    color: var(--tec-white);
    transform: scale(1.1);
}

.accessibility-menu button.active::before {
    transform: scaleY(1);
    background: var(--tec-white);
}

/* Animación para el botón de lectura por voz */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.accessibility-menu button.active {
    animation: pulse 2s infinite;
}

/* Estilos específicos para modo oscuro */
body.dark-mode .accessibility-menu button.active {
    background: var(--dark-gradient);
    color: var(--dark-text);
    box-shadow: var(--dark-shadow);
}

body.dark-mode .accessibility-menu button.active i {
    color: var(--dark-text);
}

/* Estilos para el espaciado de texto */
body[style*="line-height"] {
    line-height: var(--line-height, 1.5) !important;
}

body[style*="letter-spacing"] {
    letter-spacing: var(--letter-spacing, normal) !important;
}

/* Estilos para la alineación de texto */
body[style*="text-align"] {
    text-align: var(--text-align, left) !important;
}

/* Estilos para el cursor personalizado */
body.cursor-large * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23000000"><circle cx="12" cy="12" r="8"/></svg>') 12 12, auto !important;
}

body.cursor-xlarge * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="%23000000"><circle cx="16" cy="16" r="12"/></svg>') 16 16, auto !important;
}

/* Estilos para cursor en modo oscuro */
body.dark-mode.cursor-large * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffffff"><circle cx="12" cy="12" r="8"/></svg>') 12 12, auto !important;
}

body.dark-mode.cursor-xlarge * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="%23ffffff"><circle cx="16" cy="16" r="12"/></svg>') 16 16, auto !important;
}

/* Estilos para los botones de alineación */
.accessibility-menu button[aria-label^="Alinear texto"] {
    position: relative;
    overflow: hidden;
}

.accessibility-menu button[aria-label^="Alinear texto"] i {
    transition: all 0.3s ease;
}

.accessibility-menu button[aria-label^="Alinear texto"].active {
    background: var(--gradient-primary);
    color: var(--tec-white);
}

.accessibility-menu button[aria-label^="Alinear texto"].active i {
    transform: scale(1.2);
    color: var(--tec-white);
}

/* Efecto hover para botones de alineación */
.accessibility-menu button[aria-label^="Alinear texto"]:hover {
    background: var(--gradient-secondary);
}

.accessibility-menu button[aria-label^="Alinear texto"]:hover i {
    transform: scale(1.1);
}

/* Feedback de alineación */
.alignment-feedback {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Modo oscuro para botones de alineación */
body.dark-mode .accessibility-menu button[aria-label^="Alinear texto"].active {
    background: var(--dark-gradient);
    color: var(--dark-text);
}

body.dark-mode .accessibility-menu button[aria-label^="Alinear texto"]:hover {
    background: var(--dark-surface-hover);
}

/* Transiciones suaves para cambios de alineación */
body {
    transition: text-align 0.3s ease;
}

/* Estilos específicos para cada tipo de alineación */
body[style*="text-align: left"] {
    text-align: left !important;
}

body[style*="text-align: center"] {
    text-align: center !important;
}

body[style*="text-align: justify"] {
    text-align: justify !important;
}

/* Panel de control del cursor */
.cursor-control-panel {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateX(120%);
    width: 300px;
    background: var(--tec-white);
    border-radius: 10px;
    box-shadow: var(--shadow-strong);
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.cursor-control-panel.active {
    transform: translateY(-50%) translateX(0);
}

.cursor-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    border-radius: 10px 10px 0 0;
}

.cursor-control-header h4 {
    margin: 0;
    color: var(--tec-white);
    font-size: 1.1em;
    font-weight: 600;
}

.cursor-control-header .close-panel {
    background: none;
    border: none;
    color: var(--tec-white);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.cursor-control-header .close-panel:hover {
    transform: scale(1.1);
}

.cursor-control-content {
    padding: 20px;
}

.cursor-type-section,
.cursor-size-section {
    margin-bottom: 20px;
}

.cursor-type-section h5,
.cursor-size-section h5 {
    margin: 0 0 10px 0;
    color: var(--tec-blue);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cursor-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cursor-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--tec-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cursor-type-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
}

.cursor-type-btn.active {
    background: var(--gradient-primary);
    color: var(--tec-white);
    border-color: var(--tec-light-blue);
}

.cursor-type-btn i {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.cursor-type-btn span {
    font-size: 0.8em;
    text-align: center;
}

.cursor-size-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.size-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--tec-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.size-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.1);
}

.size-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.size-display {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--tec-blue);
}

/* Modo oscuro para el panel de control */
body.dark-mode .cursor-control-panel {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

body.dark-mode .cursor-control-header {
    background: var(--dark-gradient);
}

body.dark-mode .cursor-type-btn {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .cursor-type-btn:hover {
    background: var(--dark-surface-hover);
}

body.dark-mode .cursor-type-btn.active {
    background: var(--dark-gradient);
    color: var(--dark-text);
    border-color: var(--dark-text-secondary);
}

body.dark-mode .size-btn {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .size-btn:hover {
    background: var(--dark-surface-hover);
}

body.dark-mode .size-display {
    color: var(--dark-text);
}

/* Estilos para el feedback de alineación */
.alignment-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Estilos para la linterna de lectura */
.reading-ruler {
    cursor: none;
}

#spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
    transition: background 0.1s;
}

#spotlight-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000000;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#spotlight-controls button {
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--tec-blue);
    transition: var(--transition-standard);
}

#spotlight-controls button:hover {
    color: var(--tec-light-blue);
    transform: scale(1.1);
}

/* Estilos para el modo oscuro de la linterna */
body.dark-mode #spotlight-controls {
    background: rgba(45, 45, 45, 0.9);
}

body.dark-mode #spotlight-controls button {
    color: #ffffff;
}

body.dark-mode #spotlight-controls button:hover {
    color: var(--tec-light-blue);
} 

.high-contrast {
    filter: contrast(1.5) brightness(1.2);
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast a {
    color: #00ffff !important;
}

.high-contrast img {
    filter: brightness(1.2) contrast(1.5);
}
