

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --text-color-general: #ffffff;
    --text-color: #28285B;
    --text-color-second: #4d4d4f;
    --bg-carrusel: #f8c232;
}


/* =========================================================
   FUENTES
   ========================================================= */

@font-face {
    font-family: "Montserrat Bold";
    src: url("font/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat Book";
    src: url("font/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat Demi";
    src: url("font/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat ExtraBold";
    src: url("font/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat Heavy";
    src: url("font/Montserrat-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat Light";
    src: url("font/Montserrat-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat Medium";
    src: url("font/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}


/* =========================================================
   CONTENEDOR DEL CARRUSEL
   ========================================================= */

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible !important;
    box-sizing: border-box;
}


/* =========================================================
   CONTENEDOR DE TARJETAS
   ========================================================= */

.conatiner-card {

    width: 100%;

    display: flex;

    overflow-x: auto;
    overflow-y: visible;

    scroll-behavior: smooth;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    /*
     * ESPACIO PARA LAS FLECHAS EN PC
     */
    padding-top: 1rem;
    padding-bottom: 1rem;

    padding-left: 100px;
    padding-right: 100px;

    box-sizing: border-box;
}


/* Ocultar scrollbar */

.conatiner-card::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   ELEMENTOS DEL CARRUSEL
   ========================================================= */

.conatiner-card > * {
    flex-shrink: 0;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.card-container {

    width: 319px;

    height: 505px;

    flex-shrink: 0;

    border-radius: 20px;

    position: relative;

    overflow: hidden;

    margin-top: 2rem;

    margin-left: 2rem;

    box-sizing: border-box;

    box-shadow:
        10px 5px 20px rgba(0, 0, 0, 0.5);
}


/* Primera tarjeta */

.card-container:first-child {
    margin-left: 0;
}


/* =========================================================
   FONDOS
   ========================================================= */

#maria {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes_Bajo_El_Mano_De_Maria.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#peru {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes_Peru.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#lajasycocha {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes\ Grupales_Las_Lajas.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#argentina {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes\ Grupales\_Argentina.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#santiago {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes\ Grupales\_Camino\_De\_Santiago.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#safariID {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes\ Grupales\_Safari\_Africa.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#sanJose {

    background-image:
        url(imagenes/Mundial\ Tour_Viajes\ Grupales\_Eje\ Cafetero\_San\_Jose\_Milagroso.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.overlay {

    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: 10;

    transition: background 0.3s ease;
}


/* =========================================================
   TICKET
   ========================================================= */

.overlay .tiket p {

    width: fit-content;

    padding: 0.4rem;

    margin: 0;

    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;

    color: var(--text-color-general);

    background: var(--bg-carrusel);

    font-family: "Montserrat Book", sans-serif;

    line-height: 1.3;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.information {

    width: 100%;

    position: absolute;

    left: 0;
    bottom: 0;

    display: flex;

    flex-direction: column;

    gap: 0.55rem;

    height: auto;
    max-height: none;

    padding-top: 0.8rem;
    padding-bottom: 0.9rem;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        max-height 0.3s ease;
}


.information-general {

    width: 100%;

    position: absolute;

    left: 0;
    bottom: 0;

    display: flex;

    flex-direction: column;

    gap: 0.55rem;

    height: auto;
    max-height: none;

    padding-top: 0.8rem;
    padding-bottom: 0.9rem;

    box-sizing: border-box;

    transition:
        background 0.3s ease,
        max-height 0.3s ease;
}


/* =========================================================
   ELEMENTOS INTERNOS
   ========================================================= */

.information > *,
.information-general > * {

    margin-top: 0;
    margin-bottom: 0;

    padding-left: 1rem;
    padding-right: 1rem;

    box-sizing: border-box;
}


/* =========================================================
   TEXTO OCULTO
   ========================================================= */

.information .hidden,
.information-general .hidden {

    font-family: "Montserrat Book", sans-serif;

    color: var(--text-color-second);

    font-size: 13px;

    line-height: 1.45;

    visibility: hidden;
    opacity: 0;

    display: none;

    margin: 0;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.information h2,
.information-general h2 {

    margin: 0;

    font-family: "Montserrat ExtraBold", sans-serif;

    color: var(--text-color-general);

    font-size: 17px;

    line-height: 1.25;
}


/* =========================================================
   BOTÓN AVIÓN
   ========================================================= */

.information .airplane,
.information-general .airplane {

    position: relative;

    left: 0;

    width: fit-content;

    display: flex;

    padding-left: 0.8rem;
    padding-right: 1rem;

    border-radius: 20px;

    justify-content: flex-start;
    align-items: center;

    background: var(--bg-carrusel);

    font-family: "Montserrat Book", sans-serif;

    color: var(--text-color);

    line-height: 1.2;
}


/* =========================================================
   DÍAS
   ========================================================= */

.information .days,
.information-general .days {

    width: 100%;

    display: flex;

    justify-content: flex-start;
    align-items: center;

    gap: 0.3rem;

    font-family: "Montserrat Book", sans-serif;

    color: var(--text-color-general);

    font-size: 15px;

    line-height: 1.3;

    box-sizing: border-box;
}


/* =========================================================
   PRECIO
   ========================================================= */

.information .days .price,
.information-general .days .price {

    position: static;

    margin-left: auto;

    font-family: "Montserrat ExtraBold", sans-serif;

    color: var(--text-color-general);

    font-size: 17px;

    white-space: nowrap;
}


/* =========================================================
   HOVER DE TARJETA
   ========================================================= */

.overlay:hover {
    background: rgba(0, 0, 0, 0);
}


/* =========================================================
   INFORMACIÓN EN HOVER
   ========================================================= */

.overlay:hover .information {

    height: auto;

    max-height: 65%;

    left: 0;
    bottom: 0;

    background: #ffffff;

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.overlay:hover .information-general {

    height: auto;

    max-height: 55%;

    left: 0;
    bottom: 0;

    background: #ffffff;

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* =========================================================
   MOSTRAR INFORMACIÓN
   ========================================================= */

.overlay:hover .information .hidden,
.overlay:hover .information-general .hidden {

    visibility: visible;

    opacity: 1;

    display: block;

    color: var(--text-color);
}


/* =========================================================
   TÍTULO EN HOVER
   ========================================================= */

.overlay:hover .information h2,
.overlay:hover .information-general h2 {
    color: var(--text-color);
}


/* =========================================================
   OCULTAR TICKET EN HOVER
   ========================================================= */

.overlay:hover .tiket {

    visibility: hidden;

    opacity: 0;
}


/* =========================================================
   DÍAS EN HOVER
   ========================================================= */

.overlay:hover .information .days,
.overlay:hover .information-general .days {
    color: var(--text-color);
}


/* =========================================================
   PRECIO EN HOVER
   ========================================================= */

.overlay:hover .information .days .price,
.overlay:hover .information-general .days .price {
    color: var(--text-color);
}


/* =========================================================
   ICONO DÍAS
   ========================================================= */

.overlay:hover .information .days span svg path,
.overlay:hover .information-general .days span svg path {
    fill: #e42643;
}


/* =========================================================
   FLECHAS
   ========================================================= */

.carousel-arrow {

    position: absolute !important;

    top: 50% !important;

    width: 45px !important;
    height: 45px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;

    border-radius: 50% !important;

    background: #f8c232 !important;

    color: #ffffff !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    cursor: pointer;

    z-index: 999999 !important;

    opacity: 1 !important;
    visibility: visible !important;

    box-sizing: border-box !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    transform: translateY(-50%) !important;

    transition: none !important;

    box-shadow: none !important;
}


/* =========================================================
   FLECHA IZQUIERDA - PC
   ========================================================= */

.carousel-arrow-left {

    left: -55px !important;
}


/* =========================================================
   FLECHA DERECHA - PC
   ========================================================= */

.carousel-arrow-right {

    right: -55px !important;
}


/* =========================================================
   SVG DE LAS FLECHAS
   ========================================================= */

.carousel-arrow svg {

    width: 24px !important;
    height: 24px !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    stroke: #ffffff !important;

    fill: none !important;

    transition: none !important;

    transform: none !important;
}


/* =========================================================
   ELIMINAR HOVER DE LAS FLECHAS
   ========================================================= */

.carousel-arrow:hover,
.carousel-arrow:focus,
.carousel-arrow:active {

    background: #f8c232 !important;

    color: #ffffff !important;

    transform: translateY(-50%) !important;

    opacity: 1 !important;

    visibility: visible !important;

    box-shadow: none !important;

    outline: none !important;

    transition: none !important;
}


.carousel-arrow:hover svg,
.carousel-arrow:focus svg,
.carousel-arrow:active svg {

    stroke: #ffffff !important;

    fill: none !important;

    transform: none !important;

    transition: none !important;
}


/* =========================================================
   HOVER AUTOMÁTICO
   ========================================================= */

.overlay.auto-hover {
    background: rgba(0, 0, 0, 0);
}


.overlay.auto-hover .information {

    height: auto;

    max-height: 65%;

    left: 0;
    bottom: 0;

    background: #ffffff;

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.overlay.auto-hover .information-general {

    height: auto;

    max-height: 55%;

    left: 0;
    bottom: 0;

    background: #ffffff;

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.overlay.auto-hover .information .hidden,
.overlay.auto-hover .information-general .hidden {

    visibility: visible;

    opacity: 1;

    display: block;

    color: var(--text-color);
}


.overlay.auto-hover .information h2,
.overlay.auto-hover .information-general h2 {
    color: var(--text-color);
}


.overlay.auto-hover .tiket {

    visibility: hidden;

    opacity: 0;
}


.overlay.auto-hover .information .days,
.overlay.auto-hover .information-general .days {
    color: var(--text-color);
}


.overlay.auto-hover .information .days .price,
.overlay.auto-hover .information-general .days .price {
    color: var(--text-color);
}


.overlay.auto-hover .information .days span svg path,
.overlay.auto-hover .information-general .days span svg path {
    fill: #e42643;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .carousel-wrapper {

        width: 100%;

        overflow: visible !important;
    }


    .conatiner-card {

        width: 100%;

        padding-top: 1rem;
        padding-bottom: 1rem;

        /*
         * MENOS ESPACIO LATERAL
         */
        padding-left: 45px;
        padding-right: 45px;

        overflow-x: auto;
        overflow-y: visible;
    }


    .card-container {

        width: 300px;

        height: 480px;

        margin-left: 1.5rem;
    }


    .card-container:first-child {
        margin-left: 0;
    }


    /* =====================================================
       FLECHAS TABLET
       ===================================================== */

    .carousel-arrow {

        width: 40px !important;
        height: 40px !important;

        top: 50% !important;

        transform: translateY(-50%) !important;
    }


    /*
     * SE ACERCAN AL BORDE DE LA TARJETA
     */
    .carousel-arrow-left {

        left: 10px !important;
    }


    .carousel-arrow-right {

        right: 10px !important;
    }


    .carousel-arrow svg {

        width: 22px !important;
        height: 22px !important;
    }


    /* Información */

    .information .hidden,
    .information-general .hidden {

        font-size: 12px;

        line-height: 1.4;
    }


    .information h2,
    .information-general h2 {

        font-size: 16px;
    }


    .information .days,
    .information-general .days {

        font-size: 14px;
    }


    .information .days .price,
    .information-general .days .price {

        font-size: 16px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 500px) {

    .carousel-wrapper {

        width: 100% !important;

        overflow: visible !important;
    }


    .conatiner-card {

        width: 100%;

        padding-top: 1rem;
        padding-bottom: 1rem;

        /*
         * YA NO DEJAMOS 65px.
         *
         * Esto permite que las tarjetas ocupen mejor
         * el ancho disponible.
         */
        padding-left: 30px;
        padding-right: 30px;

        overflow-x: auto;
        overflow-y: visible;
    }


    .card-container {

        width: 270px;

        height: 440px;

        margin-left: 1rem;

        border-radius: 16px;
    }


    .card-container:first-child {
        margin-left: 0;
    }


    /* =====================================================
       FLECHAS MÓVIL
       ===================================================== */

    .carousel-arrow {

        width: 38px !important;
        height: 38px !important;

        top: 50% !important;

        background: #f8c232 !important;

        color: #ffffff !important;

        transform: translateY(-50%) !important;

        z-index: 999999 !important;
    }


    /*
     * AQUÍ ESTÁ EL CAMBIO PRINCIPAL.
     *
     * Las flechas quedan ligeramente encima
     * de la tarjeta.
     */

    .carousel-arrow-left {

        left: 10px !important;
    }


    .carousel-arrow-right {

        right: 10px !important;
    }


    .carousel-arrow svg {

        width: 21px !important;
        height: 21px !important;
    }


    /* =====================================================
       INFORMACIÓN
       ===================================================== */

    .information,
    .information-general {

        gap: 0.45rem;

        padding-top: 0.7rem;
        padding-bottom: 0.75rem;
    }


    .information > *,
    .information-general > * {

        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }


    .information h2,
    .information-general h2 {

        font-size: 15px;

        line-height: 1.25;
    }


    .information .hidden,
    .information-general .hidden {

        font-size: 11px;

        line-height: 1.4;
    }


    .information .airplane,
    .information-general .airplane {

        padding-left: 0.7rem;
        padding-right: 0.8rem;
    }


    .information .days,
    .information-general .days {

        font-size: 12px;

        gap: 0.2rem;
    }


    .information .days .price,
    .information-general .days .price {

        font-size: 14px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 380px) {

    .conatiner-card {

        padding-left: 25px;
        padding-right: 25px;
    }


    .card-container {

        width: 250px;

        height: 410px;

        margin-left: 0.8rem;

        border-radius: 15px;
    }


    /* =====================================================
       FLECHAS MÓVIL PEQUEÑO
       ===================================================== */

    .carousel-arrow {

        width: 36px !important;
        height: 36px !important;

        top: 50% !important;

        transform: translateY(-50%) !important;
    }


    .carousel-arrow-left {

        left: 7px !important;
    }


    .carousel-arrow-right {

        right: 7px !important;
    }


    .carousel-arrow svg {

        width: 20px !important;
        height: 20px !important;
    }


    /* =====================================================
       INFORMACIÓN
       ===================================================== */

    .information,
    .information-general {

        gap: 0.4rem;

        padding-top: 0.6rem;
        padding-bottom: 0.65rem;
    }


    .information > *,
    .information-general > * {

        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }


    .information h2,
    .information-general h2 {

        font-size: 14px;
    }


    .information .hidden,
    .information-general .hidden {

        font-size: 10px;

        line-height: 1.35;
    }


    .information .days,
    .information-general .days {

        font-size: 11px;
    }


    .information .days .price,
    .information-general .days .price {

        font-size: 13px;
    }

}

