/* ============================================================
   Agencia de Viajes — estilos front-end
   Paleta Lacazette: azul #0049cc · celeste #007ced · dorado #c69c6d
   ============================================================ */

:root {
	--agv-azul:    #0049cc;
	--agv-celeste: #007ced;
	--agv-dorado:  #c69c6d;
	--agv-navy:    #07235c;
}

.agv-wrapper { margin: 24px 0; }

/* ---------- Barra de filtros ---------- */
.agv-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 8px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}
.agv-filtros .agv-f-buscar {
	flex: 1 1 240px;
	min-width: 180px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: .95rem;
	background: #fff;
}
.agv-filtros select {
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: .92rem;
	background: #fff;
	cursor: pointer;
}
.agv-f-vista { display: flex; gap: 4px; margin-left: auto; }
.agv-vista-btn {
	width: 40px; height: 40px;
	border: 1px solid #cbd5e1;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	color: #64748b;
}
.agv-vista-btn.is-active { background: var(--agv-azul); color: #fff; border-color: var(--agv-azul); }

.agv-resultados { font-size: .85rem; color: #64748b; margin: 0 0 16px; }

.agv-viajes {
	display: grid;
	gap: 24px;
}

/* --- Grid --- */
.agv-layout-grid {
	grid-template-columns: repeat(var(--agv-cols, 3), 1fr);
}

@media (max-width: 1024px) {
	.agv-layout-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.agv-layout-grid { grid-template-columns: 1fr; }
}

/* --- Lista --- */
.agv-layout-list {
	grid-template-columns: 1fr;
}
.agv-layout-list .agv-card {
	display: grid;
	grid-template-columns: 320px 1fr;
}
@media (max-width: 640px) {
	.agv-layout-list .agv-card { grid-template-columns: 1fr; }
}

/* --- Card --- */
.agv-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
}
.agv-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.agv-card-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef1f5;
}
.agv-layout-list .agv-card-img { aspect-ratio: auto; height: 100%; min-height: 220px; }

.agv-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.agv-card:hover .agv-card-img img { transform: scale(1.06); }

.agv-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #9aa3ad;
	font-size: 14px;
}

.agv-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.agv-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.agv-card-title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.agv-card-title a { color: #0f172a; text-decoration: none; }
.agv-card-title a:hover { color: var(--agv-azul); }

.agv-card-loc { margin: 0; font-size: .9rem; color: #64748b; }

.agv-card-excerpt { margin: 0; font-size: .9rem; color: #475569; line-height: 1.5; }

.agv-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: .82rem;
	color: #64748b;
	margin-top: auto;
}

.agv-oferta {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: .05em;
}

.agv-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid #eef1f5;
}

.agv-price { font-size: 1.25rem; font-weight: 700; color: var(--agv-azul); }
.agv-price-old { display: block; font-size: .8rem; color: #94a3b8; font-weight: 500; }

/* ---------- Botón WhatsApp ---------- */
.agv-btn-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25d366;
	color: #fff !important;
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 9px;
	font-weight: 700;
	font-size: .95rem;
	transition: background .2s ease, transform .15s ease;
}
.agv-btn-wa:hover { background: #1ebe5b; transform: translateY(-1px); }
.agv-btn-wa--card { width: 100%; margin-top: 10px; padding: 9px 14px; font-size: .9rem; }
.agv-btn-wa--big { width: 100%; padding: 14px; font-size: 1.05rem; }

.agv-btn {
	background: var(--agv-azul);
	color: #fff !important;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: .88rem;
	font-weight: 600;
	transition: background .2s ease;
}
.agv-btn:hover { background: var(--agv-navy); }

.agv-empty {
	padding: 32px;
	text-align: center;
	color: #64748b;
	background: #f8fafc;
	border-radius: 12px;
}

/* ============================================================
   Detalle del viaje (single) — diseño de lujo
   ============================================================ */

.agv-single { margin-top: 0; }

/* ---------- Hero ---------- */
.agv-hero {
	position: relative;
	min-height: 360px;
	height: 42vh;
	max-height: 460px;
	display: flex;
	align-items: flex-end;
	border-radius: 18px;
	overflow: hidden;
	margin-bottom: 36px;
	background-color: var(--agv-navy);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.agv-hero--sinimg {
	background-image: linear-gradient(120deg, var(--agv-azul), var(--agv-celeste));
}
.agv-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.agv-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(2, 6, 23, .82) 0%, rgba(2, 6, 23, .25) 55%, rgba(2, 6, 23, .1) 100%);
}
.agv-hero-content {
	position: relative;
	z-index: 1;
	padding: 40px 44px;
	color: #fff;
	max-width: 760px;
}
.agv-hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .35);
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 14px;
}
.agv-hero-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.08;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.agv-hero-loc { margin: 12px 0 0; font-size: 1.1rem; opacity: .95; }

/* ---------- Layout 2 columnas ---------- */
.agv-single-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	align-items: start;
}
@media (max-width: 900px) {
	.agv-single-grid { grid-template-columns: 1fr; }
}

/* ---------- Sidebar fijo ---------- */
.agv-single-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) {
	.agv-single-aside { position: static; }
}

.agv-booking {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}
.agv-booking-price { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #eef1f5; margin-bottom: 16px; }
.agv-booking-old { display: block; color: #94a3b8; font-size: 1rem; }
.agv-booking-amount { display: block; font-size: 2rem; font-weight: 800; color: var(--agv-azul); line-height: 1.1; }
.agv-booking-label { font-size: .82rem; color: #64748b; }

.agv-booking-facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.agv-booking-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.agv-booking-facts li span { color: #64748b; }
.agv-booking-facts li strong { color: #0f172a; text-align: right; }

.agv-booking-note { text-align: center; font-size: .78rem; color: #94a3b8; margin: 10px 0 0; }

.agv-booking-fechas h3 { margin: 0 0 12px; font-size: 1.05rem; }

.agv-section { margin: 0 0 34px; }
.agv-section h2 {
	font-size: 1.4rem;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--agv-dorado);
	color: var(--agv-navy);
}

/* Resumen */
.agv-resumen { font-size: 1.02rem; color: #334155; margin: 0 0 12px; }

/* Detalles (lista de ficha) */
.agv-detalles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.agv-detalles li { font-size: .98rem; color: #334155; padding-left: 2px; }
.agv-detalles strong { color: var(--agv-navy); }

/* Pasajes aéreos */
.agv-vuelos { margin-top: 18px; padding: 16px 18px; background: #f1f6ff; border-radius: 12px; border: 1px solid #dbe7ff; }
.agv-vuelos h4 { margin: 0 0 10px; color: var(--agv-azul); }
.agv-vuelos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.agv-vuelos li { font-size: .92rem; color: #334155; }

/* Itinerario en lista */
.agv-itinerario-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agv-itinerario-lista li {
	position: relative; padding: 10px 14px 10px 38px; background: #f8fafc; border-radius: 10px; font-size: .95rem; color: #334155;
}
.agv-itinerario-lista li::before {
	content: "📍"; position: absolute; left: 12px; top: 10px;
}

/* Incluye / No incluye */
.agv-incluye-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px){ .agv-incluye-grid { grid-template-columns: 1fr; } }
.agv-incluye { padding: 18px 20px; border-radius: 14px; }
.agv-incluye h2 { border: 0; padding: 0; margin: 0 0 12px; font-size: 1.2rem; }
.agv-incluye ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agv-incluye li { font-size: .94rem; color: #334155; padding-left: 24px; position: relative; }
.agv-incluye--si { background: #eefaf1; }
.agv-incluye--si li::before { content: "✓"; position: absolute; left: 4px; color: #16a34a; font-weight: 800; }
.agv-incluye--no { background: #fdf0f0; }
.agv-incluye--no li::before { content: "✕"; position: absolute; left: 4px; color: #dc2626; font-weight: 800; }

/* Tarifas por ocupación (sidebar) */
.agv-tarifas { list-style: none; margin: 0 0 14px; padding: 14px 0; border-bottom: 1px solid #eef1f5; display: flex; flex-direction: column; gap: 8px; }
.agv-tarifas li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.agv-tarifas li span { color: #64748b; }
.agv-tarifas li strong { color: var(--agv-navy); }
.agv-precio-nota { font-size: .8rem; color: #64748b; margin: 0 0 14px; }
.agv-booking-from { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--agv-dorado); font-weight: 700; }

/* Salidas (sidebar) */
.agv-salidas-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agv-salidas-list li { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 9px 12px; background: #f4f7fb; border-radius: 10px; font-size: .88rem; }
.agv-salida-out { font-weight: 700; color: var(--agv-navy); }
.agv-salida-back { color: #64748b; }

/* Fechas */
.agv-fechas-list { display: flex; flex-wrap: wrap; gap: 10px; }
.agv-fecha-chip {
	background: #eff6ff;
	color: var(--agv-navy);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 600;
}

/* Galería */
.agv-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}
.agv-gallery a { display: block; border-radius: 10px; overflow: hidden; }
.agv-gallery img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .3s ease; }
.agv-gallery a:hover img { transform: scale(1.08); }

/* Itinerario */
.agv-itinerario { list-style: none; counter-reset: dia; margin: 0; padding: 0; }
.agv-itinerario li {
	position: relative;
	padding: 0 0 22px 42px;
	border-left: 2px solid #e2e8f0;
	margin-left: 14px;
}
.agv-itinerario li:last-child { border-left-color: transparent; }
.agv-itinerario li::before {
	counter-increment: dia;
	content: counter(dia);
	position: absolute;
	left: -16px;
	top: 0;
	width: 30px;
	height: 30px;
	background: var(--agv-azul);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .85rem;
}
.agv-itinerario h4 { margin: 0 0 4px; }
.agv-itinerario p { margin: 0; color: #475569; }

/* Hoteles */
.agv-hoteles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.agv-hotel { padding: 18px; background: #fff; border: 1px solid #e8eef6; border-left: 4px solid var(--agv-dorado); border-radius: 12px; box-shadow: 0 4px 14px rgba(2,6,23,.05); }
.agv-hotel h4 { margin: 0 0 8px; color: var(--agv-navy); }
.agv-stars { color: #f59e0b; margin-left: 6px; }
.agv-hotel-precio { margin: 0 0 6px; color: var(--agv-navy); font-weight: 700; font-size: .95rem; }
.agv-hotel-desc { margin: 0; color: #475569; font-size: .92rem; line-height: 1.7; }

/* Adicionales opcionales */
.agv-adicionales { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agv-adicionales li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid #e8eef6; border-left: 4px solid var(--agv-dorado); border-radius: 10px; font-size: .95rem; color: #334155; }
.agv-adicionales li strong { color: var(--agv-navy); white-space: nowrap; }
.agv-precio-hl {
	display: inline-block;
	background: rgba(0, 73, 204, .08);
	color: var(--agv-azul);
	font-weight: 800;
	font-size: 1.02em;
	padding: 1px 8px;
	border-radius: 6px;
	white-space: nowrap;
}

/* Mapa */
.agv-mapa iframe, .agv-mapa { width: 100%; border-radius: 12px; overflow: hidden; }
.agv-mapa iframe { display: block; min-height: 400px; }

