﻿/* General */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f7fa;
}

header {
    background-color: #00796b;
    color: white;
    text-align: center;
    padding: 2em;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

nav {
    background-color: #004d40;
    overflow: hidden;
}

nav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1.1em;
}

nav a:hover {
    background-color: #00695c;
    color: white;
}

.container {
    padding: 40px;
    background-color: white;
}

/* Secciones */
section {
    margin-bottom: 30px;
}

h2 {
    color: #00796b;
    font-size: 2em;
}

p, ul, ol {
    font-size: 1.1em;
    line-height: 1.6;
}

ul, ol {
    margin-left: 20px;
}

ul li, ol li {
    margin-bottom: 10px;
}

/* Estilo para el botón de volver a la página principal */
.back-button {
    text-align: center;
    margin-top: 30px;
}

.btn-back {
    background-color: #00796b;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #004d40;
}

/* Footer */
footer {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 1em;
    position: fixed;
    width: 100%;
    bottom: 0;
}
img{
    max-width: 500px;
    max-height: 500px;
    margin: auto;
}
/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

/* Animaciones escalonadas por sección */
.container > section:nth-child(1) { animation-delay: 0.2s; }
.container > section:nth-child(2) { animation-delay: 0.4s; }
.container > section:nth-child(3) { animation-delay: 0.6s; }
.container > section:nth-child(4) { animation-delay: 0.8s; }
.container > section:nth-child(5) { animation-delay: 1s; }

/* Efecto hover en imágenes */
section img {
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

section img:hover {
    transform: scale(1.05);
}
