* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1E1E1E;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.side-menu {
    width: 130px;
    background-color: #2D2D30;
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.menu-btn {
    width: 100%;
    padding: 14px 6px;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-btn:hover {
    background: linear-gradient(to bottom, #0F4C6B, #2A7BA3);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.6);
}

.menu-btn:active {
    background: linear-gradient(to bottom, #062A40, #0F4C6B);
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.5);
}

.menu-btn.active {
    background: linear-gradient(to bottom, #062A40, #0F4C6B);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #2A7BA3;
}

/* Corrección: ahora apunta a #submenu-multimedia */
#submenu-graficas,
#submenu-multimedia {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.submenu-btn {
    width: 90%;
    font-size: 0.75em;
    padding: 10px 4px;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #1E1E1E;
    min-width: 0;
}

header {
    position: relative;
    text-align: center;
    padding: 2px 0;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
    border-radius: 10px;
    margin-bottom: 5px;
    box-shadow:
        inset 0 1px 3px rgba(255, 255, 255, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-family: 'Trebuchet MS', 'Georgia', serif;
    font-size: 2em;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.subtitulo-titulo {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #FFFFFF;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.indicador-top {
    text-align: left;
    padding: 5px 10px;
    margin-bottom: 5px;
}

.indicador-top #indicador-datos {
    font-size: 0.85em;
    font-weight: bold;
    color: #CCCCCC;
}

.main-panel {
    display: flex;
    gap: 15px;
}

.table-area {
    flex: 1;
    min-width: 0;
}

.leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 6px 12px;
    background-color: #1E1E1E;
    border-radius: 8px;
    margin-bottom: 10px;
    justify-content: center;
    font-size: 0.75em;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.leyenda-color {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.tabla-container {
    overflow-x: auto;
    background-color: #2D2D30;
    border-radius: 8px;
    padding: 10px;
}

#tabla-prediccion {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    table-layout: auto;
}

#tabla-prediccion th {
    background: linear-gradient(to bottom, #4A4A50, #2D2D30);
    color: #FFFFFF;
    padding: 2px 4px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #3F3F46;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

#tabla-prediccion th:first-child {
    width: auto;
    white-space: nowrap;
}

#tabla-prediccion th:not(:first-child) {
    width: 18%;
    min-width: 160px;
    text-align: center;
}

#tabla-prediccion td {
    padding: 5px 10px;
    text-align: center;
    border: 1px solid #3F3F46;
    background-color: #252526;
}

.variable-name {
    background: linear-gradient(to bottom, #3A3A40, #2D2D30) !important;
    font-weight: bold;
    text-align: left !important;
    color: #FFFFFF;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

#tabla-prediccion td:first-child {
    width: auto;
    white-space: nowrap;
}

#tabla-prediccion td:not(:first-child) {
    width: 18%;
    min-width: 160px;
    text-align: center;
}

.veredicto-row .variable-name {
    background: linear-gradient(to bottom, #1E3A5F, #1A2A4A) !important;
    color: #FFFFFF !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.veredicto-row td {
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.importante-row .variable-name {
    background: linear-gradient(to bottom, #4A7BA6, #3A6B96) !important;
    color: #FFFFFF !important;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.fila-acordeon {
    cursor: pointer;
}

.fila-acordeon:hover .variable-name {
    background: linear-gradient(to bottom, #5A8BB6, #4A7BA6) !important;
}

.importante-row td {
    border-top: 1px solid #5A8BB6;
    border-bottom: 1px solid #5A8BB6;
}

.importante-row td:first-child {
    border-left: 4px solid #5A8BB6;
}

.veredicto-row td:first-child {
    border-left: 4px solid #FFD700;
}

.veredicto-row td {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.importante-row td:not(.variable-name) {
    position: relative;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.importante-row td:not(.variable-name):hover {
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.importante-row td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.veredicto-row td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.arrow-3d {
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.4),
        2px 2px 2px rgba(0, 0, 0, 0.3),
        -1px -1px 0 rgba(255, 255, 255, 0.2);
    vertical-align: middle;
    line-height: 1;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #888888;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 30px;
    color: #D32F2F;
    font-weight: bold;
}

.right-panel {
    width: 250px;
    background-color: #2D2D30;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 0.9em;
    font-weight: bold;
    color: #CCCCCC;
}

.control-group select {
    padding: 8px;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    width: 100%;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    appearance: auto;
}

.control-group select:hover {
    background: linear-gradient(to bottom, #0F4C6B, #2A7BA3);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.6);
}

.control-group select:active,
.control-group select:focus {
    background: linear-gradient(to bottom, #062A40, #0F4C6B);
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.5);
}

#grupo-subida {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#grupo-horas {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: nowrap;
}

#grupo-horas .control-group {
    flex: 1;
    min-width: 0;
}

#grupo-horas select {
    width: 100%;
    min-width: 70px;
}

#mapa-container {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#map {
    height: 600px;
    width: 100%;
}

#grafica-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 10px;
    padding: 5px 15px 15px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.zoom-botones {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.btn-zoom {
    background: #0A3D5C;
    color: #FFFFFF;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75em;
}

.btn-zoom:hover {
    background: #1B6B93;
}

#estacion-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 10px;
    padding: 0px 15px 15px 15px;
    color: #FFFFFF;
    overflow-y: auto;
}

.estacion-cuadro {
    background-color: #2D2D30;
    border-radius: 10px;
    padding: 20px;
    color: #FFFFFF;
}

.tarjetas-estacion {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.tarjeta {
    flex: 0 1 auto;
    min-width: 60px;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
    border-radius: 4px;
    padding: 2px 6px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.tarjeta .etiqueta {
    font-size: 0.75em;
    color: #CCCCCC;
    margin: 3px 0;
}

.tarjeta .valor {
    font-size: 0.7em;
    font-weight: bold;
}

#grafica-estacion {
    width: 100%;
    height: 500px;
    display: block;
    min-height: 500px;
}

/* Galería de fotos */
#fotos-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 12px;
    padding: 20px;
    color: #FFFFFF;
}

.fotos-header {
    text-align: center;
    margin-bottom: 20px;
}

.fotos-header h2 {
    font-size: 1.8em;
    color: #90CAF9;
    margin-bottom: 5px;
}

.fotos-header p {
    color: #CCCCCC;
    font-size: 0.9em;
}

/* Contenedor de descargas */
#descargas-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 12px;
    padding: 20px;
    color: #FFFFFF;
}

.descargas-header {
    text-align: center;
    margin-bottom: 20px;
}

.descargas-header h2 {
    font-size: 1.8em;
    color: #90CAF9;
    margin-bottom: 5px;
}

.descargas-header p {
    color: #CCCCCC;
    font-size: 0.9em;
}

.lista-descargas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

.archivo-descarga {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to bottom, #3A3A40, #2D2D30);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid #3F3F46;
}

.archivo-descarga:hover {
    background: linear-gradient(to bottom, #4A4A50, #3A3A40);
    border-color: #5A8BB6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.archivo-icono {
    font-size: 2em;
    min-width: 40px;
    text-align: center;
}

.archivo-info {
    flex: 1;
    min-width: 0;
}

.archivo-nombre {
    font-weight: bold;
    font-size: 1.1em;
    color: #FFFFFF;
    margin-bottom: 5px;
    word-break: break-all;
}

.archivo-meta {
    font-size: 0.85em;
    color: #CCCCCC;
}

.archivo-descargar {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.archivo-descargar:hover {
    background: linear-gradient(to bottom, #66BB6A, #388E3C);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

.mensaje-sin-descargas {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
}

/* Responsive para móvil */
@media (max-width: 900px) {
    .archivo-descarga {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .archivo-descargar {
        width: 100%;
        text-align: center;
    }
    
    .archivo-icono {
        min-width: auto;
    }
}

.galeria-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    justify-items: center;
}

.galeria-fotos .foto-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-fotos .foto-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.galeria-fotos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mensaje-sin-fotos {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
    grid-column: 1 / -1;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFFFFF;
    font-size: 3em;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-cerrar:hover {
    color: #FF5252;
}

.lightbox-pie {
    color: #CCCCCC;
    margin-top: 15px;
    font-size: 1em;
}

footer {
    text-align: center;
    padding: 12px 20px;
    color: #888888;
    font-size: 0.8em;
    margin-top: 12px;
}

footer a {
    color: #00A4EF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#instrucciones-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 10px;
    padding: 20px;
    color: #FFFFFF;
    max-height: 80vh;
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.4;
}

#instrucciones-container h1 {
    text-align: center;
    color: #90CAF9;
    margin-bottom: 20px;
}

#instrucciones-container h2 {
    color: #FFD700;
    margin-top: 20px;
    margin-bottom: 10px;
}

#instrucciones-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

#instrucciones-container th,
#instrucciones-container td {
    border: 1px solid #3F3F46;
    padding: 5px;
    text-align: center;
}

#instrucciones-container th {
    background-color: #4A4A50;
}

#grafica-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    height: 520px;
}

#graficaMareas {
    min-width: 800px;
    width: 100%;
    height: 520px;
}

.zoom-botones {
    position: relative;
    z-index: 10;
    margin-bottom: 10px;
}

.resaltado-fosforito {
    background-color: #FF66FF;
    color: #000000;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
}

#links-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 10px;
    padding: 20px;
    color: #FFFFFF;
}

.lista-links {
    list-style: none;
    padding: 0;
}

.lista-links li {
    margin: 10px 0;
}

.lista-links a {
    color: #90CAF9;
    text-decoration: none;
    font-size: 1.1em;
}

.lista-links a:hover {
    text-decoration: underline;
}

#grafica-scroll {
    position: relative;
}

#grafica-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#grafica-scroll::-webkit-scrollbar-thumb {
    background: #4A4A50;
    border-radius: 6px;
}

#grafica-scroll::-webkit-scrollbar-track {
    background: #2D2D30;
}

#estacion-container {
    margin-top: 15px;
    background-color: #2D2D30;
    border-radius: 10px;
    padding: 0px 15px 15px 15px;
    color: #FFFFFF;
    overflow-y: auto;
    max-height: none !important;
}

.dias-botones {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    justify-content: center;
}

.btn-dia {
    background: #0A3D5C;
    color: #FFFFFF;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-dia:hover {
    background: #1B6B93;
}

.btn-dia.active {
    background: #E91E63;
    box-shadow: 0 0 6px rgba(233, 30, 99, 0.5);
}

.dias-botones-estacion {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    justify-content: center;
}

.btn-dia-estacion {
    background: #0A3D5C;
    color: #FFFFFF;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: bold;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-dia-estacion:hover {
    background: #1B6B93;
}

.btn-dia-estacion.active {
    background: #E91E63;
    box-shadow: 0 0 6px rgba(233, 30, 99, 0.5);
}

#nombre-estacion {
    margin-top: -10px !important;
}

#grafica-estacion-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    height: 520px;
}

@keyframes parpadeo-verde {
    0%, 100% { background-color: #FFFFFF; }
    50% { background-color: #4CAF50; }
}

.parpadeo-verde {
    animation: parpadeo-verde 1.2s infinite !important;
}

@keyframes parpadeo-rojo {
    0%, 100% { background-color: #FFFFFF; }
    50% { background-color: #D32F2F; }
}

.parpadeo-rojo {
    animation: parpadeo-rojo 1.2s infinite !important;
}

/* Botón ORÁCULO */
.btn-oraculo {
    width: 100%;
    padding: 14px 6px;
    background: linear-gradient(to bottom, #E91E63, #AD1457);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-oraculo:hover {
    background: linear-gradient(to bottom, #F06292, #C2185B);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.btn-oraculo:active {
    background: linear-gradient(to bottom, #AD1457, #880E4F);
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(1px);
}

/* Modal del Oráculo */
#oraculo-container {
    position: fixed;
    top: 20%;
    left: 25%;
    width: 50%;
    max-width: 800px;
    max-height: 80vh;
    background-color: #2D2D30;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oraculo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
    border-radius: 12px 12px 0 0;
    cursor: move;
    user-select: none;
}

.oraculo-header h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-cerrar-oraculo {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.btn-cerrar-oraculo:hover {
    color: #FF5252;
}

.oraculo-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    color: #FFFFFF;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.oraculo-cargando {
    text-align: center;
    color: #90CAF9;
    font-style: italic;
    padding: 30px;
}

.oraculo-footer {
    padding: 15px 20px;
    background-color: #252526;
    border-top: 1px solid #3F3F46;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-descargar-oraculo {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-descargar-oraculo:hover {
    background: linear-gradient(to bottom, #66BB6A, #388E3C);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

.btn-compartir-oraculo {
    background: linear-gradient(to bottom, #42A5F5, #1565C0);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-compartir-oraculo:hover {
    background: linear-gradient(to bottom, #64B5F6, #1976D2);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

/* Contenedor de "Oracle se fue de pesca" */
#oraculo-pesca {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #2D2D30;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow: hidden;
}

.oraculo-pesca-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.oraculo-pesca-content img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.oraculo-pesca-texto {
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.oraculo-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #252526;
}

.oraculo-selector label {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 0.9em;
}

.oraculo-selector select {
    padding: 6px;
    background: linear-gradient(to bottom, #0A3D5C, #1B6B93);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

.btn-consultar-oraculo {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: #FFFFFF;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-consultar-oraculo:hover {
    background: linear-gradient(to bottom, #66BB6A, #388E3C);
}

.oraculo-content h1 {
    font-size: 1em;
    margin: 10px 0 5px 0;
}

.oraculo-content h2 {
    font-size: 0.95em;
    margin: 8px 0 4px 0;
}

.oraculo-content h3 {
    font-size: 0.9em;
    margin: 6px 0 3px 0;
}

/* Responsive para descargas en móvil */
@media (max-width: 900px) {
    .archivo-descarga {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .archivo-descargar {
        width: 100%;
        text-align: center;
    }
    
    .archivo-icono {
        min-width: auto;
    }
}

/* ==========================================
   MEDIA QUERIES PARA MÓVIL (CONSOLIDADOS)
   ========================================== */
@media (max-width: 900px) {
    html, body {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .app-layout {
        display: block;
        flex-direction: column;
        height: auto;
        min-height: 100%;
        overflow-y: visible;
    }

    .side-menu {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
        top: 0;
        z-index: 100;
        display: flex;
    }

    .menu-btn {
        width: auto;
        flex: 1;
    }

    .main-content {
        width: 100%;
        padding: 10px;
        overflow-y: visible;
        height: auto;
    }

    .right-panel {
        width: 100%;
        flex-direction: column;
        height: auto;
        overflow-y: visible;
        display: flex;
        gap: 10px;
    }

    #graficaMareas {
        min-width: 800px;
        height: 500px;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    #grafica-estacion-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        height: 480px;
    }

    #grafica-estacion {
        min-width: 800px;
        height: 500px;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    #oraculo-container {
        top: 5%;
        left: 5%;
        width: 90% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    #oraculo-pesca {
        top: 5% !important;
        left: 5% !important;
        width: 90% !important;
        max-height: 90vh !important;
        transform: none !important;
    }
}

#grafica-estacion-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#grafica-estacion-scroll::-webkit-scrollbar-thumb {
    background: #4A4A50;
    border-radius: 6px;
}

#grafica-estacion-scroll::-webkit-scrollbar-track {
    background: #2D2D30;
}

/* ==========================================
   BOTÓN UBICACION RECOMENDADA
   ========================================== */
.btn-recomendacion {
    width: 100%;
    padding: 14px 6px;
    background: linear-gradient(to bottom, #42A5F5, #1565C0);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-recomendacion:hover {
    background: linear-gradient(to bottom, #64B5F6, #1976D2);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.btn-recomendacion:active {
    background: linear-gradient(to bottom, #1565C0, #0D47A1);
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(1px);
}

.btn-recomendacion.activo {
    background: linear-gradient(to bottom, #1565C0, #0D47A1);
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.5);
    border: 2px solid #42A5F5;
}

#contenedor-mc-otra {
    display: none;
    text-align: center;
}

#btn-mc-otra {
    width: 80%;
    margin-top: 4px;
    padding: 10px 4px;
    font-size: 0.75em;
    background: linear-gradient(to bottom, #1B6B93, #0A3D5C);
    display: inline-block;
}

#btn-mc-otra:hover {
    background: linear-gradient(to bottom, #2A7BA3, #0F4C6B);
}

.btn-prob-especie {
    background: linear-gradient(to bottom, #1976D2, #0D47A1) !important;
}
.btn-prob-especie:hover {
    background: linear-gradient(to bottom, #2196F3, #1565C0) !important;
}
.btn-prob-especie.activo {
    background: linear-gradient(to bottom, #0D47A1, #062A40) !important;
    border: 2px solid #64B5F6 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(33, 150, 243, 0.6) !important;
}
#fila-prob-especie td {
    border-top: 2px solid #2196F3;
    border-bottom: 2px solid #2196F3;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}
#fila-prob-especie .variable-name {
    background: linear-gradient(to bottom, #0D47A1, #062A40) !important;
    color: #FFFFFF !important;
    border-left: 4px solid #2196F3 !important;
}

#tabla-prediccion .veredicto-row .variable-name {
    background: linear-gradient(to bottom, #0D47A1, #062A40) !important;
    color: #FFFFFF !important;
    border-left: 4px solid #2196F3 !important;
    border-top: 2px solid #2196F3 !important;
    border-bottom: 2px solid #2196F3 !important;
}

#tabla-prediccion .veredicto-row td:not(.variable-name) {
    border-top: 2px solid #2196F3 !important;
    border-bottom: 2px solid #2196F3 !important;
}

tr.importante-row .variable-name {
    background: linear-gradient(to bottom, #4A7BA6, #3A6B96) !important;
    color: #FFFFFF !important;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.leyenda-mapa {
    background: rgba(30, 30, 30, 0.9);
    color: #FFFFFF;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #3F3F46;
}

.leyenda-mapa-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.leyenda-mapa-item:last-child {
    margin-bottom: 0;
}

.leyenda-mapa-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    flex-shrink: 0;
}
