/* Menú desplegable de Tours (rediseño 21-oct-2026). Sobrescribe las reglas .mega de site.css. */

.mega__h { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1rem; margin: 0 0 14px; }
.mega__h-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); flex: none; }
.mega__h-dot--violet { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-50); }
.mega__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mega__txt strong { font-weight: 700; color: var(--ink); }
.mega__tile .mega__txt strong { font-size: .97rem; }
.mega__txt small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* Experiencias: mosaicos con burbuja de color alternada turquesa / morado */
.mega__exp { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.mega__exp li { display: flex; }
.mega__exp .mega__tile { flex: 1; }
.mega__tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 30px 12px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mega__bubble { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; background: var(--teal-50); color: var(--teal-700); transition: background .25s ease, color .25s ease, transform .25s ease; }
.mega__bubble .gi-ico { width: 24px; height: 24px; }
.mega__exp li:nth-child(4n+2) .mega__bubble,
.mega__exp li:nth-child(4n+3) .mega__bubble { background: var(--violet-50); color: var(--violet); }
.mega__go { position: absolute; top: 50%; right: 6px; margin-top: -14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--violet); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; flex: none; }
.mega__go .gi-ico { width: 16px; height: 16px; }
.mega__tile:hover, .mega__tile:focus-visible { color: var(--ink); border-color: transparent; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(74, 51, 154, .55); }
.mega__tile:hover .mega__bubble, .mega__tile:focus-visible .mega__bubble { background: var(--violet); color: #fff; transform: rotate(-6deg); }
.mega__exp li:nth-child(4n+2) .mega__tile:hover .mega__bubble,
.mega__exp li:nth-child(4n+3) .mega__tile:hover .mega__bubble,
.mega__exp li:nth-child(4n+2) .mega__tile:focus-visible .mega__bubble,
.mega__exp li:nth-child(4n+3) .mega__tile:focus-visible .mega__bubble { background: var(--teal); color: var(--ink); }
.mega__tile:hover .mega__go, .mega__tile:focus-visible .mega__go { opacity: 1; transform: none; }

/* Islas: lista con miniatura sobre el mapa del archipiélago */
.mega__col--isles { position: relative; }
.mega__map { position: absolute; right: -18px; bottom: -26px; width: 300px; height: 240px; background: linear-gradient(135deg, var(--teal) 0%, var(--violet) 75%); opacity: .14; pointer-events: none; -webkit-mask: url(../../img/islands.svg) center / contain no-repeat; mask: url(../../img/islands.svg) center / contain no-repeat; }
.mega__isles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.mega__isle { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px; text-decoration: none; color: var(--ink); transition: background .2s ease; }
.mega__thumb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; background: var(--violet-50); color: var(--violet); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); transition: box-shadow .2s ease; }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mega__isle .mega__txt strong { font-size: .93rem; }
.mega__isle:hover, .mega__isle:focus-visible { background: rgba(255, 255, 255, .85); color: var(--violet); }
.mega__isle:hover .mega__thumb, .mega__isle:focus-visible .mega__thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--violet); }
.mega__isle:hover .mega__thumb img { transform: scale(1.12); }
.mega__isle:hover .mega__txt strong { color: var(--violet); }

/* El más vendido: foto grande con degradé morado */
.mega__star { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 300px; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--violet-700); box-shadow: 0 24px 44px -26px rgba(56, 37, 125, .9); }
.mega__star-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.mega__star::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(56, 37, 125, 0) 22%, rgba(74, 51, 154, .62) 52%, rgba(46, 30, 108, .96) 100%), linear-gradient(120deg, rgba(0, 177, 201, .28) 0%, rgba(0, 177, 201, 0) 45%); }
.mega__star:hover { color: #fff; }
.mega__star:hover .mega__star-img { transform: scale(1.06); }
.mega__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--violet); font-weight: 800; font-size: .8rem; box-shadow: var(--shadow-s); }
.mega__badge .gi-ico { color: var(--gold); width: 15px; height: 15px; }
.mega__star-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.mega__star-place { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: #d9f6fb; }
.mega__star-title { font-size: 1.08rem; line-height: 1.25; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mega__star-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.mega__price { font-weight: 800; font-size: 1.35rem; line-height: 1; }
.mega__price small { font-size: .78rem; font-weight: 600; opacity: .85; }
.mega__star-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--teal); color: var(--ink); font-weight: 800; font-size: .88rem; transition: background .2s ease; }
.mega__star:hover .mega__star-btn { background: #fff; }
.mega__star-btn .gi-ico { width: 16px; height: 16px; }

/* Banda de ayuda: degradé turquesa a morado con olas */
.mega__band { color: #fff; }
.mega__band-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.mega__help { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .95rem; }
.mega__help strong { color: #fff; }
.mega__help-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.mega__help-ico .gi-ico { width: 20px; height: 20px; }
.mega__help > span:last-child { min-width: 0; }
.mega__band-actions { display: flex; gap: 10px; flex: none; }
.mega__band .btn { padding: .7em 1.15em; font-size: .92rem; }
.mega__all .gi-ico { transition: transform .2s ease; }
.mega__all:hover .gi-ico { transform: translateX(3px); }

/* Escritorio: panel ancho con textura, apertura suave y columnas en cascada */
@media (min-width: 1181px) {
	.mega { border-top: 0; background: radial-gradient(70% 120% at 100% 0%, var(--violet-50) 0%, rgba(239, 235, 250, 0) 60%), radial-gradient(50% 90% at 0% 100%, var(--teal-50) 0%, rgba(230, 247, 250, 0) 70%), var(--paper); box-shadow: 0 40px 60px -34px rgba(38, 24, 92, .55); max-height: calc(100vh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; transform: translateY(-10px); }
	.mega::before { opacity: .35; }
	.mega::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--violet)); }
	.mega__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr); gap: 36px; padding-top: 30px; padding-bottom: 30px; }
	.mega__col { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
	.mega__col--isles { transition-delay: .06s; }
	.mega__col--star { transition-delay: .12s; }
	.has-mega:hover .mega__col, .has-mega:focus-within .mega__col, .has-mega.is-open .mega__col { opacity: 1; transform: none; }
	.has-mega:hover > a, .has-mega.is-open > a { background: var(--violet-50); color: var(--violet); }
	.has-mega:hover .mega-toggle, .has-mega.is-open .mega-toggle { color: var(--violet); }
}

/* Celular y tableta (menú hamburguesa): acordeón simple */
@media (max-width: 1180px) {
	.mega { padding: 4px 0 10px; }
	.mega__in { gap: 16px; padding: 6px 0 0; }
	.mega__h { font-size: .92rem; margin-bottom: 10px; }
	.mega__exp { grid-template-columns: 1fr; gap: 6px; }
	.mega__tile { padding: 8px 10px; border-radius: 14px; }
	.mega__bubble { width: 40px; height: 40px; border-radius: 12px; }
	.mega__bubble .gi-ico { width: 22px; height: 22px; }
	.mega__go { opacity: 1; transform: none; }
	.mega__map, .mega__col--star, .mega__help, .mega__ask { display: none; }
	.mega__isles { display: flex; flex-wrap: wrap; gap: 8px; }
	.mega__isle { padding: 4px 12px 4px 4px; background: var(--sand); }
	.mega__thumb { width: 32px; height: 32px; box-shadow: none; }
	.mega__isle .mega__txt small { display: none; }
	.mega__band { background: none; margin-top: 16px; }
	.mega__band-in { padding: 0; }
	.mega__band-actions, .mega__all { width: 100%; }
	.mega__tile { padding-right: 40px; }
	.mega__go { right: 10px; }
	.mega__all { background: var(--violet); color: #fff; padding: 1em; }
	.mega__all:hover { background: var(--violet-700); color: #fff; }
}
@media (min-width: 640px) and (max-width: 1180px) {
	.mega__exp { grid-template-columns: 1fr 1fr; }
}
/* Celular (una columna): turquesa y morado alternados de a uno, no en tablero de ajedrez. */
@media (max-width: 639px) {
	.mega__exp li:nth-child(n) .mega__bubble { background: var(--teal-50); color: var(--teal-700); }
	.mega__exp li:nth-child(even) .mega__bubble { background: var(--violet-50); color: var(--violet); }
	.mega__exp li:nth-child(n) .mega__tile:hover .mega__bubble, .mega__exp li:nth-child(n) .mega__tile:focus-visible .mega__bubble { background: var(--violet); color: #fff; }
	.mega__exp li:nth-child(even) .mega__tile:hover .mega__bubble, .mega__exp li:nth-child(even) .mega__tile:focus-visible .mega__bubble { background: var(--teal); color: var(--ink); }
}
