/*
 * TreeTrek Gamboa - main.css
 *
 * Réplica fiel del diseño original (tema Divi). Los valores de color,
 * fondos y tipografía de cada sección fueron verificados directamente
 * contra el HTML/CSS exportado del sitio en producción - no son
 * aproximaciones. Ver README.txt para el detalle de cada valor.
 *
 * Variables sobreescribibles en vivo desde el Customizer -> inc/customizer.php
 */

:root {
	--ttg-primary: #033d20;      /* Bienvenidos, bordes, botones outline */
	--ttg-primary-2: #246501;    /* Ítem de menú activo */
	--ttg-accent: #fcb815;       /* Botón "Reservar Tour" */
	--ttg-light: #ecffe5;        /* Fondo del body y topbar */
	--ttg-cta: #12441f;          /* Botón "Reserva Ahora" del menú */
	--ttg-cta-hover: #0f3819;
	--ttg-strip: #033d20;        /* Franja de datos del tour */
	--ttg-footer: #222222;
	--ttg-footer-bottom: rgba(0, 0, 0, .32);
	--ttg-overlay: rgba(0, 0, 0, .24);
	--ttg-tour-heading: #003300;
	--ttg-text: #333333;
	--ttg-font: "Open Sans", Arial, Helvetica, sans-serif;
	--ttg-container: 1140px;
}

body {
	font-family: var(--ttg-font);
	background: var(--ttg-light);
	font-size: 15px;
	line-height: 1.6;
}

.ttg-container {
	max-width: var(--ttg-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* -----------------------------------------------------------
   Botones
----------------------------------------------------------------- */
.ttg-btn {
	display: inline-block;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 3px;
	transition: all .25s ease;
	cursor: pointer;
	border: none;
	line-height: 1.4;
}
.ttg-btn--lg { padding: 14px 32px; font-size: 14px; }
.ttg-btn--block { display: block; text-align: center; width: 100%; }

.ttg-btn--accent {
	background: var(--ttg-accent);
	color: #fff;
	box-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.ttg-btn--accent:hover { filter: brightness(0.94); color: #fff; }

.ttg-btn--outline {
	background: transparent;
	color: var(--ttg-primary);
	border: 2px solid var(--ttg-primary);
}
.ttg-btn--outline:hover { background: var(--ttg-primary); color: #fff; }

.ttg-btn--ghost {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 2px solid #fff;
}
.ttg-btn--ghost:hover { background: #fff; color: var(--ttg-primary); }

/* -----------------------------------------------------------
   Topbar (verde claro #ecffe5, igual al fondo del sitio)
----------------------------------------------------------------- */
.ttg-topbar {
	background: var(--ttg-light);
	font-size: 13px;
	padding: 8px 0;
}
.ttg-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ttg-topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.ttg-topbar__contact a { display: inline-flex; align-items: center; gap: 6px; color: #333; }
.ttg-topbar__social { display: flex; gap: 10px; }
.ttg-topbar__social a {
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--ttg-primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
}

/* -----------------------------------------------------------
   Header principal (blanco, fixed on scroll)
----------------------------------------------------------------- */
.ttg-header {
	background: #fff;
	padding: 14px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .07);
}
.ttg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ttg-header__logo img { height: 50px; width: auto; }

.ttg-nav__list {
	display: flex;
	gap: 24px;
	align-items: center;
	font-size: 13px;
	color: #333;
}
.ttg-nav__list a { padding: 6px 0; }
.ttg-nav__list .current-menu-item > a,
.ttg-nav__list a:hover {
	color: var(--ttg-primary-2);
	font-weight: 700;
}

.ttg-header__actions { display: flex; align-items: center; gap: 16px; }

/* Botón "Reserva Ahora" - estilo real: verde #12441F, radio 8px */
.ttg-btn--accent.ttg-header__actions,
a.ttg-btn.ttg-btn--accent[href] { }
.ttg-header__actions .ttg-btn--accent { background: var(--ttg-cta); box-shadow: none; padding: 10px 15px; border-radius: 8px; }
.ttg-header__actions .ttg-btn--accent:hover { background: var(--ttg-cta-hover); }

.ttg-lang-switch { font-size: 13px; }

.ttg-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}
.ttg-burger span { width: 24px; height: 2px; background: #222; display: block; }

@media (max-width: 900px) {
	.ttg-nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: #fff; box-shadow: -4px 0 14px rgba(0,0,0,.15); transition: right .3s ease; padding: 90px 24px 24px; z-index: 200; }
	.ttg-nav.is-open { right: 0; }
	.ttg-nav__list { flex-direction: column; align-items: flex-start; gap: 18px; }
	.ttg-burger { display: flex; }
	.ttg-lang-switch { display: none; }
}

/* -----------------------------------------------------------
   Hero - video de fondo real, sin texto encima (igual al original)
----------------------------------------------------------------- */
.ttg-hero {
	position: relative;
	height: 60vh;
	min-height: 380px;
	max-height: 620px;
	overflow: hidden;
	background: #001a0d;
}
.ttg-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ttg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 100%);
}
.ttg-hero__content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
	text-align: center;
}
.ttg-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; opacity: .85; margin: 0 0 10px; }
.ttg-hero__content h1 { font-family: "Poppins", sans-serif; font-size: clamp(28px, 5vw, 48px); margin: 0 0 16px; font-weight: 700; }
.ttg-hero__content h1 span { color: var(--ttg-accent); }
.ttg-hero__lead { max-width: 640px; margin: 0 auto 26px; font-size: 16px; }
.ttg-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ttg-hero__scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 22px; z-index: 2; animation: ttg-bounce 1.8s infinite; }
@keyframes ttg-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* -----------------------------------------------------------
   Secciones genéricas
----------------------------------------------------------------- */
.ttg-section { padding: 60px 0; }
.ttg-section--alt { background: #fff; }
.ttg-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ttg-primary-2);
	margin-bottom: 10px;
}

/* Bienvenidos: sin caja, fondo hereda el body (#ecffe5) */
.ttg-welcome__inner { text-align: center; max-width: 860px; margin: 0 auto; }
.ttg-welcome h2 { color: var(--ttg-primary); font-size: 26px; margin: 0 0 22px; font-weight: 700; }
.ttg-welcome p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.85; }

/* Conservación: foto real de fondo + caja overlay semitransparente */
.ttg-conservation {
	background-image: url('../images/conservation.jpg');
	background-size: cover;
	background-position: center;
	padding: 90px 0;
}
.ttg-conservation .ttg-container { max-width: 760px; }
.ttg-conservation p {
	background: var(--ttg-overlay);
	color: #fff;
	text-align: center;
	padding: 20px 30px;
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.8em;
}
.ttg-conservation p:first-child { padding-bottom: 6px; margin-bottom: 0; }
.ttg-conservation p:last-child { padding-top: 6px; }

/* Tour de Canopy: degradado claro -> blanco, título #003300 */
.ttg-tour {
	background: linear-gradient(180deg, var(--ttg-light) 0%, #ffffff 100%);
	padding: 60px 0 50px;
}
.ttg-tour__intro { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.ttg-tour__intro h2 { font-size: 17px; font-weight: 700; color: #000; line-height: 1.8; margin: 0; }
.ttg-tour__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 36px;
}
.ttg-tour__card { text-align: center; }
.ttg-tour__card img { margin: 0 auto 14px; }
.ttg-tour__card h3 { color: var(--ttg-tour-heading); font-size: 17px; margin: 0 0 8px; }
.ttg-tour__card p { font-size: 13.5px; color: #444; margin: 0; }
.ttg-tour__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
	.ttg-tour__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Franja de datos - fondo sólido #033d20 */
.ttg-strip { background: var(--ttg-strip); color: #fff; padding: 40px 0; }
.ttg-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.ttg-strip__grid strong { display: block; font-size: 26px; font-family: "Poppins", sans-serif; }
.ttg-strip__grid span { font-size: 13px; opacity: .85; }
@media (max-width: 700px) { .ttg-strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* Galería preview en home */
.ttg-gallery-preview { text-align: center; }
.ttg-gallery-preview__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 30px 0;
}
.ttg-gallery-preview__item { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.ttg-gallery-preview__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ttg-gallery-preview__item:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .ttg-gallery-preview__grid { grid-template-columns: repeat(2, 1fr); } }

/* Contacto - fondo hereda el body, título negro */
.ttg-contact-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ttg-contact-section h2 { color: #000; font-size: 22px; margin: 0 0 10px; }
.ttg-contact-section__map iframe,
.ttg-contact-page__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 4px; }
@media (max-width: 900px) { .ttg-contact-section__inner { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   Formulario de contacto (nativo)
----------------------------------------------------------------- */
.ttg-form__row { display: flex; gap: 16px; }
.ttg-form__field { flex: 1; margin-bottom: 16px; }
.ttg-form__field label { display: block; font-size: 13px; margin-bottom: 6px; color: #333; }
.ttg-form__field input,
.ttg-form__field textarea {
	width: 100%;
	padding: 11px;
	border: 1px solid #ccc;
	font-size: 13.5px;
	background: #fff;
	font-family: inherit;
}
.ttg-form__field textarea { min-height: 120px; resize: vertical; }
.ttg-form__honeypot { position: absolute; left: -9999px; opacity: 0; }
.ttg-form .ttg-btn { border: none; background: var(--ttg-cta); color: #fff; }
.ttg-form .ttg-btn:hover { background: var(--ttg-cta-hover); }
.ttg-form__response { margin-top: 14px; font-size: 13.5px; }
.ttg-form__response.is-success { color: #1a7a34; }
.ttg-form__response.is-error { color: #b3261e; }
@media (max-width: 700px) { .ttg-form__row { flex-direction: column; gap: 0; } }

/* -----------------------------------------------------------
   Banner interior de página (Nosotros/Tour/Galería/Contacto)
----------------------------------------------------------------- */
.ttg-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 90px 0 60px;
	color: #fff;
	text-align: center;
}
.ttg-banner__overlay { position: absolute; inset: 0; background: rgba(3, 61, 32, .55); }
.ttg-banner__content { position: relative; z-index: 2; }
.ttg-banner__content h1 { font-family: "Poppins", sans-serif; font-size: 34px; margin: 0 0 10px; }
.ttg-banner__content p { font-size: 14.5px; opacity: .95; max-width: 640px; margin: 0 auto; }
.ttg-breadcrumb { margin-top: 16px; font-size: 12.5px; opacity: .85; }
.ttg-breadcrumb a { text-decoration: underline; }
.ttg-breadcrumb span { margin: 0 6px; }

/* -----------------------------------------------------------
   Contenido de página genérica (page.php)
----------------------------------------------------------------- */
.ttg-prose { max-width: 860px; margin: 0 auto; font-size: 14.5px; line-height: 1.85; }
.ttg-prose h2 { color: var(--ttg-primary); margin-top: 2em; }
.ttg-prose img { border-radius: 4px; margin: 20px 0; }

/* -----------------------------------------------------------
   Tour de Canopy - página interior
----------------------------------------------------------------- */
.ttg-tour-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 46px; align-items: start; }
.ttg-price-card { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 26px; position: sticky; top: 90px; }
.ttg-price-card h3 { margin: 0 0 16px; color: var(--ttg-primary); font-size: 17px; }
.ttg-price-card ul { list-style: none; margin: 0 0 16px; padding: 0; }
.ttg-price-card li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed #ddd; font-size: 13.5px; }
.ttg-price-card li span { color: #666; display: flex; align-items: center; }
.ttg-price-card__note { font-size: 12.5px; color: #777; margin-bottom: 18px; }
@media (max-width: 900px) { .ttg-tour-detail { grid-template-columns: 1fr; } .ttg-price-card { position: static; } }

.ttg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.ttg-steps__item { text-align: center; }
.ttg-steps__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--ttg-strip); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.ttg-steps__item p { font-size: 13.5px; line-height: 1.8; color: #444; }
@media (max-width: 900px) { .ttg-steps { grid-template-columns: 1fr; } }

.ttg-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.ttg-two-col h2 { color: var(--ttg-primary); font-size: 19px; }
.ttg-two-col p { font-size: 14px; line-height: 1.85; color: #444; }
.ttg-checklist { list-style: none; margin: 0; padding: 0; }
.ttg-checklist li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; color: #444; }
.ttg-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ttg-primary-2); font-weight: 700; }
@media (max-width: 900px) { .ttg-two-col { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   Galería + Lightbox nativo
----------------------------------------------------------------- */
.ttg-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ttg-gallery__item { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.ttg-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ttg-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .ttg-gallery { grid-template-columns: repeat(2, 1fr); } }

.ttg-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,.9);
	display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px;
}
.ttg-lightbox.is-open { display: flex; }
.ttg-lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 4px; }
.ttg-lightbox__close {
	position: absolute; top: 20px; right: 30px; background: none; border: none;
	color: #fff; font-size: 34px; cursor: pointer; line-height: 1;
}

/* -----------------------------------------------------------
   Página de Contacto
----------------------------------------------------------------- */
.ttg-contact-page__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.ttg-info-card { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 26px; text-align: center; }
.ttg-info-card svg { color: var(--ttg-primary); margin: 0 auto 12px; }
.ttg-info-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--ttg-primary); }
.ttg-info-card p { font-size: 13px; color: #555; margin: 0; line-height: 1.7; }
.ttg-contact-page__form { max-width: 760px; margin: 0 auto 40px; }
@media (max-width: 900px) { .ttg-contact-page__cards { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   Blog / index.php / single.php
----------------------------------------------------------------- */
.ttg-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.ttg-blog-card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #eee; }
.ttg-blog-card__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ttg-blog-card__body { padding: 18px; }
.ttg-blog-card__body h2 { font-size: 16px; margin: 0 0 10px; }
.ttg-blog-card__body p { font-size: 13.5px; color: #555; }
.ttg-pagination { margin-top: 30px; text-align: center; }
@media (max-width: 900px) { .ttg-blog-grid { grid-template-columns: 1fr; } }

/* 404 */
.ttg-404 { text-align: center; padding: 100px 0; }
.ttg-404 h1 { font-size: 90px; color: var(--ttg-primary); margin: 0; font-family: "Poppins", sans-serif; }

/* -----------------------------------------------------------
   Footer (bg #222, footer-bottom rgba negro .32)
----------------------------------------------------------------- */
.ttg-footer { background: var(--ttg-footer); color: #cfcfcf; padding: 44px 0 0; font-size: 13px; }
.ttg-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; align-items: start; }
.ttg-footer__col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.ttg-footer__col--logo { display: flex; align-items: center; justify-content: center; }
.ttg-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.ttg-footer__social a { width: 28px; height: 28px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; color: #fff; }
.ttg-footer p { margin: 4px 0 10px; line-height: 1.7; }
.ttg-footer a:hover { color: #fff; }
.ttg-footer__bottom { background: var(--ttg-footer-bottom); text-align: center; padding: 16px 0; font-size: 12px; color: #999; margin-top: 10px; }
.ttg-footer__lang { text-align: center; padding: 14px 0; background: var(--ttg-light); }
@media (max-width: 900px) { .ttg-footer__grid { grid-template-columns: 1fr 1fr; } .ttg-footer__col--logo { grid-column: span 2; order: -1; } }
@media (max-width: 560px) { .ttg-footer__grid { grid-template-columns: 1fr; } .ttg-footer__col--logo { grid-column: span 1; } }
