:root {
    --blue: #1e3a8a;
    --blue-light: #3b82f6;
    --yellow: #facc15;
    --yellow-light: #fde047;
    --bg-light: #f8fafc;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    padding-bottom: 20px;
}

h1 {
    color: var(--blue);
    font-size: 2rem;
    margin: 30px 0 20px;
    font-weight: bold;
    animation: fadeIn 1s;
}

/* Secciones */
.section {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    display: block;
}

.section h2 {
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--yellow);
    display: inline-block;
    padding-bottom: 5px;
}

/* Estilo para videos */
video {
    display: block;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 20px;
    margin: 20px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

/* Estilo para imágenes */
img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 20px;
    margin: 20px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Enlace de regreso */
a[href="index.html"] {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    margin: 20px auto;
}

a[href="index.html"]:hover {
    background-color: var(--blue-light);
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--blue);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

footer a {
    color: var(--yellow-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 10px 0;
}

hr {
    margin: 30px auto;
    width: 80%;
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--yellow), transparent);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .section h2 {
        font-size: 1.4rem;
    }
    
    video, img {
        max-width: 320px;
        width: 90%;
    }
    
    .section {
        padding: 10px;
    }
    
    a[href="index.html"] {
        display: block;
        width: 90%;
        margin: 20px auto;
        text-align: center;
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    video, img {
        max-width: 380px;
    }
    
    .section {
        max-width: 600px;
    }
}

/* Para escritorio */
@media (min-width: 1025px) {
    video, img {
        max-width: 400px;
    }
    
    .section {
        max-width: 600px;
    }
}

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