/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('images/AdeptusAstartes.jpg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    color: #f0f0f0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Overlay for darkening effect */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Logo */
.logo {
    max-width: 600px;
    width: 80%;
    margin: 0 auto;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5));
}

/* Main Button */
.main-button {
    background-color: #e6e600;
    color: #000;
    padding: 10px 30px;
    border: 2px solid #e6e600;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-radius: 50px;
    margin-top: 20px;
}

.main-button:hover {
    background-color: #000;
    color: #e6e600;
    border: 2px solid #000;
    transform: scale(1.05);
}

/* Gallery Section */
.gallery {
    text-align: center;
    padding: 50px 20px;
    background-image: url('images/EmperorOfMankind.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Background overlay for gallery */
.gallery::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

/* Gallery Title */
.gallery h2 {
    font-size: 2.5rem;
    color: #e6e600;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* General Carousel Styles */
.carousel {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    align-items: stretch;
}

.carousel-slide {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    padding: 15px;
    justify-content: space-between;
    height: 450px;
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Navigation Buttons */
.carousel-prev,
.carousel-next {
    background-color: #e6e600;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #b3b300;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background-color: #e6e600;
    transform: scale(1.3);
}

/* Chapter Info Box */
.chapter-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #f0f0f0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 15px;
}

/* Buy Button */
.buy-button {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #e6e600;
    color: #000;
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid #e6e600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    align-self: center;
    letter-spacing: 1px;
}

.buy-button:hover {
    background-color: #000;
    color: #e6e600;
    border: 2px solid #000;
    transform: scale(1.05);
}

/* Navigation Arrows */
.carousel-prev,
.carousel-next {
    background-color: #e6e600;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #b3b300;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Dots Navigation */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background-color: #e6e600;
    transform: scale(1.3);
}

/* Form Section */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 40px;
    background-color: transparent;
    height: auto;
    min-height: 100vh;
    margin-top: 40px;
    margin-bottom: 40px;
}

.form-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay for contrast */
.form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
/* Form Section */
.form-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 50px 20px;
    background-color: transparent;
    height: auto;
    min-height: 100vh;
}

.form-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

/* Form Container */
.form-container {
    background-color: #111;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7), inset 0px 0px 10px rgba(255, 255, 0, 0.2);
    flex: 1 1 60%;
    border: 2px solid rgba(230, 230, 0, 0.8);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    max-width: 90%;
}

.form-container h2 {
    font-size: 2rem;
    color: #e6e600;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.form-container label {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 10px;
    display: block;
}

.form-container input,
.form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #222;
    color: #f0f0f0;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.7);
}

.form-container input::placeholder {
    color: #ccc;
}

.form-container button {
    background-color: #e6e600;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(230, 230, 0, 0.6);
}

.form-container button:hover {
    background-color: #000;
    color: #e6e600;
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
}

/* PNG Character */
.form-image-container {
    flex: 1 1 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.form-image-container img {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0px 4px 15px rgba(0, 0, 0, 0.8));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-section {
        flex-direction: column;
    }

    .form-container {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .form-image-container {
        flex: 1 1 100%;
        justify-content: center;
    }

    .form-image-container img {
        max-width: 200px;
    }
}


/* Footer Section */
.footer {
    background-color: #111;
    color: #f0f0f0;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Left Section: Map Widget */
.footer-left {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
    position: relative;
}

.map-container {
    border: 2px solid #e6e600;
    background-color: #333;
    height: 300px;
    margin-bottom: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.aquila-icon {
    display: block;
    margin: 0 auto;
    width: 100px;
    height: auto;
    margin-top: -5px;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.7));
}

/* Right Section: Text, Search, and Form */
.footer-right {
    flex: 1;
    max-width: 100%;
    text-align: left;
    padding-left: 20px;
}

.footer-right h2 {
    font-size: 1.8rem;
    color: #e6e600;
    margin-bottom: 15px;
}

.footer-right p {
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.footer-right form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-right form label {
    font-size: 1rem;
    color: #f0f0f0;
}

.footer-right form input {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #222;
    color: #f0f0f0;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.6);
}

.footer-right form input::placeholder {
    color: #ccc;
}

.footer-right form button {
    background-color: #e6e600;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(230, 230, 0, 0.6);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-right form button:hover {
    background-color: #000;
    color: #e6e600;
    transform: scale(1.05);
}

/* Bottom Footer */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
    border-top: 1px solid #333;
    margin-top: 20px;
}

/* Responsive Adjustments for Footer */
@media (max-width: 768px) {
    .footer {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        order: 2;
        width: 100%;
        padding-right: 0;
    }

    .map-container {
        height: 200px;
        margin-bottom: 10px;
    }

    .aquila-icon {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .footer-right {
        order: 1;
        width: 100%;
        padding-left: 0;
    }

    .footer-right form {
        gap: 10px;
    }
}

.footer-right form label {
    font-size: 1rem;
    color: #f0f0f0;
}

.footer-right form input {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #222;
    color: #f0f0f0;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.6);
}

.footer-right form input::placeholder {
    color: #ccc;
}

.footer-right form button {
    background-color: #e6e600;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(230, 230, 0, 0.6);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-right form button:hover {
    background-color: #000;
    color: #e6e600;
    transform: scale(1.05);
}

/* Bottom Footer */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
    border-top: 1px solid #333;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-map input {
        width: 100%;
        margin: 10px 0;
    }

    #map {
        height: 200px;
    }
}

/* Animaciones */
/* Keyframes for background fade-in */
@keyframes fadeInBackground {
    from {
        background-color: rgba(0, 0, 0, 0.8);
    }
    to {
        background-color: rgba(0, 0, 0, 0);
    }
}

/* Keyframes for logo slide-in */
@keyframes slideInLogo {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Keyframes for button pulse */
@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0px 0px 5px rgba(230, 230, 0, 0.6);
    }
    50% {
        transform: scale(1.005);
        box-shadow: 0px 0px 15px rgba(230, 230, 0, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0px 0px 5px rgba(230, 230, 0, 0.6);
    }
}

/* Header background animation */
.header {
    animation: fadeInBackground 2s ease-out;
}

/* Logo animation */
.logo {
    animation: slideInLogo 1.5s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

/* Main button animation */
.main-button {
    animation: pulseButton 1.5s infinite;
}

/* Animación para la aparición del título */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery h2 {
    font-size: 2.5rem;
    color: #e6e600;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery h2.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animación para las imágenes del carrusel */
.carousel-slide {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide.animate {
    opacity: 1;
    transform: scale(1);
}

/* Animación para los botones del carrusel */
.carousel-prev,
.carousel-next {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.carousel-prev.animate,
.carousel-next.animate {
    opacity: 1;
    transform: scale(1);
}

/* Animación para los indicadores del carrusel */
.carousel-indicators {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.carousel-indicators.animate {
    opacity: 1;
}

/* Animación para el título del formulario */
.form-container h2 {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-container h2.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animación para los campos del formulario */
.form-container label,
.form-container input,
.form-container select {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-container label.animate,
.form-container input.animate,
.form-container select.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Animación para el botón del formulario */
.form-container button {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.form-container button.animate {
    opacity: 1;
    transform: scale(1);
}

/* Animación para el PNG */
.form-image-container img {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-image-container img.animate {
    opacity: 1;
    transform: translateX(0);
}

@keyframes subtleSwing {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.form-image-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 4px 15px rgba(0, 0, 0, 0.8));
    animation: subtleSwing 5s ease-in-out infinite;
}

@keyframes footerFadeIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer {
    opacity: 0;
    transform: translateY(50px);
    animation: footerFadeIn 2s ease-in-out forwards;
}
