/*
Theme Name: Tours Demo
Theme URI: https://example.com/
Author: Demo
Description: Tema de una sola página para demo de reservación de tours. Compatible con WP Travel Engine.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tours-demo
*/

:root {
	--primary: #0f766e;
	--primary-dark: #115e59;
	--accent: #f97316;
	--text: #1f2937;
	--muted: #6b7280;
	--bg: #ffffff;
	--bg-alt: #f3f7f6;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid #e5e7eb;
}
.site-header .container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 14px 0;
}
.logo { font-weight: 700; font-size: 1.3rem; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--primary); }

/* ---------- Botones ---------- */
.btn {
	display: inline-block; padding: 12px 26px; border-radius: 999px;
	background: var(--accent); color: #fff; text-decoration: none;
	font-weight: 600; border: 0; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: #ea580c; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
	min-height: 78vh; display: flex; align-items: center; text-align: center; color: #fff;
	background:
		linear-gradient(rgba(15, 118, 110, .75), rgba(17, 24, 39, .65)),
		url('https://images.unsplash.com/photo-1518105779142-d975f22f1b0a?auto=format&fit=crop&w=1800&q=70') center/cover;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 12px; line-height: 1.15; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; opacity: .95; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Secciones ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; }

/* ---------- Tours ---------- */
.tours-grid {
	display: grid; gap: 26px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tour-card {
	background: #fff; border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform .2s;
}
.tour-card:hover { transform: translateY(-4px); }
.tour-card .thumb { aspect-ratio: 16/10; background: #d1e7e4; overflow: hidden; }
.tour-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tour-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tour-card h3 a { color: var(--text); text-decoration: none; }
.tour-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.tour-card .excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.tour-card .btn { margin-top: 16px; text-align: center; }

.notice {
	text-align: center; padding: 30px; border: 2px dashed #cbd5e1;
	border-radius: var(--radius); color: var(--muted);
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.step .num {
	width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
	display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats { display: flex; gap: 30px; margin-top: 20px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 1.8rem; color: var(--primary); }

/* ---------- Contacto ---------- */
.contact-box {
	background: var(--primary); color: #fff; border-radius: var(--radius);
	padding: 50px 30px; text-align: center;
}
.contact-box h2 { margin-top: 0; }
.contact-box .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #9ca3af; text-align: center; padding: 28px 0; font-size: .9rem; }

/* ---------- Páginas internas (tours del plugin, checkout, etc.) ---------- */
.site-main-inner { padding: 50px 0; }
.site-main-inner .entry-title { margin-top: 0; }

@media (max-width: 720px) {
	.main-nav { display: none; }
	section { padding: 60px 0; }
}
