/* Estilos básicos */
body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(-45deg, #23d5ab, #23a6d5, #0c85b0, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    background-attachment: fixed;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header,
.main,
footer {
    background: inherit;
    animation: inherit;
    background-size: inherit;
}

.header {
    padding: 30px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-top: 10px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.header h1 {
    margin: 0;
    font-size: 4em;
    color: #ffffff;
    text-align: center;
}

.header h1:hover {
    color: #aaaaaa;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 20px;
    
}

.header .about-link {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
    font-size: 1em;
    align-items: center;
    font-weight: 700;
}

.header .about-link:hover {
    color: #98d7f7ff;
}

.header .logo-icon {
    width: 70px;
    height: auto;
    color: #ffffff; 
    transition:
        color 0.3s,
        stroke 0.3s;
}

.logo-link:hover .logo-icon {
    color: #98d7f7ff;
}

.nav {
    display: flex;
    align-items: center;
}

.main {
    padding: 120px 20px 20px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    color: #e0dfdc;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
}

.gallery-item {
    position: relative;
    flex: 1 1 calc(50% - 20px);
    max-width: calc(54% - 10px);
    height: 300px;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    text-decoration: none;
    transition:
        background-color 0.3s,
        flex-basis 0.3s;
    font-family: "Raleway", sans-serif;
    overflow: hidden;
    font-weight: bold;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}

.gallery-item span {
    position: absolute;
    color: #ffffff;
    font-size: 2em;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    filter: blur(5px);
}

.gallery-item:hover span {
    opacity: 1;
}

.gallery-section {
    width: 100%;
    padding: 68.1px 20px;
    box-sizing: border-box;
    scroll-margin-top: 100px;
}

.gallery-section h2 {
    scroll-margin-top: 170px;
    font-size: 2em;
    color: #ffffff;
}

.gallery-section h3 {
    scroll-margin-top: 100px;
    font-size: 1em;
    color: #ffffff;
}

.gallery-section .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.gallery-section .gallery img,
.gallery-section .gallery iframe {
    width: 100%;
    max-width: calc(33.333% - 20px);
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.gallery-section h2,
.gallery-section h3 {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 1s ease-in-out,
        transform 1s ease-in-out;
}

.gallery-section.visible h2,
.gallery-section.visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section .gallery img.expanded,
.gallery-section .gallery iframe.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120vh;
    max-width: 90vw;
    max-height: 90vh;
    transform: translate(-50%, -50%) scale(1) rotateY(360deg);
    z-index: 1001;
    transition: transform 0.5s ease-in-out;
}

.darken {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.close-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90vw;
    height: auto;
    max-height: 90vh;
    transform: translate(-50%, -50%) scale(1);
    color: #fff;
    font-size: 500px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.close-expanded:hover,
.close-expanded:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.about-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #e0dfdc;
    text-align: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 50px;
    box-sizing: border-box;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
    font-family: "Raleway", sans-serif;
}

.about-section.active {
    display: block;
    opacity: 1;
}

.about-title {
    font-size: 2.5em;
    margin-top: 50px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.about-content p {
    font-size: 1em;
    margin: 20px 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
    font-family: "Raleway", sans-serif;
    font-weight: bold;
}

.about-content .about-image {
    max-width: 30%;
    height: auto;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.3);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    margin: 20px 40px;
}

.about-section.active .about-content {
    animation: fadeIn 1s ease-in-out;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    object-fit: cover; /* Ajusta el contenido para cubrir el área sin distorsión */
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra el contenedor */
}

/* Estilo responsivo */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 75%; /* Relación de aspecto para dispositivos verticales */
    }
}

@media (max-width: 480px) {
    .video-container {
        padding-bottom: 100%; /* Relación de aspecto cuadrada para pantallas muy pequeñas */
    }
}

.video-controls {
    margin-top: 1px;
    text-align: center;
}

.video-controls button {
    background-color: #0099cc;
    border: none;
    color: white;
    padding:10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 1em;
}

.video-controls button:hover {
    background-color: #0077aa;
}

#contact-form {
    padding: 20px;
    font-weight: 600;
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    font-family: "Raleway", sans-serif;
}

#contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    
}

#contact-form label {
    opacity: 70%;
     display: block;
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    display: block;
    margin: 5px auto;
    font-size: 1em;
    font-family: "Raleway", sans-serif;
    animation: gradient 15s ease infinite;
    border: none;
    outline: none;
    font-weight: 500;
    opacity: 70%;
    width: 100%;
    max-width: 400px;
    transition:
        opacity 0.3s ease,
        transform 0.3s;
    color: #0099cc;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
    resize: vertical;
}

#contact-form input[type="submit"] {
    background-color: #0099cc;
    color: white;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 1em;
    transition:
        opacity 0.3s ease,
        transform 0.3s;
    font-family: "Raleway", sans-serif;
    opacity: 70%;
    font-weight: 500;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
}

#contact-form input:hover {
    transform: scale(1.05);
    opacity: 1;
}

#contact-form input[type="submit"]:hover {
    background-color: #0077aa;
}

.contact {
    background-color: #0099cc;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #007acc; /* Color verde de éxito */
    opacity: 50%;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    z-index: 1000;
    display: none; /* Ocultar por defecto */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.contact .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
}

.social {
    display: flex;
    justify-content: center;
}

.social-icon {
    margin: 0 10px;
    color: #ffffff;
    transition:
        transform 0.3s,
        color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #0099cc;
}

.email {
    margin-top: 20px;
    font-size: 1.2em;
    color: #ffffff;
}

@media (max-width: 768px) {
    .header {
        padding: 20px 10px;
        flex-direction: column;
        align-items: center;
    }

    .header .container {
        flex-direction: column;
        align-items: center;
    }

    .header h1 {
        font-size: 2em;
        text-align: center;
    }

    .header .about-link {
        margin-top: 20px;
        font-size: 1.2em;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        flex-basis: calc(100% - 20px);
        max-width: calc(100% - 20px);
        height: 150px;
    }

    .gallery-section .gallery img,
    .gallery-section .gallery iframe {
        max-width: calc(100% - 20px);
        margin-bottom: 10px;
    }

    .gallery-item:nth-child(1) {
        margin-top: 100px;
    }

    .contact .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .gallery-item {
        flex-basis: calc(100% - 10px);
        height: 100px;
    }

    .gallery-section .gallery img,
    .gallery-section .gallery iframe {
        max-width: calc(100% - 10px);
    }
}

@media (forced-colors: active) {
    body {
        background-color: Highlight;
        color: ButtonText;
    }
}


@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.deepshadow {
    background: linear-gradient(90deg, #71f0ffff 0%, #71c4ffff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease-in-out infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #0099cc;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.3s ease,
        transform 0.3s,
        visibility 0.3s ease;
    opacity: 0.7;
}

#scroll-to-top i {
    font-size: 1.5em;
}

#scroll-to-top.show {
    display: flex;
    opacity: 0.7;
    visibility: visible;
    color: white;
}

#scroll-to-top:hover {
    background-color: #0077aa;
    transform: scale(1.1);
}

/* Ocultar la barra de progreso */
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: none;
}

video::-moz-media-controls {
    display: none;
}

video::-ms-media-controls {
    display: none;
}
