/*
Theme Name: Hello Elementor Child
Theme URI: https://tourinlima94@gmail.com/
Description: Tema hijo de Hello Elementor para Tours in Lima & Perú. Colores de marca azul (#1e3a8a) y blanco.
Author: Datxale
Author URI: https://datxale.com/
Template: hello-elementor
Version: 1.16.3
Text Domain: hello-elementor-child
*/

:root {
  --til-blue: #1e3a8a;
  --til-blue-dark: #15296b;
  --til-blue-light: #3b5dc9;
  --til-teal: #0c3b3e;
  --til-white: #ffffff;
  --til-bg-soft: #f7f9fc;
  --til-text: #1a1a1a;
}

body {
  color: var(--til-text);
  background: var(--til-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--til-blue); }
a:hover { color: var(--til-blue-dark); }

/* ===== HIDE PAGE TITLE EVERYWHERE ===== */
.page-header,
.entry-header,
h1.entry-title,
.page .page-header,
body.page .entry-header {
  display: none !important;
}
body.page-id-25 .woocommerce-breadcrumb { display: none; }

/* ===== WOOCOMMERCE CARDS — TOURDEN STYLE ===== */
.woocommerce ul.products,
.woocommerce-page ul.products,
.elementor-widget-shortcode .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--til-white) !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.08) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
  position: relative !important;
  text-align: left !important;
  float: none !important;
  list-style: none !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 40px rgba(30, 58, 138, 0.18) !important;
  border-color: var(--til-blue) !important;
}

/* "RESERVAR" floating badge top-left */
.woocommerce ul.products li.product::before {
  content: "RESERVAR" !important;
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  background: linear-gradient(135deg, var(--til-teal) 0%, var(--til-blue) 100%) !important;
  color: var(--til-white) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  z-index: 3 !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 14px rgba(12, 59, 62, 0.28) !important;
  pointer-events: none;
}

/* Image */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #e8edf5 0%, #d6e0f0 100%) !important;
  border-radius: 0 !important;
  display: block !important;
}

.woocommerce ul.products li.product a {
  text-decoration: none !important;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  color: var(--til-blue) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  margin: 18px 22px 6px !important;
  padding: 0 !important;
  min-height: 50px !important;
  line-height: 1.35 !important;
}

/* Stars + 5.0 prepended to price */
.woocommerce ul.products li.product .price::before {
  content: "★ ★ ★ ★ ★  5.0" !important;
  display: block !important;
  color: #f59e0b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 8px !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product span.price {
  display: block !important;
  color: var(--til-blue-dark) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 8px 22px !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product .price ins {
  background: transparent !important;
  text-decoration: none !important;
}

/* Add to cart button — pill style */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .added_to_cart {
  display: block !important;
  margin: 12px 22px 22px !important;
  padding: 13px 16px !important;
  width: calc(100% - 44px) !important;
  text-align: center !important;
  background: var(--til-blue) !important;
  color: var(--til-white) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease !important;
  cursor: pointer !important;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--til-blue-dark) !important;
  transform: translateY(-1px) !important;
}

/* Hide default sale badge (we use our own ::before) */
.woocommerce ul.products li.product .onsale {
  display: none !important;
}

/* Single product */
.woocommerce div.product .product_title {
  color: var(--til-blue) !important;
  font-size: 32px !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--til-blue-dark) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
}

/* Generic buttons fallback (cart, checkout pages) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--til-blue) !important;
  color: var(--til-white) !important;
  border-radius: 999px !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--til-blue-dark) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ===== POST CARDS (recent posts grid + blog template) ===== */
.til-card {
	background: #ffffff;
	border: 1px solid #e8edf5;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(30, 58, 138, 0.08);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	display: flex;
	flex-direction: column;
}
.til-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 40px rgba(30, 58, 138, 0.18);
	border-color: var(--til-blue);
}
.til-card__thumb {
	display: block;
	height: 220px;
	background: linear-gradient(135deg, #d6e0f0 0%, #b6c3d8 100%);
	background-size: cover;
	background-position: center;
}
.til-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.til-card__cat {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--til-teal, #0c3b3e);
	margin-bottom: 8px;
}
.til-card__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--til-blue);
	margin: 0 0 14px;
	line-height: 1.35;
}
.til-card__title a {
	color: inherit;
	text-decoration: none;
}
.til-card__meta {
	font-size: 12px;
	color: #888;
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.til-card__more {
	color: var(--til-blue);
	font-weight: 700;
	text-decoration: none;
	font-size: 13px;
}
.til-card__more:hover { color: var(--til-blue-dark); }

@media (max-width: 768px) {
	.til-recent-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ===== TOURDEN-STYLE TOUR CARDS (custom shortcode) ===== */
.til-tour-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	max-width: 1320px;
	margin: 0 auto;
}
.til-tour-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.til-tour-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.til-tour-grid[data-cols="1"] { grid-template-columns: 1fr; }

.til-tour-card {
	position: relative;
	display: block;
	min-height: 380px;
	border-radius: 18px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #1e3a8a;
	text-decoration: none;
	color: #ffffff;
	box-shadow: 0 10px 28px rgba(30,58,138,.15);
	transition: transform .25s ease, box-shadow .25s ease;
}
.til-tour-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 40px rgba(30,58,138,.28);
	color: #ffffff;
}
.til-tour-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 55%, rgba(12,59,62,.92) 100%);
	z-index: 0;
}
.til-tour-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: linear-gradient(135deg, #0c3b3e, #1e3a8a);
	color: #fff;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	z-index: 2;
	box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.til-tour-card__inner {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 22px 24px 24px;
	z-index: 1;
}
.til-tour-card__location {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #cfe1ff;
	margin-bottom: 8px;
}
.til-tour-card__title {
	color: #ffffff !important;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 14px;
}
.til-tour-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255,255,255,.18);
	padding-top: 12px;
	font-size: 13px;
	font-weight: 700;
}
.til-tour-card__rating { color: #fbbf24; }
.til-tour-card__duration { color: rgba(255,255,255,.85); }

@media (max-width: 1024px) {
	.til-tour-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.til-tour-grid { grid-template-columns: 1fr !important; }
}

/* ===== STATIC HEADER FALLBACK (cart, checkout, single-product) ===== */
.til-static-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.97);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid #e8edf5;
	box-shadow: 0 2px 12px rgba(30,58,138,.06);
}
.til-static-header__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.til-static-header__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--til-blue);
	font-weight: 800;
	font-size: 17px;
	white-space: nowrap;
}
.til-logo-icon {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0c3b3e, #1e3a8a);
	color: #fff;
	border-radius: 10px;
	font-size: 16px;
}
.til-static-header__nav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #e8edf5;
	border-radius: 999px;
	padding: 4px;
	background: #fafbfd;
}
.til-static-header__nav a {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 999px;
	color: var(--til-blue);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	transition: background .15s ease, color .15s ease;
}
.til-static-header__nav li.is-active a,
.til-static-header__nav a:hover {
	background: var(--til-blue);
	color: #fff;
}
.til-static-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	background: linear-gradient(135deg, #0c3b3e, #1e3a8a);
	color: #fff !important;
	text-decoration: none;
	border-radius: 999px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 6px 16px rgba(30,58,138,.25);
	transition: transform .15s ease;
}
.til-static-header__cta:hover { transform: translateY(-2px); }
.til-static-header__cta::after {
	content: '↗';
	font-size: 18px;
	font-weight: 900;
	margin-left: 4px;
	background: #fff;
	color: #1e3a8a;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 900px) {
	.til-static-header__nav { display: none; }
}

/* ===== STATIC FOOTER FALLBACK ===== */
.til-static-footer {
	background: #0c3b3e;
	color: rgba(255,255,255,.85);
	padding: 64px 24px 24px;
}
.til-static-footer__grid {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.5fr;
	gap: 48px;
}
.til-static-footer h4 {
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(255,255,255,.15);
}
.til-static-footer ul { list-style: none; padding: 0; margin: 0; }
.til-static-footer li { padding: 4px 0; }
.til-static-footer a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.til-static-footer a:hover { color: #fff; }
.til-static-footer__bottom {
	max-width: 1320px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.12);
	text-align: center;
	font-size: 13px;
	color: rgba(255,255,255,.6);
}
@media (max-width: 768px) {
	.til-static-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== NEW FOOTER (rich design) ===== */
.til-footer { background: #0c3b3e; color: rgba(255,255,255,.85); }

/* CTA strip */
.til-footer__cta {
	background: linear-gradient(135deg, #0c3b3e 0%, #1e3a8a 100%);
	padding: 64px 24px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.til-footer__cta-inner {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 48px;
	align-items: center;
}
.til-footer__cta-tag {
	display: inline-block;
	background: rgba(255,255,255,.12);
	color: #fff;
	border: 1px solid rgba(255,255,255,.25);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin-bottom: 14px;
}
.til-footer__cta h2 {
	color: #fff !important;
	font-size: 36px;
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.15;
}
.til-footer__cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 560px; }
.til-footer__cta-btn {
	display: inline-flex; align-items: center; gap: 12px;
	background: #25d366; color: #fff !important;
	padding: 16px 28px; border-radius: 999px;
	font-weight: 800; font-size: 16px;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(37,211,102,.4);
	transition: transform .15s ease;
}
.til-footer__cta-btn:hover { transform: translateY(-2px); color: #fff !important; }

/* Main grid */
.til-footer__main {
	max-width: 1320px;
	margin: 0 auto;
	padding: 80px 24px 48px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr;
	gap: 48px;
}
.til-footer__col h4 {
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(255,255,255,.18);
	letter-spacing: 0.02em;
}
.til-footer__col ul { list-style: none; padding: 0; margin: 0; }
.til-footer__col li { padding: 6px 0; font-size: 14px; }
.til-footer__col a {
	color: rgba(255,255,255,.78);
	text-decoration: none;
	transition: color .15s ease, padding .15s ease;
}
.til-footer__col a:hover { color: #fff; padding-left: 6px; }

.til-footer__logo {
	display: inline-flex; align-items: center; gap: 12px;
	color: #fff !important; text-decoration: none;
	font-weight: 800; font-size: 20px;
	margin-bottom: 16px;
}
.til-footer__logo .til-logo-icon {
	width: 40px; height: 40px;
	background: linear-gradient(135deg, #1e3a8a, #25d366);
	color: #fff;
	border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 18px;
}
.til-footer__about {
	color: rgba(255,255,255,.78);
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 20px;
}
.til-footer__about strong { color: #fff; }

.til-footer__socials {
	display: flex; gap: 10px;
}
.til-footer__socials a {
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.85);
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease, transform .15s ease, color .15s ease;
}
.til-footer__socials a:hover {
	background: #25d366;
	color: #fff;
	transform: translateY(-2px);
	padding-left: 0 !important;
}

.til-footer__contact {
	display: flex; flex-direction: column; gap: 16px;
}
.til-footer__contact li {
	display: flex; gap: 12px;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255,255,255,.78);
}
.til-footer__contact strong { color: #fff; font-size: 14px; }
.til-footer__contact small { color: rgba(255,255,255,.55); font-size: 12px; }
.til-footer__icon {
	flex: 0 0 auto;
	width: 36px; height: 36px;
	background: rgba(255,255,255,.08);
	border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 16px;
}

/* Bottom bar */
.til-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 22px 24px;
	background: rgba(0,0,0,.18);
}
.til-footer__bottom-inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: rgba(255,255,255,.6);
}
.til-footer__copy strong { color: #fff; }
.til-footer__copy a { color: rgba(255,255,255,.85); text-decoration: underline; }
.til-footer__legal { display: flex; gap: 24px; }
.til-footer__legal a {
	color: rgba(255,255,255,.7);
	text-decoration: none;
	font-size: 13px;
}
.til-footer__legal a:hover { color: #fff; }

@media (max-width: 1024px) {
	.til-footer__main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 24px 40px; }
	.til-footer__cta-inner { grid-template-columns: 1fr; }
	.til-footer__cta h2 { font-size: 28px; }
}
@media (max-width: 600px) {
	.til-footer__main { grid-template-columns: 1fr; gap: 32px; }
	.til-footer__bottom-inner { flex-direction: column; text-align: center; }
	.til-footer__legal { justify-content: center; }
}

/* ===== BLOG CAROUSEL (auto-scroll, 4 visible) ===== */
.til-blog-carousel {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 64px;
}
.til-blog-carousel__viewport {
	overflow: hidden;
}
.til-blog-carousel__track {
	display: flex;
	gap: 24px;
	will-change: transform;
}
.til-blog-slide {
	flex: 0 0 calc((100% - 24px * 3) / 4);
	background: #ffffff;
	border: 1px solid #e8edf5;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(30,58,138,.08);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	display: flex;
	flex-direction: column;
}
.til-blog-slide:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 40px rgba(30,58,138,.18);
	border-color: var(--til-blue);
}
.til-blog-slide__thumb {
	display: block;
	height: 200px;
	background: linear-gradient(135deg, #d6e0f0 0%, #b6c3d8 100%);
	background-size: cover;
	background-position: center;
}
.til-blog-slide__body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.til-blog-slide__cat {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0c3b3e;
	margin-bottom: 8px;
}
.til-blog-slide__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--til-blue);
	margin: 0 0 14px;
	line-height: 1.35;
	min-height: 64px;
}
.til-blog-slide__title a {
	color: inherit;
	text-decoration: none;
}
.til-blog-slide__meta {
	font-size: 12px;
	color: #888;
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.til-blog-slide__more {
	color: var(--til-blue);
	font-weight: 700;
	text-decoration: none;
	font-size: 13px;
}
.til-blog-slide__more:hover { color: var(--til-blue-dark); }

/* Carousel arrow buttons */
.til-blog-carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e8edf5;
	box-shadow: 0 8px 18px rgba(30,58,138,.15);
	color: var(--til-blue);
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
	z-index: 10;
	transition: background .15s ease, color .15s ease, transform .15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.til-blog-carousel__btn:hover {
	background: var(--til-blue);
	color: #fff;
	transform: translateY(-50%) scale(1.05);
}
.til-blog-carousel__btn--prev { left: 0; }
.til-blog-carousel__btn--next { right: 0; }

@media (max-width: 1024px) {
	.til-blog-slide { flex: 0 0 calc((100% - 24px * 2) / 3); }
}
@media (max-width: 768px) {
	.til-blog-carousel { padding: 0 56px; }
	.til-blog-slide { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
	.til-blog-carousel { padding: 0 48px; }
	.til-blog-slide { flex: 0 0 100%; }
}

/* ===== TYPOGRAPHY POLISH FOR BLOG CARDS ===== */
.til-blog-slide__title,
.til-blog-slide__title a,
.til-blog-slide__title a:hover,
.til-blog-slide__title a:visited {
	text-decoration: none !important;
	border-bottom: none !important;
}
.til-blog-slide__more,
.til-blog-slide__more:hover,
.til-blog-slide__more:visited,
.til-card__title,
.til-card__title a,
.til-card__more,
.til-card__more:hover {
	text-decoration: none !important;
	border-bottom: none !important;
}

/* Better typography */
.til-blog-slide__title,
.til-card__title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	line-height: 1.4 !important;
	color: #0c1e3d !important;
}
.til-blog-slide__title a,
.til-card__title a {
	color: inherit !important;
	transition: color .15s ease;
}
.til-blog-slide__title a:hover,
.til-card__title a:hover {
	color: var(--til-blue) !important;
}

.til-blog-slide__cat,
.til-card__cat {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: 0.12em !important;
	color: #0c3b3e !important;
	text-transform: uppercase;
	margin-bottom: 10px !important;
}

.til-blog-slide__meta,
.til-card__meta {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px !important;
	font-weight: 600;
	color: #6b7280 !important;
	letter-spacing: 0.02em;
}

.til-blog-slide__more,
.til-card__more {
	color: var(--til-blue) !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: gap .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.til-blog-slide__more:hover,
.til-card__more:hover { gap: 8px; }

/* Clean up Hello Elementor / Elementor underlines on heading links */
.elementor a,
.til-static-header__nav a,
.elementor h1 a, .elementor h2 a, .elementor h3 a, .elementor h4 a {
	text-decoration: none !important;
}

/* Inter font (Google) — only loaded once */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== TOUR CAROUSEL (4 cols x 2 rows auto-scroll) ===== */
.til-tour-carousel {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 64px;
}
.til-tour-carousel__viewport { overflow: hidden; }
.til-tour-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 24px * 3) / 4);
	column-gap: 24px;
	row-gap: 24px;
	will-change: transform;
}
.til-tour-carousel .til-tour-card {
	min-height: 380px;
	width: 100%;
}
.til-tour-carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e8edf5;
	box-shadow: 0 8px 18px rgba(30,58,138,.15);
	color: var(--til-blue);
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
	z-index: 10;
	transition: background .15s ease, color .15s ease, transform .15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.til-tour-carousel__btn:hover {
	background: var(--til-blue);
	color: #fff;
	transform: translateY(-50%) scale(1.05);
}
.til-tour-carousel__btn--prev { left: 0; }
.til-tour-carousel__btn--next { right: 0; }

@media (max-width: 1024px) {
	.til-tour-carousel__track { grid-auto-columns: calc((100% - 24px * 2) / 3); }
}
@media (max-width: 768px) {
	.til-tour-carousel { padding: 0 56px; }
	.til-tour-carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
	.til-tour-carousel { padding: 0 48px; }
	.til-tour-carousel__track { grid-auto-columns: 100%; grid-template-rows: 1fr !important; }
}

/* ===== TIGHTER BLOG CARD SPACING (no big gap after title) ===== */
.til-blog-slide__title,
.til-card__title {
	min-height: 0 !important;
	margin: 0 0 12px !important;
}
.til-blog-slide__body,
.til-card__body {
	padding: 16px 20px 18px !important;
}
.til-blog-slide__meta,
.til-card__meta {
	margin-top: 12px !important;
	padding-top: 12px !important;
	border-top: 1px solid #f0f3f9;
}

/* ===== CONTACT FORM + MAP ===== */
.til-contact-form {
	display: flex; flex-direction: column; gap: 14px;
	background: rgba(255,255,255,.06);
	padding: 28px;
	border-radius: 18px;
	border: 1px solid rgba(255,255,255,.12);
}
.til-contact-form .til-form-row {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.til-contact-form label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 6px;
}
.til-contact-form input,
.til-contact-form select,
.til-contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color .15s ease, background .15s ease;
}
.til-contact-form input::placeholder,
.til-contact-form textarea::placeholder {
	color: rgba(255,255,255,.55);
}
.til-contact-form input:focus,
.til-contact-form select:focus,
.til-contact-form textarea:focus {
	outline: none;
	border-color: #25d366;
	background: rgba(255,255,255,.12);
}
.til-contact-form select option { color: #1a1a1a; }
.til-contact-form__btn {
	margin-top: 4px;
	background: linear-gradient(135deg, #0c3b3e, #1e3a8a);
	color: #ffffff !important;
	border: none;
	padding: 14px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .15s ease;
}
.til-contact-form__btn:hover { transform: translateY(-2px); }
.til-contact-form__btn:disabled { opacity: .6; cursor: wait; }
.til-contact-form__msg {
	padding: 12px;
	border-radius: 10px;
	font-size: 14px;
	display: none;
}
.til-contact-form__msg.ok {
	display: block;
	background: rgba(37,211,102,.15);
	color: #d1fae5;
	border: 1px solid #25d366;
}
.til-contact-form__msg.err {
	display: block;
	background: rgba(220,38,38,.15);
	color: #fee2e2;
	border: 1px solid #dc2626;
}
.til-contact-form__alt {
	margin: 0;
	font-size: 13px;
	color: rgba(255,255,255,.7);
	text-align: center;
}
.til-contact-form__alt a { color: #fff; }

.til-map { margin: 24px 0; max-width: 1100px; margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
	.til-contact-form .til-form-row { grid-template-columns: 1fr; }
}

/* ===== CONTACTO SECTION: bg image en parent + 3 columnas ===== */
[data-elementor-id="24"] [id="contacto"] > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 24px !important;
	align-items: stretch !important;
}
[data-elementor-id="24"] [id="contacto"] > .e-con-inner > .e-con {
	flex: 1 1 calc((100% - 48px) / 3) !important;
	min-width: 0 !important;
	background: rgba(0,0,0,0) !important;
}
[data-elementor-id="24"] [id="contacto"] > .e-con-inner > .e-con > * {
	flex-grow: 1;
}

/* Make sure inner backgrounds are transparent so parent BG shows through */
[id="contacto"] .e-con > .e-con-inner,
[id="contacto"] .e-con-boxed {
	background: transparent !important;
}

/* Map column styling to match the form card */
[id="contacto"] .til-map {
	margin: 0 !important;
	height: 100%;
}
[id="contacto"] .til-map iframe {
	height: 100% !important;
	min-height: 480px;
	border-radius: 18px !important;
}

/* Contact form container loses dark bg (parent has overlay now) */
[id="contacto"] .til-contact-form {
	background: rgba(255,255,255,.06) !important;
	backdrop-filter: blur(4px);
}

@media (max-width: 1024px) {
	[data-elementor-id="24"] [id="contacto"] > .e-con-inner > .e-con {
		flex: 1 1 100% !important;
	}
	[id="contacto"] .til-map iframe { min-height: 320px; }
}

/* ===== FIX: white gap under footer ===== */
html, body {
	background: #0c3b3e;
	margin: 0;
}
.site, .site-main, main, #content, .page-content {
	background: #ffffff;
}
.til-static-footer,
.til-footer { margin-bottom: 0 !important; }
body > .site-footer { display: none; }

/* ===== FIX: ensure WhatsApp FAB is visible & not duplicated ===== */
.til-wa-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	background: #25d366;
	color: #fff !important;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
	z-index: 9999;
	transition: transform .2s ease, box-shadow .2s ease;
	text-decoration: none !important;
}
.til-wa-fab:hover {
	transform: scale(1.1);
	box-shadow: 0 16px 36px rgba(37, 211, 102, .55);
	color: #fff !important;
}
@media (max-width: 600px) {
	.til-wa-fab { bottom: 18px; right: 18px; width: 56px; height: 56px; }
	.til-wa-fab svg { width: 28px; height: 28px; }
}

/* HTML keeps the dark teal to cover area below the footer (no white gap on overscroll).
   Body stays neutral so content pages don't bleed teal on the sides. */
html { background: #0c3b3e; }
body { background: #ffffff; min-height: 100vh; }
.til-static-footer,
.til-footer {
	margin: 0 !important;
}

/* === TIL LEGAL START === */
/* =====================================================
   TIL — Páginas legales (Privacidad / Términos)
   ===================================================== */
body.page-template-template-legal {
	background: #f3f6f8 !important;
}
body.page-template-template-legal .site-header,
body.page-template-template-legal .til-static-header { /* mantener header */ }

.til-legal-page {
	color: #1f2937;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	line-height: 1.65;
}

/* Hero */
.til-legal-hero {
	background: linear-gradient(135deg, #0c3b3e 0%, #1e3a8a 100%);
	color: #fff;
	padding: 90px 24px 70px;
	position: relative;
	overflow: hidden;
}
.til-legal-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient( circle at 15% 20%, rgba(255,255,255,0.08) 0, transparent 35% ),
		radial-gradient( circle at 85% 80%, rgba(255,255,255,0.06) 0, transparent 40% );
	pointer-events: none;
}
.til-legal-hero__inner {
	max-width: 980px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.til-legal-breadcrumbs {
	font-size: 14px;
	opacity: .85;
	margin-bottom: 18px;
	display: flex;
	gap: 8px;
	align-items: center;
}
.til-legal-breadcrumbs a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px dashed rgba(255,255,255,.4);
}
.til-legal-breadcrumbs a:hover { border-bottom-color: #fff; }
.til-legal-hero__title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -.02em;
	font-family: 'Inter', system-ui, sans-serif;
	color: #fff;
	line-height: 1.15;
}
.til-legal-hero__sub {
	font-size: 15px;
	opacity: .85;
	margin: 0;
}

/* Cuerpo + tarjeta */
.til-legal-body {
	padding: 0 24px 80px;
	margin-top: -40px;
}
.til-legal-card {
	max-width: 980px;
	margin: 0 auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 25px 60px -20px rgba(15, 23, 42, .25), 0 10px 25px -10px rgba(15, 23, 42, .12);
	padding: 56px 64px;
	position: relative;
	z-index: 2;
}
@media (max-width: 720px) {
	.til-legal-card { padding: 36px 24px; border-radius: 14px; }
	.til-legal-hero { padding: 70px 20px 60px; }
}

/* Tipografía interna */
.til-legal-content { font-size: 16px; }
.til-legal-content h2 {
	font-family: 'Inter', system-ui, sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #0c3b3e !important;
	margin: 38px 0 14px !important;
	padding-bottom: 10px !important;
	border-bottom: 2px solid #e6eef0 !important;
	line-height: 1.3 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
}
.til-legal-content h2:first-child { margin-top: 0 !important; }
.til-legal-content h3 {
	font-family: 'Inter', system-ui, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	margin: 26px 0 10px !important;
}
.til-legal-content p {
	margin: 0 0 16px;
	color: #374151;
}
.til-legal-content p em {
	color: #6b7280;
	font-size: 14px;
}
.til-legal-content ul {
	margin: 0 0 18px;
	padding-left: 22px;
}
.til-legal-content ul li {
	margin-bottom: 8px;
	color: #374151;
}
.til-legal-content ul li::marker { color: #1e3a8a; }
.til-legal-content strong { color: #0c3b3e; }
.til-legal-content a {
	color: #1e3a8a;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(30,58,138,.35);
	transition: text-decoration-color .2s;
}
.til-legal-content a:hover { text-decoration-color: #1e3a8a; }

/* CTA inferior */
.til-legal-footer-cta {
	margin-top: 50px;
	padding: 28px 32px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border: 1px solid #bae6fd;
	border-radius: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.til-legal-footer-cta strong {
	font-size: 17px;
	color: #0c3b3e;
	display: block;
	margin-bottom: 4px;
}
.til-legal-footer-cta p {
	margin: 0;
	color: #475569;
	font-size: 14px;
}
.til-legal-footer-cta__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.til-legal-footer-cta .til-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.til-legal-footer-cta .til-btn--primary {
	background: #1e3a8a;
	color: #fff;
}
.til-legal-footer-cta .til-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -6px rgba(30,58,138,.5);
}
.til-legal-footer-cta .til-btn--wa {
	background: #25d366;
	color: #fff;
}
.til-legal-footer-cta .til-btn--wa:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -6px rgba(37,211,102,.5);
}
@media (max-width: 600px) {
	.til-legal-footer-cta { flex-direction: column; align-items: flex-start; }
}
/* fin legales */

/* === TIL LEGAL END === */

/* === TIL CONTACT COL1 LAYOUT FIX === */
body.page-id-24 .elementor-element-3ce42f39 {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 18px !important;
}
body.page-id-24 .elementor-element-3ce42f39 > .elementor-widget-icon-box {
	width: 100% !important;
}
body.page-id-24 .elementor-element-3d4992da > .elementor-element-45f471f2,
body.page-id-24 .elementor-element-3d4992da > .elementor-element-7d03d38f,
body.page-id-24 .elementor-element-3d4992da > .elementor-element-3ce42f39 {
	padding: 18px 26px !important;
	min-height: auto !important;
}
body.page-id-24 .elementor-element-3d4992da {
	justify-content: flex-start !important;
	align-self: flex-start !important;
}
/* === END TIL CONTACT COL1 LAYOUT FIX === */

/* === TIL HEADER LEGIBILIDAD SOBRE CUALQUIER FONDO === */

/* Logo con drop-shadow doble: sombra negra + halo claro */
[data-elementor-type="header"] .elementor-widget-image,
[data-elementor-type="footer"] .elementor-widget-image {
	position: relative;
}
/* Banda blanca difuminada SOLO en la altura del texto LIMA & PERU (bottom 30%).
   Aplica al logo del header Y del footer. No tapa el emblema circular. */
[data-elementor-type="header"] .elementor-widget-image::before,
[data-elementor-type="footer"] .elementor-widget-image::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 4%;
	height: 30%;
	background: radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.15) 80%, transparent 100%);
	filter: blur(4px);
	z-index: 0;
	pointer-events: none;
	border-radius: 999px;
}
[data-elementor-type="header"] .elementor-widget-image > *,
[data-elementor-type="footer"] .elementor-widget-image > * {
	position: relative;
	z-index: 1;
}
[data-elementor-type="header"] .elementor-widget-image img,
[data-elementor-type="footer"] .elementor-widget-image img {
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Nav items inactivos: blanco con text-shadow oscuro */
[data-elementor-type="header"] .menu-item > a,
[data-elementor-type="header"] .jkit-nav-menu .menu-item > a,
[data-elementor-type="header"] ul.menu .menu-item > a {
	color: #ffffff !important;
	text-shadow: 0 1px 4px rgba(0,0,0,0.75), 0 0 12px rgba(0,0,0,0.45);
	font-weight: 600;
	transition: color .2s ease, text-shadow .2s ease;
}

/* Items activos (pill blanco): texto oscuro, sin shadow */
[data-elementor-type="header"] .menu-item.current-menu-item > a,
[data-elementor-type="header"] .menu-item.current_page_item > a,
[data-elementor-type="header"] .menu-item.current-menu-ancestor > a,
[data-elementor-type="header"] .jkit-nav-menu .current-menu-item > a {
	color: rgb(0,56,57) !important;
	text-shadow: none !important;
}

/* Hover en inactivos */
[data-elementor-type="header"] .menu-item > a:hover {
	color: #54E82B !important;
	text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 0 16px rgba(0,0,0,0.55);
}

/* Si el logo es un jkit_icon_box con texto, asegurar legibilidad del título */
[data-elementor-type="header"] .jeg-elementor-kit.icon-box-content h3,
[data-elementor-type="header"] .jkit-elementor-icon-box-title,
[data-elementor-type="header"] .icon-box-content .icon-box-title {
	color: #ffffff !important;
	text-shadow: 0 1px 4px rgba(0,0,0,0.75), 0 0 12px rgba(0,0,0,0.45);
}
/* === END TIL HEADER LEGIBILIDAD === */
