
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background-image: url('/imagenes/fondo.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}


.header {
    text-align: center;
    padding: 60px;
    background-image: url('/imagenes/fondoheader.jpg'); 
    background-size: cover;
    background-position: center;
    color: #d50000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.header h1 {
    font-size: 3.5em;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 10px;
}


.navbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background: rgba(20, 20, 20, 0.85);
}

.nav-button {
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    color: white;
    background-color: #d50000;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #900000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}


.section-intro {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    margin: 20px auto;
    max-width: 800px;
}


.section-dynamic {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.card {
    display: block;
    width: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    transition: 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-text {
    padding: 15px;
    text-align: center;
}

.card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #d50000;
}

.card p {
    font-size: 1em;
    color: #ffffff;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.7);
}



footer {
    background-color: rgba(20, 20, 20, 0.9);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.page-content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: auto;
}

.content-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.content-section img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.5);
}

.content-text {
    color: #ffffff;
}

.content-text h2 {
    font-size: 1.5em;
    color: #d50000;
    margin-bottom: 10px;
}

.content-text p {
    font-size: 1em;
    line-height: 1.6;
}


.parallax-header {
    background-image: url("");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 100px 20px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.parallax-header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 700;
}


.page-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}


.flexible-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.flexible-section:hover {
    box-shadow: 0px 10px 20px rgba(255, 0, 0, 0.5);
}

.content-text h2 {
    font-size: 1.5em;
    color: #d50000;
    margin-bottom: 10px;
}

.flexible-section img {
    width: auto;
    max-width: 40%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.flexible-section img:hover {
    transform: scale(1.05);
}


.gallery {
    margin-top: 40px;
}

.gallery h2 {
    text-align: center;
    font-size: 2em;
    color: #d50000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.5);
}



/* Estilos para la galería de imágenes */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: scale(1.05);
}

.image-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.image-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.image-box:hover .image-title {
    background: linear-gradient(transparent, rgba(0, 0, 0, 1));
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
