@import url('/estaticos/css/paquetes.css');

/* Contenido principal */
.content {
    display: grid;
    grid-template-columns: 6fr 4fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "cuadrante2 cuadrante1"
        "cuadrante3 cuadrante4";
    gap: 0;
    padding: 0;
    align-content: start;
    flex: 1;
}

.botones-control {
    margin-bottom: 0;
    width: 100%;
}

/* Comportamiento de botones por cuadrante */
.cuadrante3 .botones-control {
    text-align: left;
}

.cuadrante4 .botones-control {
    text-align: right;
}

.btn {
    color: white;
    border: none;
    padding: .3125rem .5rem .1875rem;
    margin: .5rem 0;
    border-radius: .25rem;
    cursor: pointer;
}

.btn-info {
    background: var(--ocre-600);
}

.btn-info:hover {
    background: var(--ocre-500);
}

.btn-iti {
    background: var(--verde-400);
}

.btn-iti:hover {
    background: var(--verde-300);
}



/* - - - - - - - Cuadrante I - - - - - - - */
.cuadrante1 {
    grid-area: cuadrante1;
    background: white;
    padding: .375rem .375rem 0 1.25rem;
    text-align: left;
    /* Pa'bajar h1: */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cuadrante1 h1 {
    color: var(--verde-400);
    margin-bottom: .625rem;
    font-size: 2.625rem;
}

.cuadrante1 .pais {
    color: var(--negro);
    font-size: 1.125rem;
    font-weight: bold;
}

/* Sección destacar - Se oculta si está vacía */
.destacar {
    background: var(--verde-400);
    color: white;
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1.25rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

.destacar:empty {
    display: none;
}

/* Sección de precios */
.precios-seccion {
    margin-bottom: 1.25rem;
}

.precios-seccion h3 {
    color: var(--ocre-600);
    margin-bottom: 1rem;
    font-size: 1.375rem;
    text-align: center;
}

.opcion-precio {
    background: white;
    border: 0.0625rem solid var(--ocre-400);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.opcion-hotelera {
    background: var(--ocre-400);
    color: white;
    padding: 0.75rem;
    font-weight: bold;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.precios-variables {
    background: white;
    color: var(--ocre-500);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.3;
}
.precios-variables img {
    vertical-align: -.1875rem;
    width: 1rem;
    height: auto;
}

.precios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.precio-item {
    padding: 0.75rem;
    text-align: center;
    border-right: 0.0625rem solid var(--ocre-200);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.precio-item img {
    vertical-align: 0;
    width: 1.25rem;
    height: auto;
}

.precio-item:last-child {
    border-right: none;
}

.precio-tipo {
    font-weight: bold;
    color: var(--ocre-600);
    font-size: 0.875rem;
}

.precio-valor {
    font-weight: bold;
    color: var(--verde-400);
    font-size: 1.125rem;
}

/* - - - - - - - Cuadrante II - - - - - - - */
.cuadrante2 {
    grid-area: cuadrante2;
    /*border-top-left-radius: .5rem;*/
    overflow: hidden;
    aspect-ratio: 21/9;
}

.cuadrante2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* - - - - - - - Cuadrante III - - - - - - - */
.cuadrante3 {
    grid-area: cuadrante3;
    background: #f0d0c5;
    padding: 1.25rem;
}

.intro-paquete {
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: .25rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.9375rem;
    backdrop-filter: blur(5px);
}

.intro-paquete:empty {
    display: none;
}

.itinerario-item {
    margin-bottom: .9375rem;
}

.itinerario-titulo {
    background: var(--verde-400);
    color: whitesmoke;
    padding: .625rem;
    cursor: pointer;
    border-radius: .25rem;
    transition: background-color 0.3s;
}

.itinerario-titulo:hover {
    background: var(--verde-300);
    color: white;
}

.itinerario-contenido {
    display: none;
    background: white;
    padding: .9375rem;
    border: .0625rem solid var(--verde-400);
    border-top: none;
    border-radius: 0 0 .25rem .25rem;
}

.itinerario-contenido.active {
    display: block;
}

/* - - - - - - - Cuadrante IV - - - - - - - */
.cuadrante4 {
    grid-area: cuadrante4;
    background: #f0ded8;
    padding: 1.25rem;
}

.acordeon-item {
    margin-bottom: .625rem;
}

.acordeon-titulo {
    background: var(--ocre-600);
    color: whitesmoke;
    padding: .75rem;
    cursor: pointer;
    border-radius: .25rem;
    transition: background-color 0.3s;
    font-weight: bold;
}

.acordeon-titulo:hover {
    background: var(--ocre-500);
    color: white;
}

.acordeon-contenido {
    display: none;
    background: white;
    padding: .9375rem;
    border: .0625rem solid var(--ocre-400);
    border-top: none;
    border-radius: 0 0 .25rem .25rem;
}

.acordeon-contenido.active {
    display: block;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-title {
    color: var(--ocre-600);
}

.info-content {
    line-height: 1.6;
    color: var(--texto);
    font-size: 0.9375rem;
}

.info-content:empty {
    display: none;
}

.info-content + .info-section .info-title {
    margin-top: 0.5rem;
}

/* Responsive - Mobile */
@media (max-width: 48rem) {
    .content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cuadrante2"
            "cuadrante1"
            "cuadrante3"
            "cuadrante4";
        padding: .625rem;
    }

    .cuadrante3 .botones-control {
        text-align: right;
    }

    .destacar {
        font-size: 0.9375rem;
        padding: 0.625rem;
    }

    .precios-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .precio-item {
        border-right: none;
        border-bottom: 0.0625rem solid var(--ocre-200);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.625rem 0.75rem;
    }

    .precio-item:last-child {
        border-bottom: none;
    }

    .precio-tipo {
        font-size: 1rem;
    }

    .precio-valor {
        font-size: 1.0625rem;
    }

    /* Cuadrante 4 */
        .info-title {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.625rem;
    }
    
    .info-content {
        font-size: 0.875rem;
    }
}