/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #fff3cd;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header fijo */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.phone-icon {
    font-size: 1.2rem;
}

.emergency-contact a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.emergency-contact a:hover {
    text-decoration: underline;
}

/* Contenido principal */
.main-content {
    padding: 40px 0;
}

/* Noticia oficial */
.official-notice {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #dc3545;
    color: #212529;
}

.notice-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.notice-header h2 {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.notice-header time {
    display: block;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.issuer {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.notice-content h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.highlight {
    background: linear-gradient(135deg, #ffeaa7, #fff3cd);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #856404;
}

.warning-box {
    background: #ffffff;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    color: #721c24;
}

.warning-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.warning-box p {
    margin-bottom: 15px;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.notice-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.notice-content a:hover {
    text-decoration: underline;
}

/* Recomendaciones */
.recommendations {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #28a745;
    color: #212529;
}

.recommendations h3 {
    color: #28a745;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.security-list {
    list-style: none;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    transition: transform 0.2s ease;
    color: #212529;
    border: 1px solid #e9ecef;
}

.security-list li:hover {
    transform: translateX(5px);
    background: #f8f9fa;
}

.check-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-list a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.security-list a:hover {
    text-decoration: underline;
}

/* Contador de visitas */
.visit-counter {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    margin: 30px auto;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.eye-icon {
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #343a40, #495057);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    text-align: center;
    color: #adb5bd;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Animaciones */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .official-notice,
    .recommendations {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .notice-header h2 {
        font-size: 1.6rem;
    }
    
    .notice-content h3 {
        font-size: 1.3rem;
    }
    
    .recommendations h3 {
        font-size: 1.5rem;
    }
    
    .security-list li {
        flex-direction: column;
        text-align: left;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .highlight,
    .warning-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .visit-counter {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .emergency-contact {
        padding: 6px 12px;
    }
    
    .emergency-contact a {
        font-size: 1rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #2d3748;
        color: #e9ecef;
    }
    
    .official-notice,
    .recommendations {
        background: #4a5568;
        color: #e9ecef;
    }
    
    .security-list li {
        background: #5a6578;
        color: #e9ecef;
        border-color: #6a7280;
    }
    
    .security-list li:hover {
        background: #6a7280;
    }
    
    .highlight {
        background: #4a5568;
        color: #fbbf24;
        border-color: #f59e0b;
    }
    
    .warning-box {
        background: #4a5568;
        color: #fca5a5;
        border-color: #ef4444;
    }
}