* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Roboto', sans-serif;
    background: #0c1020;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header h1 {
    font-size: 3.2em;
    margin-bottom: 12px;
    font-weight: 800;
    color: #eaf2ff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    color: #cfe3ff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    padding: 36px 40px 44px;
}

section {
    margin-bottom: 44px;
}

section h2 {
    color: #dce9ff;
    font-size: 1.9em;
    margin-bottom: 20px;
    border-bottom: 2px solid #2f80ed;
    padding-bottom: 12px;
    text-shadow: none;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #2f80ed, #56ccf2);
    box-shadow: none;
}

/* Intro Section */
.intro {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px 26px;
    border-left: 4px solid #2f80ed;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.intro-content p:first-child {
    color: #eaf2ff;
}

/* Fuentes y metodología */
.fuentes-page {
    color: #ffffff;
}

.fuentes-page main {
    font-size: 1.05em;
}

.fuentes-page * {
    color: #ffffff;
}

.intro .date {
    margin-top: 10px;
    font-weight: bold;
    color: #9fc5ff;
    text-shadow: none;
}

.primary-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #2f80ed;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.primary-cta:hover {
    background: #56ccf2;
    color: #0b1326;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.intro-actions {
    margin-left: auto;
}

.secondary-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e3f1ff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.summary ul {
    margin: 10px 0 0 18px;
    color: #ffffff;
    line-height: 1.8;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: #2f80ed;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.summary-card h3 {
    color: #56ccf2;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(47, 128, 237, 0.3);
    padding-bottom: 10px;
}

.summary-stat {
    text-align: center;
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2f80ed;
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #d7deea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-card ul li {
    color: #e8f0ff;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 0;
}

.severity-critical {
    color: #d64550;
    font-weight: 600;
}

.severity-high {
    color: #e7a23b;
    font-weight: 600;
}

.severity-medium {
    color: #56ccf2;
    font-weight: 600;
}

.summary-actions {
    background: rgba(47, 128, 237, 0.1);
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.summary-actions h3 {
    color: #dce9ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(12, 16, 32, 0.5);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #2f80ed;
}

.action-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.action-content {
    color: #e8f0ff;
    font-size: 14px;
    line-height: 1.6;
}

.action-content strong {
    color: #56ccf2;
    display: block;
    margin-bottom: 4px;
}

.action-content a {
    color: #56ccf2;
    text-decoration: none;
    border-bottom: 1px dotted #56ccf2;
}

.action-content a:hover {
    color: #2f80ed;
    border-bottom-color: #2f80ed;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.methodology .description {
    margin-top: 6px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #56ccf2;
    outline-offset: 2px;
}

/* Incident Cards */
.incident-card, .event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.incident-card::before, .event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.5s;
}

.incident-card:hover::before, .event-card:hover::before {
    left: 100%;
}

.incident-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.18);
}

.incident-card h3, .event-card h3 {
    color: #e8f0ff;
    font-size: 1.45em;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.severity {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.severity::before {
    content: none;
}

.severity.high {
    background: #d64550;
    box-shadow: none;
    border: 1px solid #d64550;
}

.severity.medium {
    background: #e7a23b;
    box-shadow: none;
    border: 1px solid #e7a23b;
}

.severity.low {
    background: #2bb673;
    box-shadow: none;
    border: 1px solid #2bb673;
}

.date-posted {
    color: #9fb3d1;
    font-size: 0.95em;
    text-shadow: none;
}

.description {
    margin: 15px 0;
    color: #d7deea;
    line-height: 1.8;
}

/* Tags */
.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    color: #dbe7ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

/* Events */
.event-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-info p {
    margin-bottom: 10px;
    color: #d7deea;
}

.event-info strong {
    color: #9fc5ff;
    text-shadow: none;
}

.event-info a {
    color: #56ccf2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-info a:hover {
    color: #a7ddff;
}

/* Alerts */
.alert-box {
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid #f2c94c;
    padding: 22px 24px;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid rgba(242, 201, 76, 0.35);
}

.alert-box h4 {
    color: #f2c94c;
    margin-bottom: 12px;
    text-shadow: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2em;
}

.alert-box p {
    color: #e8eef7;
}

/* Resources */
.resources ul {
    list-style-type: none;
}

.resources li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.resources li:hover {
    padding-left: 10px;
    border-left: 3px solid #2f80ed;
}

.resources li:last-child {
    border-bottom: none;
}

.resources a {
    color: #9fc5ff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: none;
}

.resources a:hover {
    color: #e3f1ff;
    padding-left: 5px;
}

/* Legal y Contacto */
.legal-contact .legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.legal-card h3 {
    color: #e8f0ff;
    font-size: 1.2em;
    margin-bottom: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.legal-list,
.contact-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.legal-list li,
.contact-list li {
    margin-bottom: 10px;
    color: #d7deea;
}

.legal-card a {
    color: #9fc5ff;
    text-decoration: none;
}

.legal-card a:hover {
    color: #e3f1ff;
}

/* CERTuy submenu */
.certuy-item {
    list-style: none;
}

.certuy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.certuy-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9fc5ff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.certuy-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #e3f1ff;
}

.certuy-toggle.active {
    transform: rotate(180deg);
}

.certuy-submenu {
    list-style: none;
    margin: 10px 0 0 20px;
    padding: 12px 0 0 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.certuy-submenu.active {
    max-height: 300px;
    opacity: 1;
}

.certuy-submenu li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.certuy-submenu li:last-child {
    border-bottom: none;
}

.certuy-submenu a {
    color: #b8d0f0;
    font-size: 0.95em;
}

.certuy-submenu a:hover {
    color: #e3f1ff;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 40px;
    text-align: center;
    border-top: 2px solid #2f80ed;
    box-shadow: none;

}

footer p {
    margin-bottom: 15px;
    color: #cfe3ff;
}

.unsubscribe a {
    color: #9fc5ff;
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.unsubscribe a:hover {
    color: #e3f1ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

/* Fuentes y metodología */
.fuentes-page .resources li {
    color: #ffffff !important;
}

.fuentes-page .resources a {
    color: #ffffff !important;
}

.fuentes-page .resources a:hover {
    color: #ffffff !important;
}

.fuentes-page .alert-box h4 {
    color: #ffffff !important;
}

.fuentes-page .alert-box p {
    color: #ffffff !important;
}

.fuentes-page .summary li {
    color: #ffffff !important;
}

.fuentes-page section h2 {
    color: #ffffff !important;
}

.fuentes-page .intro p {
    color: #ffffff !important;
}

/* Noticias - Dos columnas (Nacional e Internacional) */
.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.news-column {
    background: rgba(12, 16, 32, 0.6);
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.news-column:hover {
    border-color: #2f80ed;
    background: rgba(47, 128, 237, 0.1);
    transform: translateY(-2px);
}

.news-content {
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    header h1 {
        font-size: 2.5em;
        letter-spacing: 4px;
    }

    main {
        padding: 25px;
    }

    section h2 {
        font-size: 1.6em;
    }
}
