/* Componentes: botones, formularios, tarjetas, ofertas, videos, artículos, etiquetas, paginación y galería. */

/* --- Botones --------------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
	font-size: var(--fs-200); font-weight: 700; line-height: 1.2; letter-spacing: 0.03em; text-transform: uppercase; text-align: center;
	background: var(--white); color: var(--navy);
	transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary, .btn--success { background: var(--coral); color: var(--white); }
.btn--primary:hover, .btn--primary:focus-visible, .btn--success:hover, .btn--success:focus-visible { background: var(--coral-700); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--white); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: var(--fs-100); }
.btn--block { width: 100%; }

/* --- Formularios (buscador y contacto) --------------------------------------------------------- */
.form__control, .finder select {
	display: block; width: 100%; min-height: 50px; padding: 12px 16px;
	font: inherit; font-size: var(--fs-300); color: var(--ink);
	background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__control:focus, .finder select:focus { border-color: var(--cyan); outline: 0; box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2); }

/* --- Tarjetas de destino (portada) -------------------------------------------------------------- */
.dests { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 600px) { .dests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .dests { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dest { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.dest:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dest__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--cyan-100); }
.dest__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dest:hover .dest__media img { transform: scale(1.06); }
.dest__body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.dest__cat { font-size: var(--fs-100); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); }
.dest__cat:hover, .dest__cat:focus { color: var(--coral-700); }
.dest__title { font-size: var(--fs-300); line-height: 1.3; margin: 6px 0 var(--sp-1); }
.dest__title a { color: var(--navy); }
.dest__title a:hover, .dest__title a:focus { color: var(--cyan-700); }
.dest__title a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es clicable */
.dest__text { margin: 0; color: var(--muted); font-size: var(--fs-200); }
.dest__cat { position: relative; z-index: 2; }

.dest--more { background: linear-gradient(150deg, var(--cyan) 0%, #0097b0 100%); color: var(--white); padding: var(--sp-3); justify-content: space-between; min-height: 280px; box-shadow: var(--shadow); }
.dest--more:hover { transform: translateY(-6px); }
.dest__logo { font-family: var(--font-script); font-size: 1.9rem; line-height: 1.2; }
.dest__more-info { display: block; font-size: var(--fs-500); font-weight: 700; line-height: 1.15; color: var(--white); margin: var(--sp-1) 0 var(--sp-3); }
.dest--more .btn { align-self: flex-start; }

/* --- Tarjetas de oferta ------------------------------------------------------------------------------ */
.offers { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 700px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .offers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.offer { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.offer:hover .offer__media img { transform: scale(1.05); }
.offer__badge { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--sun); color: var(--navy); font-size: var(--fs-100); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: var(--radius-pill); }
.offer__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-3); }
.offer__title { font-size: var(--fs-300); line-height: 1.25; margin: 0 0 var(--sp-1); }
.offer__title a { color: var(--navy); }
.offer__title a::after { content: ""; position: absolute; inset: 0; }
.offer__list { list-style: none; margin: 0 0 var(--sp-2); font-size: var(--fs-200); color: var(--muted); }
.offer__list li { padding-left: 1.5em; position: relative; }
.offer__list li + li { margin-top: 4px; }
.offer__list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-700); font-weight: 700; }
.offer__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-1); padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
.offer__price { line-height: 1; color: var(--navy); }
.offer__price small { display: block; font-size: var(--fs-100); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.offer__price strong { font-size: var(--fs-500); font-weight: 700; }
.offer__cta { position: relative; z-index: 2; }

/* --- Videos destacados --------------------------------------------------------------------------------- */
.videos { display: grid; grid-template-columns: 1fr; background: var(--navy-700); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 992px) { .videos { grid-template-columns: 2fr 1fr; } }
.videos__player { position: relative; background: #000; aspect-ratio: 16 / 9; }
.videos__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.videos__list { list-style: none; padding: var(--sp-2); margin: 0; overflow: auto; max-height: 480px; }
.videos__item { display: flex; align-items: center; gap: var(--sp-2); padding: 10px; border-radius: var(--radius-sm); transition: background 0.2s var(--ease); }
.videos__item:hover, .videos__item.is-playing { background: rgba(255, 255, 255, 0.1); }
.videos__thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; display: block; background: #000; }
.videos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.videos__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 30px; background: rgba(11, 3, 82, 0.35); transition: background 0.2s var(--ease); }
.videos__thumb:hover .videos__play { background: rgba(214, 58, 30, 0.55); }
.videos__title { color: #e8edfb; font-weight: 500; line-height: 1.35; }
.videos__title:hover, .videos__title:focus, .videos__item.is-playing .videos__title { color: var(--sun); }

/* --- Listados (lugares, ofertas, subcategorías) ------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); align-items: start; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid.is-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid.is-masonry { display: block; position: relative; }
.grid.is-masonry > .gcard { position: absolute; }
.gcard { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.3s var(--ease); }
.gcard:hover { box-shadow: var(--shadow); }
.gcard.is-hidden { display: none; }
.gcard__media { position: relative; overflow: hidden; }
.gcard__image img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.gcard:hover .gcard__image img { transform: scale(1.04); }
.gcard__mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 3, 82, 0) 40%, rgba(11, 3, 82, 0.7) 100%); pointer-events: none; }
.gcard__cat { position: absolute; left: 16px; bottom: 12px; z-index: 3; font-size: var(--fs-100); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.gcard__cat a { color: var(--white); }
.gcard__cat a:hover, .gcard__cat a:focus { color: var(--sun); }
.gcard__header, .gcard__intro, .gcard__more { padding-inline: var(--sp-3); }
.gcard__header { padding-top: var(--sp-3); }
.gcard__title { font-size: var(--fs-300); line-height: 1.3; margin: 0 0 var(--sp-1); }
.gcard__title a { color: var(--navy); }
.gcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gcard__intro { flex: 1; color: var(--muted); font-size: var(--fs-200); }
.gcard__intro p { margin-bottom: var(--sp-1); }
.gcard__more { padding-bottom: var(--sp-3); padding-top: var(--sp-1); position: relative; z-index: 2; }
.gcard__more .btn { padding: 0; border: 0; background: none; color: var(--cyan-700); box-shadow: none; transform: none; text-transform: uppercase; font-size: var(--fs-100); }
.gcard__more .btn::after { content: " →"; margin-left: 4px; transition: margin 0.2s var(--ease); }
.gcard:hover .gcard__more .btn::after { margin-left: 10px; }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.filter__input { flex: 1 1 260px; max-width: 420px; }
.filter__count { color: var(--muted); font-size: var(--fs-200); margin: 0; }
.filter__empty { color: var(--muted); }

/* --- Paginación -------------------------------------------------------------------------------------------- */
.pager { margin: var(--sp-4) 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.pager__counter { margin: 0; color: var(--muted); font-size: var(--fs-200); order: 2; }
.pager__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pager__list li a, .pager__list li span { display: block; min-width: 42px; padding: 9px 14px; text-align: center; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--white); color: var(--navy); font-weight: 500; line-height: 1.2; }
.pager__list li a:hover, .pager__list li a:focus-visible { border-color: var(--cyan); }
.pager__list .is-active span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pager__list .is-disabled span { color: #8a93a6; background: transparent; border-style: dashed; }

/* --- Artículo ----------------------------------------------------------------------------------------------- */
.article__title { font-size: var(--fs-600); margin: 0 0 var(--sp-2); }
.article__title a { color: var(--navy); }
.article__title a:hover, .article__title a:focus { color: var(--cyan-700); }
.article__aside { color: var(--muted); margin-bottom: var(--sp-3); }
.article__info { display: flex; flex-wrap: wrap; gap: 6px var(--sp-3); margin: 0; color: var(--muted); font-size: var(--fs-200); }
.article__info dd { display: inline-flex; align-items: center; gap: 6px; }
.article__info .icon { color: var(--cyan-700); }
.article__media { margin-bottom: var(--sp-4); }
.article__image img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.article__body { font-size: var(--fs-300); }
.article__body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article__body p > img { margin: var(--sp-2) 0; }
.article__body ul, .article__body ol { margin: 0 0 var(--sp-2) 1.4em; }
.article__body li + li { margin-top: 4px; }
.article__body iframe { max-width: 100%; }
.article__body strong { color: var(--navy); }
.article__body center { display: block; text-align: center; margin: var(--sp-3) 0; }
.article__body button { background: none; border: 0; padding: 0; }
.article__body button a {
	display: inline-flex; padding: 13px 26px; border-radius: var(--radius-pill);
	background: var(--coral); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--fs-200);
	transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.article__body button a:hover, .article__body button a:focus-visible { background: var(--coral-700); color: var(--white); transform: translateY(-2px); }
.article__body .tags { padding-top: var(--sp-3); }
.content-links { margin: var(--sp-3) 0; }
.content-links ul { list-style: none; }
.content-links a { display: inline-block; padding: 10px 20px; border-radius: var(--radius-pill); border: 2px solid var(--navy); color: var(--navy); font-weight: 700; }
.content-links a:hover, .content-links a:focus-visible { background: var(--navy); color: var(--white); }

/* Artículos en tarjeta (galería de fotos y videos) */
.article--card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-3); }
.article--card .article__media { margin-inline: calc(-1 * var(--sp-3)); margin-bottom: var(--sp-3); }
.article--card .article__image img, .article--card .video-wrap, .article--card .gallery { border-radius: 0; box-shadow: none; }
@media (min-width: 768px) {
	.article--card { padding: var(--sp-4); }
	.article--card .article__media { margin-inline: calc(-1 * var(--sp-4)); margin-bottom: var(--sp-4); }
}

/* --- Panel de reserva (ofertas) -------------------------------------------------------------------------------- */
.booking { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-3); border-top: 6px solid var(--sun); }
.booking__label { font-size: var(--fs-100); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
.booking__price { font-size: var(--fs-600); font-weight: 700; color: var(--navy); line-height: 1.1; margin: 4px 0 var(--sp-1); }
.booking__price small { font-size: var(--fs-200); font-weight: 400; color: var(--muted); }
.booking__list { list-style: none; margin: var(--sp-2) 0; font-size: var(--fs-200); }
.booking__list li { padding: 8px 0 8px 1.7em; position: relative; border-bottom: 1px solid var(--line); }
.booking__list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-700); font-weight: 700; }
.booking__note { margin: var(--sp-2) 0 0; font-size: var(--fs-100); color: var(--muted); }
.booking__phone { display: block; margin-top: var(--sp-2); text-align: center; font-weight: 700; }

/* --- Módulos laterales y etiquetas ------------------------------------------------------------------------------ */
.module { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.module-title { font-size: var(--fs-400); margin: 0 0 var(--sp-2); color: var(--navy); }
.tags { margin-bottom: var(--sp-2); display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline; }
.tags .label { display: inline-block; background: var(--cyan-100); color: var(--navy); font-size: var(--fs-100); font-weight: 700; letter-spacing: 0.04em; padding: 6px 14px; border-radius: var(--radius-pill); line-height: 1.3; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tags .label:hover, .tags .label:focus-visible { background: var(--navy); color: var(--white); }
.tagspopular { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tagspopular a { display: block; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--cyan-100); color: var(--navy); font-size: var(--fs-100); font-weight: 700; }
.tagspopular a::before { content: "#"; margin-right: 2px; color: var(--cyan-700); }
.tagspopular a:hover, .tagspopular a:focus-visible { background: var(--navy); color: var(--white); }
.tagspopular a:hover::before { color: var(--sun); }

/* --- Página de etiqueta y listado tipo blog ---------------------------------------------------------------------------- */
.tag-category h2 { margin-top: 0; }
.tag-list { list-style: none; display: grid; gap: var(--sp-3); }
.tag-list__row { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-3); overflow: hidden; display: grid; gap: var(--sp-1); }
.tag-list__row h3 { margin: 0; }
.tag-list__row img { border-radius: var(--radius-sm); max-width: 360px; width: 100%; }
.tag-body { display: block; color: var(--muted); }
.page-header { text-align: center; margin-bottom: var(--sp-3); }
.page-header h1 { margin: 0 0 var(--sp-1); text-transform: uppercase; }
.blog__items { display: grid; grid-template-columns: 1fr; gap: var(--gutter); margin-top: var(--sp-2); }
@media (min-width: 600px) { .blog__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .blog__items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog__item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-3); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.blog__item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog__item .article__title { font-size: var(--fs-400); margin-bottom: var(--sp-1); }
.blog__item .article__info { flex-direction: column; font-size: var(--fs-100); gap: 2px; }

/* --- Galería de fotos --------------------------------------------------------------------------------------------------- */
.gallery { background: #000; border-radius: var(--radius); overflow: hidden; }
.gallery__stage { position: relative; background: #000; }
.gallery__slide { margin: 0; display: none; }
.gallery__slide.is-active { display: block; }
.gallery__slide img { display: block; width: 100%; height: auto; margin: 0 auto; }
.gallery__thumbs { list-style: none; position: absolute; left: 0; right: 0; bottom: 14px; z-index: 5; display: flex; justify-content: center; gap: 6px; margin: 0; }
.gallery__thumb { width: 54px; height: 54px; padding: 0; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 8px; background: none; opacity: 0.7; overflow: hidden; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); }
.gallery__thumb.is-active, .gallery__thumb:hover, .gallery__thumb:focus-visible { opacity: 1; border-color: var(--sun); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .gallery__thumb { width: 38px; height: 38px; } }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 48px; height: 48px; margin: 0 12px; border: 0; border-radius: 50%; background: rgba(11, 3, 82, 0.55); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; backdrop-filter: blur(4px); transition: background 0.2s var(--ease); }
.gallery__nav:hover, .gallery__nav:focus-visible { background: var(--coral); }
.gallery__nav--prev { left: 0; }
.gallery__nav--next { right: 0; }
.gallery__full { position: absolute; right: 12px; top: 12px; z-index: 7; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 3, 82, 0.55); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.gallery__full:hover, .gallery__full:focus-visible { background: var(--coral); }
.gallery:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.gallery:fullscreen .gallery__slide img { max-height: 90vh; width: auto; }

/* --- Formulario de contacto ---------------------------------------------------------------------------------------------- */
.contact { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-3); max-width: 760px; margin-inline: auto; }
@media (min-width: 768px) { .contact { padding: var(--sp-4) var(--sp-5); } }
.contact__title { text-align: center; margin: 0; }
.contact__subtitle { text-align: center; font-weight: 400; font-size: var(--fs-400); color: var(--muted); margin: var(--sp-1) 0 var(--sp-3); font-family: inherit; line-height: 1.4; }
.form__group { margin-bottom: var(--sp-2); }
.form__group label, .form__label { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--fs-200); color: var(--navy); }
.form__captcha { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); align-items: start; margin-top: var(--sp-2); }
@media (min-width: 600px) { .form__captcha { grid-template-columns: 1fr 1fr; } }
.form__captcha .btn { margin-top: var(--sp-2); }
.form__captcha img { display: block; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.form__link { background: none; border: 0; color: var(--cyan-700); padding: 8px 0; text-decoration: underline; font-size: var(--fs-200); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); margin: var(--sp-2) 0; border-left: 5px solid; }
.alert p, .alert ul { margin: 6px 0 0; }
.alert ul { padding-left: 1.2em; }
.alert--success { background: #e6f6ea; border-color: var(--success); color: #14532d; }
.alert--error { background: #fdeae6; border-color: var(--danger); color: #7a1d0c; }

/* --- Error ------------------------------------------------------------------------------------------------------------------ */
.error-page { text-align: center; padding: var(--sp-5) 0; }
