/* Estilo general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-y: auto; /* Permite el desplazamiento vertical */

}

/* Encabezado */
header {
    background-color: #f4aedd;
    color: rgb(214, 33, 163);
    text-align: center;
    padding: 1rem;
}

/* Menú de navegación */
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    background: #ec7ec7;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0;
    padding: 10px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Sección principal */
section {
    padding: 20px;
    text-align: center;
    max-width: 90%;
    margin: auto;
    padding-bottom: 50px; /* Espacio extra para evitar que se corte */

}

/* Pie de página */
footer {
   background-color: #f4aedd;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    position: relative; /* Asegura que no quede fijo */
    bottom: 0;
    width: 100%;
    margin-top: 20px; /* Espacio extra */
}

.tarjetas-pasatiempos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    text-align: center;
}

.card-content .fecha {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.card h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.card p {
    font-size: 0.95em;
    color: #555;
}

.card-footer {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
}

.hobby1 .card-footer {
    background-color: #f4aedd;
}

.hobby2 .card-footer {
    background-color: rgb(214, 33, 163);
}

.hobby3 .card-footer {
    background-color: #f4aedd;
}

.carousel {
    width: 100%;
    max-width: 1000px; /* Puedes ajustar esto */
    height: 180px;
    overflow: hidden;
    margin: auto;
    position: relative;
}

.carousel-track {
    display: flex;
    width: calc(280px * 20); /* 8 imágenes de 280px */
    animation: slideLoop 60s linear infinite;
}

.carousel-track img {
    width: 280px;
    height: 180px;
    object-fit: cover;
}

@keyframes slideLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-2800px); /* Desliza 4 imágenes de 280px */
    }
}

.botones-descarga {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    text-decoration: none;
    background-color: #ec7ec7;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d35ab4;
}

.contacto-section {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
}

.contacto-section h2 {
    color: #d12a8d;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.contacto-section .correo {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #444;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-social {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.github {
    background-color: #333;
}

.facebook {
    background-color: #3b5998;
}


.instagram {
    background-color: #e1306c;
}

.btn-social:hover {
    opacity: 0.85;
}
