/* Estilos básicos */
body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(-45deg, #E5D9F2, #245953, #408E91, #E5D9F2);
    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: #E5D9F2;
}

.header .logo-icon {
    width: 70px;
    height: auto;
    fill: white; /* Usamos 'fill' en lugar de 'color' */
    transition: fill 0.3s, stroke 0.3s;
}

.logo-link:hover .logo-icon {
    fill: #E5D9F2; /* Cambiar el color del logo al pasar el mouse */
}

.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);
}

.alekos-device-section {
    padding: 70px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.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(30% - 20px);
    max-width: calc(30% - 20px);
    height: 50px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    text-decoration: none;
    transition:
        background-color 0.3s,
        flex-basis 0.3s;
    font-family: "Montserrat", 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;
}

.gallery0 {
    display:flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 102%;
}


.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;
    text-align: justify;
}

.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;
    flex-wrap: wrap; /* Permite que las columnas se adapten en pantallas pequeñas */
    justify-content: space-between; /* Espaciado entre columnas */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #e0dfdc;
    text-align: justify;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 20px 20px;
    box-sizing: border-box;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
    font-family: "Montserrat", sans-serif;
    font-size: 12px; /* Ajusta el tamaño según tu preferencia */
}

.about-section.active {
    display: block;
    opacity: 1;
}

.about-title {
    font-size: 2em;
    margin: 20px 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

.about-content p {
    
    font-size: 8px;
    margin: 10px 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    text-align: justify;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
}

.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.about-image {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.about-content .about-image {
    max-width: 50%;
    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;
}

/* Columna de imagen */
.about-image-container {
    flex: 1;
    min-width: 300px;
     max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen */
.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* Video Container */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

/* Título del video */
.video-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Cambia según el diseño */
}

/* Wrapper para el video */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Fondo mientras carga el video */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Iframe del video */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilo responsivo */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 75%; /* Ajustar la relación de aspecto para dispositivos móviles */
    }
}

@media (max-width: 480px) {
    .video-container {
        padding-bottom: 100%; /* Ajustar la relación de aspecto para dispositivos muy pequeños */
    }
}

.video-controls {
    margin-top: 10px;
    text-align: center;
}

.video-controls button {
    background-color: #E5D9F2;
    border: none;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 1em;
}

.video-controls button:hover {
    background-color: #245953;
}

#contact-form {
    padding: 20px;
    font-weight: 600;
    color: white;
    text-align: center;
    border-radius: 10px;
    margin: 20px;
}

#contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

#contact-form label {
    opacity: 70%;
}

#contact-form input,
#contact-form textarea {
    display: block;
    margin: 5px auto;
    font-size: 1em;
    font-family: "Monserrat", 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: #E5D9F2;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form input[type="submit"] {
    background-color: #E49393;
    color: white;
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 1em;
    transition:
        opacity 0.3s ease,
        transform 0.3s;
    font-family: "Montserrat", 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: #E49393;
}

.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;
}

.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: #E5D9F2;
}

.email {
    margin-top: 20px;
    font-size: 1.2em;
    color: #ffffff;
}

@media (max-width: 768px) {
    
  .about-image-container {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
    
    .about-section {
        flex-direction: column; /* Cambia a columnas apiladas */
        text-align: center;
    }

    .about-text {
        max-width: 100%;
        text-align: justify;
    }
    
    .about-image-container {
        max-width: 100%;
    }
    
    
    .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);
    }
}


/* Estilo para la imagen del dispositivo Alekos */
/* Control del tamaño de la imagen según el ancho de la pantalla */
.alekos-device-image {
    max-width: 30%; /* La imagen ocupa el 50% del ancho de su contenedor */
    height: auto; /* Mantiene la relación de aspecto original */  
}

/* Medidas responsivas para la imagen */
@media (max-width: 768px) {
    .button-item {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        height: 80px;
        font-size: 1.2em;
    }

    .alekos-device-image {
        max-width: 70%; /* En pantallas medianas la imagen ocupa el 70% del ancho */
    }
}

@media (max-width: 480px) {
    .alekos-device-image {
        max-width: 90%; /* En pantallas pequeñas la imagen ocupa el 90% del ancho */
    }
}

@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, #E5D9F2 0%, #E49393 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: #E5D9F2;
    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: #E5D9F2;
    transform: scale(1.1);
    opacity: 0.9;
    
}

/* 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;
}
.video-container {
    text-align: center;
    margin: 10px 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}