/* Top destinos
   Paleta y formas heredadas de la home: ambar de accion #fab300 con texto
   oscuro y gris de texto #6f7f8f. El verde se queda solo en precios e iconos,
   donde el ambar sobre blanco no llegaria a leerse. */

.destinos {
    color: #4a555f;
    font-size: 16px;
    line-height: 1.65;
}

.destinos .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.destinos h1,
.destinos h2 {
    color: #191f26;
    font-weight: bold;
    margin: 0 0 14px;
}

.destinos h1 {
    font-size: 40px;
    line-height: 1.18;
}

.destinos h2 {
    font-size: 28px;
}

.destinos-kicker {
    margin: 0 0 8px;
    color: #fab300;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ cabecera */

.destinos-hero {
    padding: 56px 0 44px;
    background: #f6f7f9;
    border-bottom: 1px solid #e9ecef;
}

.destinos-hero-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.destinos-hero-text {
    flex: 1 1 58%;
    min-width: 0;
}

.destinos-lead {
    max-width: 34em;
    margin: 0 0 18px;
    font-size: 18px;
}

.destinos-hero-media {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.destinos-hero-media picture {
    display: block;
}

.destinos-hero-media img {
    display: block;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(25, 31, 38, .16);
}

.destinos-hero-media picture:first-child img {
    width: 280px;
}

.destinos-hero-media picture:last-child img {
    width: 145px;
}

.destinos-breadcrumb {
    font-size: 13px;
    color: #8a949e;
}

.destinos-breadcrumb a {
    color: #8a949e;
    text-decoration: underline;
}

.destinos-breadcrumb a:hover {
    color: #fab300;
}

.destinos-breadcrumb span {
    margin: 0 6px;
}

.destinos-breadcrumb span[aria-current] {
    margin-left: 0;
    color: #4a555f;
}

/* -------------------------------------------------------------------- rejilla */

.destinos-grid-section {
    padding: 56px 0;
}

.destinos-grid-intro {
    margin: 0 0 28px;
    color: #8a949e;
    font-size: 15px;
}

.destinos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.destino-card {
    margin: 0;
}

.destino-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.destino-card-link:hover,
.destino-card-link:focus {
    transform: translateY(-4px);
    border-color: #fab300;
    box-shadow: 0 12px 26px rgba(25, 31, 38, .14);
    color: inherit;
    text-decoration: none;
}

.destino-card-media {
    display: block;
    overflow: hidden;
    /* Reserva el hueco antes de que cargue la imagen: sin esto la rejilla
       salta al pintar y se paga en CLS. */
    aspect-ratio: 3 / 2;
    background: #e9ecef;
}

.destino-card-media picture,
.destino-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destino-card-link:hover .destino-card-media img {
    transform: scale(1.04);
}

.destino-card-media img {
    transition: transform .3s ease;
}

.destino-card-body {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 8px;
}

.destino-card-name {
    color: #191f26;
    font-size: 19px;
    font-weight: bold;
}

.destino-card-price {
    text-align: right;
    white-space: nowrap;
}

.destino-card-from {
    display: block;
    color: #8a949e;
    font-size: 12px;
    line-height: 1.2;
}

.destino-card-amount {
    color: #008c2b;
    font-size: 20px;
    font-weight: bold;
}

.destino-card-cta {
    padding: 0 18px 16px;
    color: #fab300;
    font-size: 14px;
    font-weight: bold;
}

.destino-card-cta > i {
    margin-left: 7px;
    transition: transform .2s ease;
}

.destino-card-link:hover .destino-card-cta > i {
    transform: translateX(4px);
}

/* ------------------------------------------------------------- quienes somos */

.destinos-about {
    padding: 56px 0;
    background: #f6f7f9;
}

.destinos-about-grid {
    display: flex;
    gap: 48px;
}

.destinos-about-text {
    flex: 1 1 62%;
    min-width: 0;
}

.destinos-about-text p {
    margin: 0 0 16px;
}

.destinos-bullets {
    flex: 1 1 38%;
    align-self: flex-start;
    margin: 0;
    padding: 24px 26px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    list-style: none;
}

.destinos-bullets li {
    padding: 9px 0;
    font-weight: 600;
    border-bottom: 1px solid #f0f2f4;
}

.destinos-bullets li:last-child {
    border-bottom: 0;
}

.destinos-bullets i {
    margin-right: 11px;
    color: #00d441;
}

/* --------------------------------------------------------------------- cierre */

/* El text-align de la seccion no basta: .wrap trae text-align:left del tema
   con la misma especificidad y gana por orden de carga, asi que el boton se
   quedaba 442px fuera del eje. Hay que centrarlo desde el propio .wrap. */
.destinos-cta {
    padding: clamp(44px, 5vw, 66px) 0;
    text-align: center;
}

.destinos-cta .wrap {
    max-width: 640px;
    text-align: center;
}

.destinos-cta h2 {
    margin-bottom: 12px;
}

.destinos-cta p {
    max-width: 42em;
    margin: 0 auto 22px;
}

.destinos-cta-button {
    display: inline-block;
    padding: 13px 34px;
    background-color: #fab300;
    border-radius: 10px;
    color: #191f26;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 6px 18px rgba(250, 179, 0, .28);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.destinos-cta-button:hover,
.destinos-cta-button:focus {
    background-color: #ffc426;
    color: #191f26;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(250, 179, 0, .38);
    transform: translateY(-2px);
}

.destinos-cta-button:active {
    box-shadow: 0 4px 12px rgba(250, 179, 0, .3);
    transform: translateY(0);
}

.destinos-cta-button > i {
    margin-right: 8px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 991.98px) {
    .destinos h1 {
        font-size: 32px;
    }

    .destinos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destinos-about-grid {
        flex-direction: column;
        gap: 28px;
    }
}

@media (max-width: 767.98px) {
    .destinos-hero {
        padding: 36px 0 32px;
    }

    .destinos-hero-grid {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 26px;
    }

    .destinos-hero-media {
        justify-content: center;
    }

    .destinos-hero-media picture:first-child img {
        width: 46vw;
        max-width: 280px;
    }

    .destinos-hero-media picture:last-child img {
        width: 24vw;
        max-width: 145px;
    }
}

@media (max-width: 575.98px) {
    .destinos h1 {
        font-size: 26px;
    }

    .destinos h2 {
        font-size: 22px;
    }

    .destinos-lead {
        font-size: 16px;
    }

    .destinos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .destinos-grid-section,
    .destinos-about,
    .destinos-cta {
        padding: 36px 0;
    }
}

/* ============================================================ ficha de destino */

.ficha-hero {
    position: relative;
    background: #191f26;
}

.ficha-hero-media,
.ficha-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ficha-hero-media {
    position: absolute;
    inset: 0;
}

.ficha-hero-overlay {
    position: relative;
    padding: 74px 0 54px;
    /* La foto es panorámica y clara por arriba: sin este velo el blanco del
       titular no llega al contraste mínimo de accesibilidad. */
    background: linear-gradient(90deg, rgba(15, 20, 26, .88) 0%, rgba(15, 20, 26, .74) 55%, rgba(15, 20, 26, .45) 100%);
    color: #fff;
}

.ficha-hero-overlay h1 {
    max-width: 18em;
    margin: 0 0 22px;
    color: #fff;
    font-size: 38px;
    line-height: 1.15;
}

.ficha-breadcrumb {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .78);
}

.ficha-breadcrumb a {
    color: rgba(255, 255, 255, .78);
}

.ficha-breadcrumb a:hover {
    color: #fab300;
}

.ficha-breadcrumb span[aria-current] {
    color: #fff;
}

.ficha-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.ficha-datos li {
    padding: 11px 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
}

.ficha-dato-valor {
    display: block;
    color: #fab300;
    font-size: 21px;
    font-weight: bold;
    line-height: 1.2;
}

.ficha-dato-label {
    display: block;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ------------------------------------------------------------------- cuerpo */

.ficha-cuerpo {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.ficha-indice {
    position: sticky;
    top: 24px;
    flex: 0 0 260px;
    padding: 20px 22px;
    background: #f6f7f9;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.ficha-indice h2 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #8a949e;
}

.ficha-indice ol {
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
}

.ficha-indice li {
    margin-bottom: 7px;
}

.ficha-indice a {
    color: #4a555f;
    text-decoration: none;
}

.ficha-indice a:hover {
    color: #fab300;
    text-decoration: underline;
}

.ficha-articulo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
}

.ficha-articulo h2 {
    /* Compensa la cabecera fija al saltar desde el índice. */
    scroll-margin-top: 90px;
    margin: 34px 0 12px;
    font-size: 26px;
}

.ficha-articulo h2:first-child {
    margin-top: 0;
}

.ficha-articulo h3 {
    margin: 26px 0 10px;
    color: #191f26;
    font-size: 20px;
    font-weight: bold;
}

.ficha-articulo p {
    margin: 0 0 16px;
}

.ficha-articulo ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.ficha-articulo li {
    margin-bottom: 7px;
}

.ficha-inline-cta {
    display: inline-block;
    margin: 4px 0 12px;
    padding: 11px 24px;
    background: #fab300;
    border-radius: .5rem;
    color: #191f26;
    font-weight: bold;
    text-decoration: none;
}

.ficha-inline-cta:hover,
.ficha-inline-cta:focus {
    background: #e5a200;
    color: #191f26;
    text-decoration: none;
}

.ficha-inline-cta > i {
    margin-left: 7px;
}

/* ----------------------------------------------------------------- galerías */

.ficha-galeria {
    display: grid;
    gap: 12px;
    margin: 20px 0 24px;
}

.ficha-galeria[data-cols="1"] { grid-template-columns: 1fr; }
.ficha-galeria[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.ficha-galeria[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.ficha-galeria[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

.ficha-galeria picture {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #e9ecef;
}

.ficha-galeria img {
    display: block;
    width: 100%;
    height: auto;
}

/* Las fotos que van solas en el artículo son de 640px como mucho: si se
   estiran a todo el ancho de la columna se ven blandas. Se dejan a su
   tamaño real y centradas. */
.ficha-galeria[data-cols="1"] {
    justify-items: center;
}

.ficha-galeria[data-cols="1"] picture {
    max-width: 100%;
}

.ficha-galeria[data-cols="1"] img {
    width: auto;
    max-width: 100%;
}

/* ---------------------------------------------------------- otros destinos */

.ficha-otras {
    padding: 48px 0;
    background: #f6f7f9;
}

.ficha-otras-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.ficha-otras-lista a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #191f26;
    text-decoration: none;
}

.ficha-otras-lista a:hover {
    border-color: #fab300;
    color: #191f26;
    text-decoration: none;
}

.ficha-otra-nombre {
    font-weight: bold;
}

.ficha-otra-precio {
    color: #008c2b;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.ficha-otras-todos a {
    color: #fab300;
    font-weight: bold;
    text-decoration: none;
}

.ficha-otras-todos i {
    margin-left: 6px;
}

@media (max-width: 991.98px) {
    .ficha-cuerpo {
        flex-direction: column;
        gap: 26px;
    }

    .ficha-indice {
        position: static;
        flex: 1 1 auto;
        width: 100%;
    }

    .ficha-hero-overlay h1 {
        font-size: 30px;
    }

    .ficha-otras-lista {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ficha-hero-overlay {
        padding: 46px 0 36px;
        background: linear-gradient(180deg, rgba(15, 20, 26, .82) 0%, rgba(15, 20, 26, .9) 100%);
    }

    .ficha-hero-overlay h1 {
        font-size: 25px;
    }

    .ficha-datos {
        gap: 8px;
    }

    .ficha-datos li {
        flex: 1 1 30%;
        padding: 9px 12px;
    }

    .ficha-dato-valor {
        font-size: 17px;
    }

    .ficha-dato-label {
        font-size: 10px;
    }

    .ficha-articulo h2 {
        font-size: 21px;
    }

    /* Tres fotos en fila no se ven en un móvil: se bajan a dos. */
    .ficha-galeria[data-cols="3"],
    .ficha-galeria[data-cols="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .ficha-otras-lista {
        grid-template-columns: 1fr;
    }
}

/* El style.css global decora TODA lista con viñeta y sangría:
     ul > li          { position: relative; padding: 0 0 10px 15px }
     ul > li::before  { content: "•"; font-size: 30px; color: #DBBC94 }
   En las listas de prosa del artículo eso es justo lo que queremos, pero las
   rejillas y las listas de datos son estructura, no enumeración: ahí la viñeta
   se cuela al lado de cada tarjeta y la sangría descuadra la rejilla. */
.destinos-grid > li::before,
.destinos-bullets > li::before,
.ficha-datos > li::before,
.ficha-otras-lista > li::before {
    content: none;
}

.destinos-grid > li,
.destinos-bullets > li,
.ficha-datos > li,
.ficha-otras-lista > li {
    position: static;
    padding-left: 0;
}

.destinos-grid > li {
    padding-bottom: 0;
}

.ficha-otras-lista > li {
    padding-bottom: 0;
}

/* Estas dos sí llevan padding propio, que la regla de arriba no debe borrar. */
.destinos-bullets > li {
    padding: 9px 0;
}

.ficha-datos > li {
    padding: 11px 20px;
}

@media (max-width: 575.98px) {
    .ficha-datos > li {
        padding: 9px 12px;
    }
}

/* El .wrap global es display:inline-block y, al cargarse después que esta hoja,
   ganaba por orden de cascada y dejaba el índice encima del artículo en vez de
   al lado. Se sube la especificidad en lugar de fiarse del orden de carga. */
.destinos .wrap.ficha-cuerpo {
    display: flex;
}

@media (max-width: 991.98px) {
    .destinos .wrap.ficha-cuerpo {
        display: block;
    }
}
