:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: transparent !important;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    transition: all 0.3s ease;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    text-align: center;
    padding: 2rem;
    background-color: #2e7d32;
    color: white;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: calc(100vh - 200px);
}

/* Columna izquierda - Información e imágenes */
.problematicas-izq {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    padding-right: 40px;
    border-right: 3px solid #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.problematicas-izq::-webkit-scrollbar {
    display: none;
}

.catastrofe-item {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    opacity: 0.95;
}

/* Marcos solicitados */
.marco-verde {
    border: 11px solid #32CD32;
    width: 80%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.marco-mixto {
    border: 11px solid;
    border-color: #32CD32 #32CD32 #32CD32 #32CD32;
    width: 80%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Columna derecha - Video */
.sidebar-der {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: none;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar-der::-webkit-scrollbar {
    display: none;
}

.video-container {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg);
    padding: 15px;
    box-sizing: border-box;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

footer {
    margin-top: 50px;
    padding: 40px;
    text-align: center;
    border-top: 2px solid #ffffff;
    grid-column: 1 / -1;
}

.social-placeholder {
    font-style: italic;
    color: #888;
    margin-top: 20px;
}

img {
    max-width: 100%;
}

a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilo para el video de fondo */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    background-size: cover;
    object-fit: cover;
}

/* Capa oscura para que el texto resalte sobre el video */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -99;
}

/* Loader y Axolote */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
}

.axolotl-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.axolotl {
    width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.loading-text {
    margin-top: 100px;
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    font-weight: bold;
    animation: pulseText 1.5s infinite;
}

/* --- Definición de las Animaciones --- */

/* Animación 1: Flotación suave (Arriba y Abajo) */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Animación 2: Pulso suave para el texto */
@keyframes pulseText {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDAD ===== */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
    }

    .container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }

    .problematicas-izq {
        border-right: none;
        border-bottom: 3px solid #ffffff;
        padding-right: 20px;
        overflow-y: visible;
    }

    .sidebar-der {
        border-left: none;
        padding-left: 20px;
        overflow-y: visible;
    }

    .marco-verde,
    .marco-mixto {
        width: 90%;
    }

    .axolotl-container {
        width: 300px;
        height: 300px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    header {
        padding: 1rem 0.5rem;
    }

    header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    .container {
        padding: 10px;
        gap: 0;
        min-height: auto;
    }

    .problematicas-izq {
        border-right: none;
        border-bottom: 3px solid #ffffff;
        padding-right: 10px;
        overflow-y: visible;
    }

    .marco-verde,
    .marco-mixto {
        width: 95%;
        border-width: 8px;
    }

    footer {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .axolotl-container {
        width: 200px;
        height: 200px;
    }

    .loading-text {
        margin-top: 30px;
        font-size: 0.9rem;
    }
}
