/* Estructura: barra superior, cabecera fija, hero, secciones, columnas, pie, barra móvil y "volver arriba". */

/* --- Barra superior --------------------------------------------------------------------- */
.topbar { background: var(--navy); color: #c9d3e6; font-size: var(--fs-100); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); min-height: 38px; flex-wrap: wrap; padding-block: 4px; }
.topbar a { color: #c9d3e6; }
.topbar a:hover, .topbar a:focus { color: var(--white); }
.topbar__tel { margin: 0; }
.topbar__numbers a { margin-left: 0.5rem; font-weight: 700; color: var(--white); white-space: nowrap; }
.topbar__lang { list-style: none; display: flex; gap: 4px; margin: 0; }
.topbar__lang a { display: block; padding: 2px 10px; border-radius: var(--radius-pill); }
.topbar__lang a[aria-current] { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* --- Cabecera fija ------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 var(--line); transition: box-shadow 0.25s var(--ease); }
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); }
.logo { margin: 0; margin-right: auto; }
.logo a { display: block; line-height: 0; }
.logo__img { height: 54px; width: auto; }

.mainnav__toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: var(--cyan-100); color: var(--navy); border: 0; border-radius: var(--radius-sm); font-size: 22px;
}
.mainnav__list { list-style: none; display: flex; gap: 4px; margin: 0; }
.mainnav__list a {
	position: relative; display: block; padding: 10px 14px;
	color: var(--navy); font-weight: 500; font-size: var(--fs-200); text-transform: uppercase; letter-spacing: 0.04em;
}
.mainnav__list a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
	background: var(--cyan); transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.mainnav__list a:hover::after, .mainnav__list a:focus-visible::after, .is-active > a::after { transform: scaleX(1); }
.site-header .header__cta { white-space: nowrap; }

@media (max-width: 991px) {
	.site-header__inner { gap: var(--sp-2); }
	.mainnav__toggle { display: inline-flex; }
	.mainnav__list {
		display: none; flex-direction: column; gap: 0;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); padding: var(--sp-1) var(--gutter) var(--sp-2); box-shadow: var(--shadow);
	}
	.mainnav__list.is-open { display: flex; }
	.mainnav__list a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.mainnav__list a::after { display: none; }
	.is-active > a { color: var(--cyan-700); }
	.site-header .header__cta { display: none; }
}
@media (max-width: 480px) { .logo__img { height: 46px; } }

/* --- Hero de la portada ----------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: var(--white); }
.hero__stage { position: relative; height: clamp(440px, 74vh, 700px); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide picture, .hero__slide img { display: block; width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 3, 82, 0.86) 0%, rgba(11, 3, 82, 0.55) 45%, rgba(11, 3, 82, 0.05) 100%), linear-gradient(0deg, rgba(11, 3, 82, 0.55), transparent 40%); }
.hero__content { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6rem; }
.hero__caption { max-width: 640px; }
.hero__eyebrow { font-family: var(--font-script); font-size: var(--fs-400); color: var(--sun); margin: 0 0 var(--sp-1); line-height: 1.2; }
.hero__title { font-size: var(--fs-700); line-height: 1.05; margin: 0 0 var(--sp-2); color: var(--white); text-wrap: balance; text-transform: uppercase; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }
.hero__text { font-size: var(--fs-400); margin: 0 0 var(--sp-3); color: #e8edfb; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.hero__controls { position: absolute; z-index: 4; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 8.5rem; display: flex; align-items: center; gap: 10px; }
.hero__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(11, 3, 82, 0.35); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; backdrop-filter: blur(4px); transition: background 0.2s var(--ease); }
.hero__nav:hover, .hero__nav:focus-visible { background: var(--coral); border-color: var(--coral); }
.hero__bullets { display: flex; gap: 6px; }
.hero__bullet { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; position: relative; }
.hero__bullet::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: all 0.25s var(--ease); }
.hero__bullet.is-active::before { width: 22px; margin-left: -11px; border-radius: 6px; background: var(--sun); }
@media (max-width: 575px) { .hero__controls { display: none; } .hero__content { padding-bottom: 5.5rem; } }

/* Buscador de destinos que se solapa con el hero */
.finder-wrap { position: relative; z-index: 6; margin-top: -4.25rem; }
.finder { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); align-items: end; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--sp-3); }
.finder__title { grid-column: 1 / -1; margin: 0; font-size: var(--fs-400); }
.finder__title small { display: block; font-size: var(--fs-200); font-weight: 400; color: var(--muted); margin-top: 2px; }
.finder label { display: block; font-size: var(--fs-100); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.finder__facts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); list-style: none; margin: 0; padding: 0; font-size: var(--fs-200); color: var(--muted); }
.finder__facts li::before { content: "✓"; color: var(--cyan-700); font-weight: 700; margin-right: 6px; }
@media (min-width: 768px) { .finder { grid-template-columns: minmax(0, 1fr) auto; } .finder__facts { grid-column: 1 / -1; } .finder .btn { min-width: 200px; min-height: 50px; } }

/* --- Secciones ------------------------------------------------------------------------------------ */
.section { padding-block: var(--sp-5); }
.section--tight { padding-block: var(--sp-4); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #d6def2; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-4); }
.section__eyebrow { font-family: var(--font-script); font-size: var(--fs-400); color: var(--coral); margin: 0 0 6px; line-height: 1.4; }
.section__title { margin: 0.2rem 0 var(--sp-1); font-size: var(--fs-600); text-transform: uppercase; letter-spacing: -0.01em; }
.section__intro { margin: 0; color: var(--muted); font-size: var(--fs-400); }
.section--navy .section__title { color: var(--white); }
.section--navy .section__eyebrow { color: var(--sun); }
.section--navy .section__intro { color: #c4cee8; }

/* --- Columnas de contenido -------------------------------------------------------------------------- */
.mainbody { padding-block: var(--sp-4) var(--sp-5); }
.mainbody__row { display: block; }
.sidebar { margin-top: var(--sp-4); }
.content { min-width: 0; }
@media (min-width: 992px) {
	.mainbody__row.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-4); align-items: start; }
	.sidebar { position: sticky; top: calc(var(--header-h) + 20px); margin-top: 0; }
}

/* --- Banda de contacto (llamada a la acción) ------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: var(--white); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-5); }
.cta-band h2 { color: var(--white); margin: 0 0 var(--sp-1); font-size: var(--fs-600); }
.cta-band p { margin: 0; color: #d6def2; font-size: var(--fs-400); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- Pie ---------------------------------------------------------------------------------------------------- */
.site-footer { background: #070238; color: #b9c4de; font-size: var(--fs-200); }
.footnav { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); padding-block: var(--sp-5) var(--sp-4); }
@media (min-width: 768px) { .footnav { grid-template-columns: 1.4fr 1fr 1fr; } }
.footnav h2 { font-size: var(--fs-100); text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin: 0 0 var(--sp-2); }
.footnav ul { list-style: none; }
.footnav li + li { margin-top: 8px; }
.site-footer a { color: #b9c4de; }
.site-footer a:hover, .site-footer a:focus { color: var(--sun); }
.footnav__brand { font-family: var(--font-script); font-size: 1.9rem; color: var(--white); margin: 0 0 var(--sp-1); line-height: 1.2; }
.footnav__about p { max-width: 36ch; }
.footnav__social { display: flex; gap: 10px; margin-top: var(--sp-2); }
.footnav__social img { display: block; border-radius: 50%; filter: invert(1); transition: transform 0.2s var(--ease); }   /* iconos negros -> blancos sobre el azul */
.footnav__social a:hover img, .footnav__social a:focus-visible img { transform: translateY(-3px); }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-100); padding: var(--sp-3) 0; }
.copyright p { margin: 0; text-align: center; color: #9aa7c7; }
.copyright strong { color: #d6def2; }

/* --- Crédito de creación y hosting (franja final del pie) ---------------------------------------------- */
.credito-servidor {
	background: linear-gradient(90deg, var(--navy), var(--navy-700) 50%, var(--navy));
	border-top: 3px solid var(--coral);
	color: #d6def2; text-align: center; padding: 14px 12px calc(14px + 64px); font-size: 0.92rem; line-height: 1.5;
}
@media (min-width: 768px) { .credito-servidor { padding-bottom: 14px; } }
.credito-servidor p { margin: 0; }
.credito-enlace {
	position: relative; display: inline-block; padding: 2px 8px; border-radius: 8px;
	color: var(--white); font-weight: 700; text-decoration: none;
	transition: color 0.25s ease, background-color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}
.credito-enlace::after {   /* subrayado que crece desde el centro */
	content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, #ff8a70, #ffffff, #ff8a70); transform: translateX(-50%); transition: width 0.35s ease;
}
.site-footer .credito-enlace:hover, .site-footer .credito-enlace:focus-visible {
	color: var(--white); background-color: rgba(255, 255, 255, 0.12); text-shadow: 0 0 14px rgba(170, 200, 255, 0.95); transform: translateY(-2px);
}
.credito-enlace:hover::after, .credito-enlace:focus-visible::after { width: calc(100% - 16px); }
.credito-enlace:active { transform: translateY(0) scale(0.97); }
.credito-enlace.credito-click { animation: credito-onda 0.65s ease-out; }   /* al hacer clic: onda de luz */
@keyframes credito-onda { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75); } 100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .credito-enlace, .credito-enlace::after { transition: none; } .credito-enlace.credito-click { animation: none; } }

/* --- Barra móvil fija (llamar / cotizar) ------------------------------------------------------------------ */
.mobile-bar { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); box-shadow: 0 -6px 20px rgba(11, 3, 82, 0.12); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* --- Volver arriba ---------------------------------------------------------------------------------------------- */
.back-to-top {
	position: fixed; right: 22px; bottom: 28px; z-index: 800;
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: var(--navy); color: var(--white);
	box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; font-size: 20px;
	transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.back-to-top:not([hidden]) { display: flex; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--coral); transform: translateY(-3px); }
@media (max-width: 767px) { .back-to-top:not([hidden]) { display: none; } }
