/* ================================
   WEATHER ALERTS STYLES
   ================================ */

/* Contenedor principal de alertas */
.event-weather-alerts {
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor de alertas */
.alerts-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header de alertas */
.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.alerts-title {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerts-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.alerts-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Contenido colapsable */
.alerts-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.alerts-collapse.show {
    max-height: 2000px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Alerta individual */
.weather-alert {
    background: white;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.weather-alert:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

/* Severidades de alerta */
.weather-alert--low {
    border-left-color: #2ecc71 !important;
    background: #f0fdf4;
}

.weather-alert--medium {
    border-left-color: #f39c12 !important;
    background: #fffbf0;
}

.weather-alert--high {
    border-left-color: #e74c3c !important;
    background: #fdf0f0;
}

.weather-alert--critical {
    border-left-color: #c0392b !important;
    background: #fce4e4;
}

/* Header de alerta */
.weather-alert__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.weather-alert__icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.weather-alert__title-group {
    flex: 1;
    min-width: 200px;
}

.weather-alert__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

.weather-alert__time {
    font-size: 12px;
    color: #7f8c8d;
    display: block;
    margin-top: 4px;
}

.weather-alert__severity-badge {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Cuerpo de alerta */
.weather-alert__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weather-alert__description {
    margin: 0;
    font-size: 14px;
    color: #34495e;
    line-height: 1.5;
}

.weather-alert__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7f8c8d;
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 4px;
}

.weather-alert__location i {
    color: #3498db;
}

/* Recomendación */
.weather-alert__recommendation {
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.weather-alert__recommendation strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.weather-alert__recommendation p {
    margin: 0;
    color: #2c3e50;
}

/* Advertencia de postpone */
.weather-alert__postpone-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.weather-alert__postpone-warning i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Indicador en calendario */
.alert-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-indicator--low {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.alert-indicator--medium {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.alert-indicator--high {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.alert-indicator--critical {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

.alert-count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: currentColor;
    color: white;
    font-size: 11px;
    padding: 0 4px;
}

/* En calendario - mostrar puntos con alertas */
.day-weather-alert {
    position: relative;
}

.day-weather-alert::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e74c3c;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 768px) {
    .weather-alert__header {
        gap: 8px;
    }

    .weather-alert__icon {
        font-size: 24px;
    }

    .weather-alert__title {
        font-size: 13px;
    }

    .weather-alert__severity-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .alert-indicator {
        font-size: 12px;
        padding: 3px 6px;
    }

    .weather-alert {
        padding: 12px;
    }

    .alerts-header {
        padding: 12px 16px;
    }

    .alerts-collapse.show {
        padding: 12px 16px;
        gap: 10px;
    }
}

/* Estados especiales */
.event-block--weather-alert {
    border-top: 3px solid #e74c3c;
}

.event-postponed {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);
    border: 2px dashed #e67e22;
}

.event-postponed::before {
    content: 'EVENTO SUSPENDIDO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Notificación de alerta global */
.weather-alert-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideInRight 0.4s ease;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.weather-alert-banner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 20px;
}

.weather-alert-banner__close:hover {
    color: #e74c3c;
}

.weather-alert-banner__title {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #2c3e50;
}

.weather-alert-banner__message {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Integración con evento */
.alc-event-block--has-weather-alert {
    position: relative;
    border-top: 3px solid #f39c12;
}

.alc-event-block__weather-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f39c12;
    color: white;
    font-size: 18px;
    cursor: help;
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.weather-alert__icon:hover {
    animation: wobble 0.5s ease;
}

/* Modo oscuro (si aplica) */
@media (prefers-color-scheme: dark) {
    .weather-alert {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .weather-alert__title {
        color: #ecf0f1;
    }

    .weather-alert__description,
    .weather-alert__recommendation p {
        color: #bdc3c7;
    }

    .alerts-container {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }

    .weather-alert-banner {
        background: #2c3e50;
        border-left-color: #e74c3c;
    }

    .weather-alert-banner__title {
        color: #ecf0f1;
    }

    .weather-alert-banner__message {
        color: #bdc3c7;
    }
}






    .weather-section {
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding: 24px;
      background: linear-gradient(to right, var(--primary-color), var(--quaternary-color));
      border-radius: 16px;
      color: white;
      box-shadow: 0 6px 12px var(--shadow-color);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      overflow: hidden;
      position: relative;
    }

    .weather-section:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 20px var(--shadow-color);
    }

    .weather-bubbles {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .bubble {
      position: absolute;
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      animation: float 8s infinite ease-in-out;
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0) translateX(0);
      }
      50% {
        transform: translateY(-20px) translateX(10px);
      }
    }

    .weather-header {
      display: flex;
      justify-content: space-between;
      z-index: 1;
    }
