@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Estilos globales */
body {
    margin: 0; /* Quita márgenes predeterminados */
    background-color: #000; /* Fondo negro */
    color: #eee; /* Texto gris claro */
    font-family: Poppins; /* Fuente principal */
    font-size: 12px; /* Tamaño general del texto */
    overflow-x: hidden;
}

* {
    padding: 0;
    box-sizing: border-box;
    margin: 0;
}

:root{
    --primary: #ff3700;
}

/* Elimina subrayado de enlaces */
a {
    text-decoration: none;
}

header {
    width: 1140px; /* Ancho máximo */
    max-width: 80%; /* Escala según el tamaño de la pantalla */
    margin: auto; /* Centrado horizontal */
    height: 50px; /* Altura fija */
    display: flex; /* Activación de flexbox */
    align-items: center; /* Alineación vertical */
    position: relative; /* Para posicionamiento adicional */
    z-index: 100; /* Prioridad sobre otros elementos */
}

header a {
    color: #eee; /* Color de los enlaces */
    margin-right: 40px; /* Espaciado entre ellos */
}

/* Contenedor fijo para la navegación */
.wrapper {
    position: fixed; /* Mantiene posición superior fija */
    top: 0;
    left: 50%; /* Centro horizontal */
    transform: translateX(-50%); /* Ajuste para centrar */
    width: 100%; /* Ocupa todo el ancho */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo negro translúcido */
    z-index: 100;
}

.nav-links {
    display: flex; /* Diseño flexible */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    gap: 15px; /* Separación entre elementos */
}

/* Configuración de estilo para cada enlace */
.nav-links a {
    color: #03fd42; /* Verde vibrante */
    font-size: 18px; /* Tamaño de texto */
    text-transform: uppercase; /* Mayúsculas */
    padding: 10px 20px; /* Espaciado interno */
    transition: 0.5s; /* Suavidad en interacciones */
    letter-spacing: 5px; /* Espaciado entre letras */
}

/* Efecto hover para enlaces de navegación */
.nav-links a:hover {
    color: #fff; /* Cambia a blanco */
    background: #00a928; /* Fondo verde */
    box-shadow: /* Sombra brillante verde */
        0 0 5px #00a928,
        0 0 25px #00a928,
        0 0 50px #00a928,
        0 0 100px #00a928;
}

/* Menú hamburguesa */
.menu-toggle {
    display: block; /* Visible por defecto */
    cursor: pointer; /* Indicador interactivo */
    position: absolute; /* Posicionamiento relativo al contenedor */
    left: 2px;
    top: 2px;
    background-color: rgb(22, 22, 22); /* Fondo negro */
    padding: 4.6px; /* Relleno alrededor del botón */
    border-radius: 3px; /* Bordes redondeados */
}

/* Diseño de las barras del menú */
.bar {
    display: block;
    width: 28px; /* Largo de cada barra */
    height: 3px; /* Grosor */
    background-color: #00a928; /* Color verde */
    margin: 5px auto; /* Espaciado uniforme */
    transition: all 0.3s ease; /* Transiciones suaves */
}

/* Estilo del fondo translúcido detrás del menú */
.menu-overlay {
    position: fixed; /* Cubre toda la pantalla */
    top: 0;
    left: 0;
    width: 100vw; /* Ancho total de la ventana */
    height: 100vh; /* Altura total */
    background-color: rgba(0, 0, 0, 0.8); /* Negro translúcido */
    opacity: 0; /* Invisible inicialmente */
    visibility: hidden; /* Oculto */
    transition: opacity 0.5s ease; /* Transición suave de visibilidad */
    z-index: 99;
}

/* Muestra el fondo al activar */
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Configuración para el carousel principal */
.carousel {
    height: 100vh; /* Ocupa toda la altura de la ventana */
    margin-top: -50px; /* Alineación ajustada */
    width: 100vw; /* Ocupa todo el ancho */
    overflow: hidden; /* Oculta contenido extra */
    position: relative;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content {
    position: absolute;
    top: 20%; /* Posición vertical */
    left: 5%; /* Justificado con respecto al borde izquierdo */
    width: auto; /* Ajuste automático del ancho */
    max-width: 50%; /* Limitar el ancho máximo */
    padding: 20px; /* Espaciado interno */
    background: rgba(0, 0, 0, 0.5); /* Fondo negro semitransparente */
    backdrop-filter: blur(8px); /* Efecto de difuminado */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Sombra */
    color: #fff; /* Texto blanco */
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.4); /* Sombra del texto */
    box-sizing: border-box;
    text-align: left; /* Justificar el contenido a la izquierda */
}

.carousel .list .item .content .des img {
    width: 100%; /* Asegura que las imágenes dentro de "des" se ajusten */
    max-width: 300px; /* Tamaño máximo para la imagen en valores */
    display: block;
    margin: 10px auto;
    border-radius: 5px; /* Bordes redondeados */
}

.carousel .list .item .author {
    font-weight: bold; /* Negrita */
    letter-spacing: 10px; /* Espaciado entre letras */
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-size: 5em; /* Tamaño grande para título y tema */
    font-weight: bold;
    line-height: 1.3em;
}

.carousel .list .item .topic {
    color: #00a928; /* Color verde */
}

/* Botones dentro del carousel */
.carousel .list .item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px); /* Dos columnas de 130px */
    grid-template-rows: 40px; /* Fila de 40px */
    gap: 5px; /* Espacio entre botones */
    margin-top: 20px;
}

.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}

.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* Miniaturas del carousel */
.thumbnail {
    position: absolute;
    bottom: 50px; /* Posición desde el borde inferior */
    left: 50%;
    width: max-content; /* Tamaño según contenido */
    z-index: 100;
    display: flex;
    gap: 20px; /* Espacio entre miniaturas */
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste sin distorsión */
    border-radius: 20px; /* Bordes redondeados */
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title {
    font-weight: 500;
}

.thumbnail .item .content .description {
    font-weight: 300;
}

/* Flechas de navegación del carousel */
.arrows {
    position: absolute;
    top: 80%; /* Posición vertical */
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}

.arrows button:hover {
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* Animación para el cuadro difuminado */
.carousel .list .item:nth-child(1) .content {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards; /* Animación sincronizada */
}

/* Animación para la imagen */
.carousel .list .item:nth-child(1) img {
    transform: scale(1.2); /* Imagen ligeramente ampliada inicialmente */
    opacity: 1;
    filter: blur(20px);
    animation: showImageMin .3s linear 1 forwards; /* Animación sincronizada */
}

@keyframes showImageMin {
    to {
        transform: scale(1); /* Tamaño normal */
        filter: blur(0px);
        opacity: 1;
    }
}

/* animation text in first item */
.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #00a928;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime .9s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}


@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostramos el menú hamburguesa */
    }
    
    .nav-links {
        width: 100%; /* Asegura que ocupe todo el ancho en móviles */
        left: 0; /* Pegado al borde izquierdo */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 40px; /* Alineado justo debajo del encabezado */
        left: 0; /* Pegado al borde izquierdo */
        width: 100%; /* Asegúrate de que ocupe todo el ancho */
        align-items: center;
        gap: 10px;
        padding: 20px 0;
        transform: translateX(-100%); /* Inicialmente fuera de la pantalla */
        opacity: 0; /* Oculto por defecto */
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    }
    
    .nav-links.active {
        opacity: 1;
        transform: translateX(0); /* Desliza el menú hacia adentro */
    }

    /* Animación para el cambio a "X" */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* Mueve la barra superior y la rota */
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0; /* Oculta la barra del medio */
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* Mueve la barra inferior y la rota */
    }

    .nav-links a {
        font-size: 22px;
    }

    /* Efecto hover */
    .nav-links a:hover {
        color: #fff;
        background: #00a928;
        box-shadow: 
            0 0 5px #00a928,
            0 0 25px #00a928,
            0 0 50px #00a928,
            0 0 100px #00a928;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Oculta el menú hamburguesa en pantallas grandes */
    }

    .nav-links {
        display: flex; /* Muestra el menú de navegación normal */
    }
}

/* Consultas de medios para dispositivos pequeños */
@media (max-width: 768px) {
    .carousel .list .item .content {
        top: 5%; /* Más arriba en pantallas pequeñas */
        left: 5%; /* Margen ajustado */
        padding: 15px; /* Menos relleno interno */
        max-width: 90%; /* Aumentar el ancho máximo */
    }

    .carousel .list .item .content .title {
        font-size: 1.8rem; /* Reducir el tamaño del título */
    }

    .carousel .list .item .content .topic {
        font-size: 1.5rem; /* Reducir tamaño */
    }

    .carousel .list .item .content .des {
        font-size: 1.2rem; /* Reducir tamaño del texto descriptivo */
    }
}

/* Consultas de medios para pantallas muy pequeñas */
@media (max-width: 480px) {
    .carousel .list .item .content {
        top: 5%;
        left: 5%;
        padding: 10px; /* Relleno más pequeño */
    }

    .carousel .list .item .content .title,
    .carousel .list .item .content .topic {
        font-size: 1.4rem; /* Reducir aún más el tamaño del texto */
    }

    .carousel .list .item .content .des {
        font-size: 1rem; /* Tamaño compacto para texto */
    }
}

/* Footer */

footer {
    background-color: #000; /* Fondo negro */
    color: #fff; /* Texto blanco */
    padding: 15px 0;
    text-align: center;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .footer-links li {
    margin: 0;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: #00a928;
  }
  
  .social-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .social-links li {
    margin: 0;
  }
  
  .social-links a {
    color: #00a928;
    font-size: 18px;
    transition: color 0.3s;
  }
  
  .social-links a:hover {
    color: #00a928;
  }
  
/* Servicios */

  .containerService {
    width: 100%; /* Reducimos el tamaño al 85% */
    height: 100vh; /* Ajustamos la altura para que no ocupe toda la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 0;
  }
  
  .slider::-webkit-scrollbar {
    display: none;
  }
  
  .slider .slide {
    flex: 1 0 100%;
    scroll-snap-align: start;
    position: relative;
  }
  
  .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0 auto;
    display: block;
  }
  
  .slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  
  .slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease 250ms;
    cursor: pointer;
  }
  
  .slider-nav a:hover {
    opacity: 1;
  }
  
  .text-box {
    position: absolute;
    top: 50%; /* Centrado vertical */
    left: 50%; /* Centrado horizontal */
    transform: translate(-50%, -50%); /* Ajuste para centrar exactamente */
    padding: 1.5rem; /* Espaciado interno */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)); /* Fondo degradado */
    color: #fff;
    border-radius: 1rem;
    text-align: left;
  
    /* Tamaño relativo al contenido */
    width: auto; /* Se adapta al contenido */
    height: auto; /* Se adapta al contenido */
    
    /* Límites mínimos y máximos */
    min-width: 200px; /* Ancho mínimo */
    max-width: 90%; /* Ancho máximo relativo al contenedor */
    min-height: 100px; /* Altura mínima */
    max-height: 50vh; /* Altura máxima, relativa a la pantalla */
    
    overflow-y: auto; /* Scroll si el contenido excede el tamaño máximo */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Sombra atractiva */
  }
  
  .text-box h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #00a928; /* Color destacado */
  }
  
  .text-box p {
    position: relative;
    padding-left: 20px; /* Espacio entre la viñeta y el texto */
    margin: 0.5rem 0; /* Espaciado entre párrafos */
  }
  
  .text-box p::before {
    content: "•"; /* Símbolo de la viñeta */
    position: absolute;
    left: 0; /* Ubicación de la viñeta */
    color: #fff; /* Cambia a cualquier color que desees */
    font-size: 1.2rem; /* Ajusta el tamaño según necesites */
    line-height: 1; /* Alineación vertical */
  }
  
  .text-box img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 1rem;
  }
  
  .text-box::-webkit-scrollbar {
    width: 8px;
  }

  .text-box::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5); /* Color del scrollbar */
    border-radius: 4px;
  }

  @media (max-width: 1024px) {
    .text-box {
      grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas medianas */
      max-width: 90%;
      font-size: 1.2rem;
      padding: 1rem;
    }
  
    .text-box img {
      width: 60%;
    }
  }
  
  @media (max-width: 768px) {
    .slider-nav {
      bottom: 0.5rem;
    }
  
    .text-box {
      grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas más pequeñas */
      max-height: 70vh; /* Limitar altura */
      font-size: 1rem;
      max-width: 80%;
      padding: 1rem;
    }
  
    .text-box h2 {
      font-size: 1.5rem;
    }
  
    .text-box img {
      width: 60%;
    }
  }
  
  @media (max-width: 480px) {
    .text-box {
      grid-template-columns: 1fr; /* Una columna en pantallas muy pequeñas */
      max-width: 100%; /* Usar todo el ancho */
      max-height: 50vh; /* Aumentamos altura */
      bottom: 1rem;
      font-size: 0.9rem; /* Texto más pequeño */
      padding: 0.8rem;
    }
  
    .text-box img {
      width: 70%;
    }
  }
  
/* Registros */

.slider-container {
    width: 100%;
    height: 100vh;
    background-image: url('image/background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Ajuste para dispositivos pequeños */
}

.slider-images {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 21px;
    flex-wrap: wrap; /* Permite que las imágenes se ajusten en pantallas pequeñas */
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.slider-img {
    width: 110px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: 0.7s ease;
}

.slider-images .slider-img:first-child,
.slider-images .slider-img:last-child {
    height: 545px;
}

.slider-images .slider-img:nth-child(3),
.slider-images .slider-img:nth-child(6) {
    height: 510px;
}

.slider-images .slider-img:nth-child(2),
.slider-images .slider-img:nth-child(4),
.slider-images .slider-img:nth-child(6) {
    height: 615px;
}

h1 {
    font-family: "Jost", sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    top: -54%;
    left: -10%;
    transform: rotate(270deg);
    transition: 0.7s ease;
}

.details {
    position: absolute;
    bottom: 43px;
    left: 43px;
}

.details h2 {
    font-family: "Jost", sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-align: left;
    line-height: 44px;
    color: #fff;
    text-transform: uppercase;
    transition: 0.7s ease;
    display: none;
}

.details p {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    line-height: 33px;
    color: #fff;
    text-transform: uppercase;
    transition: 0.7s ease;
    display: none;
}

.slider-img.active {
    width: 650px !important;
    height: 620px !important;
}

.slider-img.active h1 {
    display: none;
}

.slider-img.active .details p,
.slider-img.active .details h2 {
    display: block;
}

/* Responsividad */
@media (max-width: 1024px) {
    .slider-images .slider-img:first-child,
    .slider-images .slider-img:last-child {
        height: 270px;
    }
    
    .slider-images .slider-img:nth-child(3),
    .slider-images .slider-img:nth-child(6) {
        height: 240px;
    }
    
    .slider-images .slider-img:nth-child(2),
    .slider-images .slider-img:nth-child(4),
    .slider-images .slider-img:nth-child(6) {
        height: 350px;
    }

    h1 {
        font-size: 30px;
        top: -40%;
    }

    .slider-img {
        width: 90px;
    }

    .slider-img.active {
        width: 500px !important;
        height: 500px !important;
    }
}

@media (max-width: 768px) {
    .slider-images .slider-img:first-child,
    .slider-images .slider-img:last-child {
        height: 260px;
    }
    
    .slider-images .slider-img:nth-child(3),
    .slider-images .slider-img:nth-child(6) {
        height: 220px;
    }
    
    .slider-images .slider-img:nth-child(2),
    .slider-images .slider-img:nth-child(4),
    .slider-images .slider-img:nth-child(6) {
        height: 320px;
    }

    h1 {
        font-size: 25px;
        top: -30%;
    }

    .slider-img {
        width: 80px;
    }

    .slider-img.active {
        width: 400px !important;
        height: 400px !important;
    }

    .details {
        bottom: 20px;
        left: 20px;
    }

    .details h2 {
        font-size: 20px;
    }

    .details p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .slider-images .slider-img:first-child,
    .slider-images .slider-img:last-child {
        height: 145px;
    }
    
    .slider-images .slider-img:nth-child(3),
    .slider-images .slider-img:nth-child(6) {
        height: 110px;
    }
    
    .slider-images .slider-img:nth-child(2),
    .slider-images .slider-img:nth-child(4),
    .slider-images .slider-img:nth-child(6) {
        height: 215px;
    }

    .slider-container {
        height: auto;
        padding: 20px;
    }

    .slider-images {
        flex-direction: column;
        gap: 15px;
    }

    .slider-img {
        width: 250px;
        height: auto;
    }

    .slider-img.active {
        width: 300px !important;
        height: auto !important;
    }

    h1 {
        display: none; /* Opcional para pantallas pequeñas */
    }

    .details h2 {
        font-size: 18px;
    }

    .details p {
        font-size: 14px;
    }
}


/* Contacto */

/* Estilos del contenedor principal */
.container {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 40px 65px 100px 45px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
  
.container .contentContact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
  
/* Estilos para el lado izquierdo (detalles de contacto) */
.container .contentContact .left-side {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    position: relative;
}
  
.contentContact .left-side::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #afafb6;
}
  
.contentContact .left-side .detailsContact {
    margin: 30px;
    text-align: center;
}
  
.contentContact .left-side .detailsContact i {
    font-size: 30px;
    color: #a0d9a7; /* Verde pastel */
    margin-bottom: 20px;
}
  
.contentContact .left-side .detailsContact .topic {
    font-size: 18px;
    font-weight: 500;
    color: #3e3c3c;
}
  
.contentContact .left-side .detailsContact .text-one,
.contentContact .left-side .detailsContact .text-two {
    font-size: 14px;
    color: #afafb6;
}
  
/* Estilos para el lado derecho (formulario) */
.container .contentContact .right-side {
    width: 75%;
    margin-left: 75px;
}
  
.contentContact .right-side .topic-text {
    font-size: 23px;
    font-weight: 600;
    color: #a0d9a7; /* Verde pastel */
}
  
.right-side .input-box {
    height: 50px;
    width: 100%;
    margin: 12px 0;
}
  
.right-side .input-box input,
.right-side .input-box textarea {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: #F0F1F8;
    border-radius: 6px;
    padding: 0 15px;
    resize: none;
}
  
.right-side .message-box {
    min-height: 110px;
}
  
.right-side .input-box textarea {
    padding-top: 6px;
}
  
.right-side .button {
    display: inline-block;
    margin-top: 12px;
}

.right-side p {
    color: #000;
}
  
/* Estilo del botón de envío */
.right-side .button input[type="submit"] {
    color: #fff;
    font-size: 18px;
    outline: none;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    background: #a0d9a7; /* Verde pastel para el botón */
    cursor: pointer;
    transition: all 0.3s ease;
}
  
/* Hover en el botón de envío */
.button input[type="submit"]:hover {
    background: #89b796; /* Tono ligeramente más oscuro para el hover */
}
  
  /* Estilos para la responsividad */
@media (max-width: 950px) {
    .container {
      width: 100%;
      padding: 30px 40px 40px 35px;
    }
    .container .contentContact .right-side {
      width: 75%;
      margin-left: 55px;
    }
}
  
@media (max-width: 820px) {
    .container {
      margin: 40px 0;
      height: 100%;
    }
    .container .contentContact {
      flex-direction: column-reverse;
    }
    .container .contentContact .left-side {
      width: 100%;
      flex-direction: row;
      margin-top: 40px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .container .contentContact .left-side::before {
      display: none;
    }
    .container .contentContact .right-side {
      width: 100%;
      margin-left: 0;
    }
}
  
/* Estilo general del modal */
.modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}
  
.modal.active {
    display: flex;
    opacity: 1;
}
  
/* Contenedor del contenido del modal */
.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}
  
/* Encabezado del modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
  
.modal-header .titleContact {
    font-size: 24px;
    font-weight: 600;
    color: #a0d9a7; /* Verde pastel */
}
  
.modal-header .close-btn {
    font-size: 22px;
    color: #a0d9a7;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}
  
.modal-header .close-btn:hover {
    color: #89b796; /* Tono más oscuro para hover */
}
  
/* Estilos del cuerpo del modal */
.modal-body {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}
  
.modal-body p {
    line-height: 1.6;
}
  
/* Estilos del pie de modal */
.modal-footer {
    text-align: right;
}
  
.modal-footer button {
    background-color: #a0d9a7; /* Verde pastel */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
  
.modal-footer button:hover {
    background-color: #89b796; /* Tono ligeramente más oscuro para hover */
}
  
/* Animación de entrada */
.modal-content.active {
    transform: translateY(0);
}
  
/* Animación para el modal */
@keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px); /* Empuja el modal desde abajo */
    }
    100% {
      opacity: 1;
      transform: translateY(0); /* Modal en su posición final */
    }
}
  
@keyframes fadeOutDown {
    0% {
      opacity: 1;
      transform: translateY(0); /* El modal está en su posición inicial */
    }
    100% {
      opacity: 0;
      transform: translateY(20px); /* El modal se desplaza hacia abajo */
    }
}

/* Modal visible */
.modal-content {
    animation: fadeInUp 0.5s ease-out; /* Aplicamos la animación de entrada */
}
  
  /* Cuando el modal se cierra, aplicamos la animación de salida */
.modal.closing .modal-content {
    animation: fadeOutDown 0.5s ease-out;
}
  
/* Fondo del modal con un efecto de desvanecimiento */
.modal-overlay {
    animation: fadeInUp 0.3s ease-out;
}
  
/* Animación para la aparición del botón de cierre */
.close-btn {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.3s forwards; /* Aparece con un retraso de 0.3s */
}
  
/* Animación de desvanecimiento de la cruz de cierre */
.modal.opened .close-btn {
    opacity: 1;
}