.elementor-9332 .elementor-element.elementor-element-1f936e2{text-align:center;}.elementor-9332 .elementor-element.elementor-element-2965792{width:var( --container-widget-width, 99.911% );max-width:99.911%;--container-widget-width:99.911%;--container-widget-flex-grow:0;}.elementor-widget .tippy-tooltip .tippy-content{text-align:center;}/* Start custom CSS for html, class: .elementor-element-2965792 */body {
    background-color: #0f0f1e;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    --scrollbar-width: calc(100vw - 100%);
}

/* GRID DE LANZAMIENTOS */
#calendario-espacial {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

/* ===========================================
   NUEVO LAYOUT DE FILTROS (LO QUE ME PEDISTE)
   =========================================== */
#top-filters {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FILA SUPERIOR */
#row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* BUSCADOR */
#searchInput {
    flex: 1;
    max-width: 600px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: #1e1e2f;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    outline: none;
}
#searchInput:focus { 
    box-shadow: 0 0 0 3px rgba(76,201,240,0.5);
}

/* SELECTS */
#select-filters {
    display: flex;
    gap: 1rem;
}

#select-filters select {
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 12px;
    background: #1e1e2f;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    outline: none;
    transition: all 0.3s ease;
}

#select-filters select:focus {
    box-shadow: 0 0 0 3px rgba(76,201,240,0.5);
    background: #2a2a3f;
}

/* FILA DE BOTONES PASADOS/FUTUROS */
#row-2 {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#row-2 button {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 12px;
    background: #333;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#row-2 button.active {
    background: #4cc9f0;
    color: black;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {

    #row-1 {
        flex-direction: column;
        width: 100%;
    }

    #searchInput {
        width: 100%;
    }

    #select-filters {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    #select-filters select {
        flex: 1;
        min-width: 140px;
        max-width: 250px;
    }

    /* AJUSTE PARA BOTONES UNO BAJO OTRO */
    #row-2 {
        flex-direction: column;   /* <--- clave */
        justify-content: center;
        align-items: center;      /* opcional, centra los botones */
        gap: 1rem;                /* separación vertical */
    }

    #row-2 button {
        width: 100%;              /* que ocupen todo el ancho */
        max-width: 300px;         /* opcional */
    }
}


/* ===========================================
   TARJETAS DE LANZAMIENTOS Y MODAL (TODO IGUAL)
   =========================================== */

.evento-card {
    background-color: #1e1e2f;
    color: #fff;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

#evento-programado { filter: drop-shadow(0px 8px 4px #0e1726); }
#evento-exito { box-shadow: rgba(0, 255, 0, 0.9) 0 0 10px 2px; }
#evento-fallo { box-shadow: rgba(255, 0, 0, 0.9) 0 0 10px 2px; }
#evento-falloParcial { box-shadow: rgba(230, 140, 5, 0.9) 0 0 10px 2px; }

.evento-card:hover {
    transform: scale(1.02);
    filter: drop-shadow(0px 8px 7px #0e1726);
}

.evento-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.evento-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evento-img-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #1e1e2f);
    z-index: 15;
}

.labels-container {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    z-index: 16;
}

.recovery-label, .firstStage-label, .capsule-label {
    background-color: rgba(0,0,0,0.65);
    color: #3bb4db;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    pointer-events: none;
    font-family: 'space-explorer', sans-serif;
}

.status-label {
    position: absolute;
    top: 8px;
    right: 8px;
    font-weight: 700;
    background-color: #6c757d;
    color: #f1f1f1;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    pointer-events: none;
    font-family: 'space-explorer', sans-serif;
}

.importante-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-weight: 700;
    color: #E68C05;
    border: 2px solid #E68C05;
    background-color: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    pointer-events: none;
    font-family: 'space-explorer', sans-serif;
}

.status-programado, .status-enVuelo {
    background-color: rgba(0,0,0,0.7);
    color: #007bff;
    border: 2px solid #007bff;
    box-shadow: rgba(0, 123, 255, 0.2) 0 0 10px 2px;
}

.status-exito { background-color: rgba(0,0,0,0.7); color: #00ff00; border: 2px solid #00ff00; box-shadow: rgba(0,255,0,0.2) 0 0 10px 2px; }
.status-falloParcial { background-color: rgba(0,0,0,0.7); color: #E68C05; border: 2px solid #E68C05; box-shadow: rgba(230,140,5,0.2) 0 0 10px 2px; }
.status-fallo { background-color: rgba(0,0,0,0.7); color: #dc3545; border: 2px solid #dc3545; box-shadow: rgba(220,53,69,0.2) 0 0 10px 2px; }
.status-desconocido { background-color: rgba(0,0,0,0.7); color: #6c757d; border: 2px solid #6c757d; box-shadow: rgba(108,117,125,0.2) 0 0 10px 2px; }
.status-hold { background-color: rgba(0,0,0,0.7); color: #E68C05; border: 2px solid #E68C05; box-shadow: rgba(220,53,69,0.2) 0 0 10px 2px; }
.status-scrub { background-color: rgba(0,0,0,0.7); color: #dc3545; border: 2px solid #dc3545; box-shadow: rgba(220,53,69,0.2) 0 0 10px 2px; }

.evento-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.evento-content > div:first-child {
    flex-grow: 1;
}

/* CONTADOR */
.countdown-timer {
    margin: 12px 0 8px 0;
    order: 1;
}

.ver-detalles-btn {
    margin-top: 12px !important;
    order: 2;
}

.evento-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #4cc9f0;
    font-family: 'space-explorer', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .evento-content h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

.evento-content p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.evento-content button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    background: #4cc9f0;
    filter: drop-shadow(0px 0px 5px #3bb4db);
    border: none;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.evento-content button:hover {
    background: #3bb4db;
    filter: drop-shadow(0px 0px 10px #3bb4db);
}

/* ================= MODAL ================= */

body.modal-abierto {
    overflow: hidden !important;
    padding-right: var(--scrollbar-width) !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.85);
    overflow-y: auto;
}

.modal-content {
    background-color: #0d5293;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 100dvh;
    margin: 5dvh auto;
    overflow-y: auto;
    color: #fff;
    position: relative;
    filter: drop-shadow(0px 0px 10px #0d5293);
    box-sizing: border-box;
}

.modal-image-container {
    position: relative;
    width: 100%;
    /* MODIFICADO: Agregado overflow y border-radius para contenedor */
    overflow: hidden;
    border-radius: 8px;
}

.modal-image-container img {
    width: 100%;
    border-radius: 8px;
    /* MODIFICADO: Agregado display: block */
    display: block;
}

/* ===========================================
   MODIFICADO: .modal-countdown - Cambio completo de posición y estilo
   =========================================== */
/* DESACTIVADO: Estilo antiguo del contador del modal
.modal-countdown {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7fffd4;
    z-index: 20;
}
*/

/* MODIFICADO: Nuevo estilo del contador del modal - Posición inferior centrada con fondo translúcido */
.modal-countdown {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    z-index: 10;
}

/* DESACTIVADO: Estilos antiguos del contador del modal que ya no se usan
.modal-countdown .countdown { gap: 3px; }
.modal-countdown .block { padding: 5px 10px; min-width: 20px; }
.modal-countdown .block::before { font-size: 1rem; }
.modal-countdown .block span { font-size: 1rem; }
.modal-countdown strong { font-size: 0.9rem; }
*/

/* ===========================================
   NUEVO: Estilos para el contador LED del modal
   =========================================== */
/* NUEVO: Contenedor del display del contador */
.modal-countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* NUEVO: Estilo para el label "T-" o "T+" */
.modal-t-label {
    font-size: 1.4em;
    font-weight: bold;
    margin-right: 8px;
    color: #4cc9f0;
    font-family: 'Digital-2', monospace;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.6);
}

/* NUEVO: Cajas de tiempo con fondo sólido oscuro (como en la imagen) */
.modal-time-box {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 12px 16px;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* NUEVO: Efecto "88" detrás de los números (segmentos inactivos) */
.modal-time-box::before {
    content: "88";
    font-family: 'Digital-2', monospace;
    font-size: 1.8em;
    color: #1a1a1a;
    opacity: 0.4;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* NUEVO: Números LED con efecto de brillo azul */
.modal-time-box span {
    font-size: 1.8em;
    font-weight: bold;
    color: #4cc9f0;
    display: block;
    font-family: 'Digital-2', monospace;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.8), 0 0 20px rgba(76, 201, 240, 0.4);
    letter-spacing: 1px;
}

/* NUEVO: Dos puntos (:) con estilo LED */
.modal-colon {
    font-size: 1.4em;
    font-weight: bold;
    color: #4cc9f0;
    margin: 0 6px;
    font-family: 'Digital-2', monospace;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* NUEVO: Estilos para estados especiales (SCRUB, HOLD) */
.modal-countdown > div[style*="SCRUB"],
.modal-countdown > div[style*="HOLD"] {
    width: 100%;
    margin: 0;
}

/* ===========================================
   NUEVO: Responsive para contador del modal
   =========================================== */
@media (max-width: 768px) {
    .modal-countdown {
        bottom: 15px;
        padding: 6px 10px;
        transform: translateX(-50%) scale(0.5);
        transform-origin: center bottom;
    }
    
    .modal-time-box {
        padding: 6px 8px;
        min-width: 30px;
    }
    
    .modal-time-box::before {
        font-size: 0.9em;
    }
    
    .modal-time-box span {
        font-size: 0.9em;
    }
    
    .modal-t-label {
        font-size: 0.7em;
        margin-right: 4px;
    }
    
    .modal-colon {
        font-size: 0.7em;
        margin: 0 3px;
    }
    
    .modal-countdown-display {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .modal-countdown {
        bottom: 10px;
        padding: 4px 7px;
        transform: translateX(-50%) scale(0.5);
        transform-origin: center bottom;
    }
    
    .modal-time-box {
        padding: 4px 6px;
        min-width: 25px;
    }
    
    .modal-time-box::before {
        font-size: 0.65em;
    }
    
    .modal-time-box span {
        font-size: 0.65em;
    }
    
    .modal-t-label {
        font-size: 0.5em;
        margin-right: 3px;
    }
    
    .modal-colon {
        font-size: 0.5em;
        margin: 0 2px;
    }
    
    .modal-countdown-display {
        gap: 3px;
    }
}

/* BOTÓN CERRAR MODAL */
.close-modal {
  --btn-size: 48px;
  --icon-size: 24px;
  --bg: rgba(0,0,0,0.35);
  --bg-hover: rgba(255,255,255,0.06);
  --accent: #ff6b6b;
  --focus-ring: 3px;
  position: absolute;
  top: 12px;
  right: 12px;
  width: var(--btn-size);
  height: var(--btn-size);
  display: inline-grid;
  place-items: center;
  border: none !important;
  border-radius: 10px;
  background: var(--bg);
  color: #ffffff;
  font-size: var(--icon-size);
  cursor: pointer;
  transition: transform .16s, background-color .16s, box-shadow .16s, color .16s;
}

.close-modal:hover {
  transform: translateY(-3px) scale(1.02);
  background: none !important;
  color: var(--accent);
}

.close-modal:active {
  transform: translateY(-1px) scale(0.995);
}

.close-modal:focus {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring) rgba(76,201,240,0.12),
              0 0 0 1px rgba(76,201,240,0.18);
  color: var(--accent);
}

@media (max-width: 480px) {
  .close-modal {
    --btn-size: 44px;
    --icon-size: 22px;
    top: 8px;
    right: 8px;
  }
}

.close-modal svg {
    width: 28px;
    height: 28px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.close-modal:hover svg {
    stroke: #ff6b6b;
    transform: scale(1.15);
}

/* CONTENEDOR EXTRA MODAL */
#modalImage {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1rem 0;
}

.modalDIV {
    margin: 1.2rem 0;
    background-color: rgba(0,0,0,0.6);
    padding: 1rem;
    border-radius: 10px;
}

.modalDIV .info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.modalDIV h4 {
    margin: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* CONTADOR GENERAL */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 1rem;
}

.block {
    background: #1c1c1c;
    border-radius: 6px;
    padding: 10px 14px;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 0 10px #000;
    position: relative;
}

.block::before {
    content: "88";
    font-family: 'Digital-2', monospace;
    font-size: 1.8em;
    color: #333;
    opacity: 0.3;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block span {
    font-family: 'Digital-2', monospace;
    font-size: 1.8em;
    color: #4cc9f0;
    position: relative;
    z-index: 1;
}

.countdown strong {
    color: #4cc9f0;
    font-size: 1.4em;
}/* End custom CSS */