/*
Theme Name: Cluster Turístico Ciudad Colonial
Theme URI: https://clusterciudadcolonial.com
Author: Cluster Turístico Ciudad Colonial
Author URI: https://clusterciudadcolonial.com
Description: Tema WordPress personalizado para la plataforma turística "Cluster Turístico Ciudad Colonial" de Santo Domingo, República Dominicana. Tours, traslados, hoteles, restaurantes y experiencias con buscador por pestañas, botón de WhatsApp y compatibilidad con el plugin de reservas Bookyn.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cluster-turistico
Tags: travel, tourism, booking, custom-menu, custom-logo, featured-images, translation-ready, one-column, two-columns
*/

/* ==========================================================================
   1. Variables y reset
   ========================================================================== */
:root {
	--ctcc-navy: #1a2b4a;
	--ctcc-navy-2: #0f1d36;
	--ctcc-blue: #0066cc;
	--ctcc-blue-2: #1a7fe0;
	--ctcc-sky: #e8f3ff;
	--ctcc-celeste: #5fb4ff;
	--ctcc-gold: #c9a84c;
	--ctcc-sand: #f6efe3;
	--ctcc-stone: #b88a5a;
	--ctcc-text: #24324a;
	--ctcc-muted: #6b7890;
	--ctcc-border: #e3e8f0;
	--ctcc-white: #fff;
	--ctcc-wa: #25d366;
	--ctcc-radius: 18px;
	--ctcc-radius-sm: 10px;
	--ctcc-shadow: 0 10px 30px rgba(26, 43, 74, .08);
	--ctcc-shadow-lg: 0 25px 60px rgba(15, 29, 54, .22);
	--ctcc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ctcc-serif: "Playfair Display", Georgia, serif;
	--ctcc-script: "Great Vibes", "Playfair Display", cursive;
	--ctcc-header-h: 82px;
	--ctcc-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ctcc-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ctcc-text);
	background: var(--ctcc-white);
	-webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ctcc-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ctcc-navy); }
h1, h2, h3, h4, h5, h6 { color: var(--ctcc-navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px;
	padding: 10px 18px; background: var(--ctcc-white); color: var(--ctcc-navy); border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--ctcc-celeste); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.ctcc-icon { flex-shrink: 0; vertical-align: middle; }

/* ==========================================================================
   2. Botones
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
	transition: transform .25s var(--ctcc-ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--ctcc-blue), var(--ctcc-blue-2)); color: #fff; box-shadow: 0 8px 20px rgba(0, 102, 204, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(0, 102, 204, .4); }
.btn-outline { border-color: var(--ctcc-blue); color: var(--ctcc-blue); background: transparent; }
.btn-outline:hover { background: var(--ctcc-blue); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ctcc-navy); }
.btn-glass { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn-glass:hover { background: #fff; color: var(--ctcc-navy); }
.btn-wa { background: var(--ctcc-wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #1ebe5b; color: #fff; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	height: var(--ctcc-header-h);
	transition: background .35s, box-shadow .35s, height .35s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-transparent { background: linear-gradient(180deg, rgba(10, 22, 44, .55), rgba(10, 22, 44, 0)); }
.site-header.is-solid, .site-header.is-scrolled {
	background: rgba(26, 43, 74, .97); backdrop-filter: blur(10px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.site-header.is-scrolled { --ctcc-header-h: 70px; }
body:not(.has-transparent-header) .site-main { padding-top: var(--ctcc-header-h); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; max-width: 1400px; }

.ctcc-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.ctcc-logo:hover { color: #fff; }
.logo-mark { display: grid; place-items: center; color: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-top { font-family: var(--ctcc-font); font-weight: 800; letter-spacing: .08em; font-size: 15px; color: #fff; }
.logo-script { font-family: var(--ctcc-script); font-size: 26px; color: var(--ctcc-celeste); margin-top: 2px; }
.custom-logo { max-height: 60px; width: auto; }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; display: flex; align-items: center; }
.nav-menu a {
	display: block; padding: 10px 11px; color: rgba(255, 255, 255, .92);
	font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative;
}
.nav-menu > li > a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
	background: var(--ctcc-gold); transform: scaleX(0); transition: transform .3s var(--ctcc-ease);
}
.nav-menu > li > a:hover, .nav-menu > .current-menu-item > a, .nav-menu > .is-active > a { color: #fff; }
.nav-menu > li > a:hover::after, .nav-menu > .current-menu-item > a::after, .nav-menu > .is-active > a::after { transform: scaleX(1); }
.submenu-toggle { background: none; border: 0; color: #fff; padding: 4px; margin-left: -6px; }
.sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 10px;
	background: #fff; border-radius: 14px; box-shadow: var(--ctcc-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.nav-menu li:hover > .sub-menu, .nav-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { color: var(--ctcc-navy); text-transform: none; letter-spacing: 0; font-size: 14px; border-radius: 8px; }
.sub-menu a:hover { background: var(--ctcc-sky); color: var(--ctcc-blue); }

.mobile-nav-head, .mobile-nav-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon {
	display: inline-flex; align-items: center; gap: 6px; background: transparent;
	border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: 8px 12px;
	font-size: 13px; font-weight: 600; transition: background .2s;
}
.header-icon:hover { background: rgba(255, 255, 255, .15); }
.lang-switch { position: relative; }
.lang-dropdown {
	position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: 12px; box-shadow: var(--ctcc-shadow-lg); min-width: 150px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.lang-switch.is-open .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ctcc-navy); font-size: 14px; }
.lang-dropdown a:hover, .lang-dropdown a.active { background: var(--ctcc-sky); color: var(--ctcc-blue); }
.auth-links { display: flex; align-items: center; gap: 8px; }
.header-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 6px; }
.header-link:hover { color: var(--ctcc-celeste); }

.menu-toggle { display: none; width: 44px; height: 44px; background: rgba(255, 255, 255, .12); border: 0; border-radius: 12px; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-search { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--ctcc-shadow-lg); padding: 16px 0; }
.header-search form { display: flex; align-items: center; gap: 12px; color: var(--ctcc-muted); }
.header-search input { flex: 1; border: 0; outline: 0; font-size: 18px; padding: 8px 0; color: var(--ctcc-navy); background: transparent; }
.nav-overlay { position: fixed; inset: 0; background: rgba(10, 20, 40, .55); z-index: 998; opacity: 0; visibility: hidden; transition: all .3s; }
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
	background-size: cover; background-position: center; color: #fff;
	padding: calc(var(--ctcc-header-h) + 60px) 0 70px;
}
.hero-overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(15, 29, 54, .55) 0%, rgba(15, 29, 54, .25) 40%, rgba(15, 29, 54, .75) 100%),
		radial-gradient(ellipse at 20% 40%, rgba(0, 102, 204, .25), transparent 60%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; animation: ctccFadeUp 1s var(--ctcc-ease) both; }
.hero-eyebrow {
	display: inline-block; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600;
	padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; margin-bottom: 24px;
	background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
}
.hero-title { color: #fff; margin: 0 0 20px; display: flex; flex-direction: column; align-items: center; text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.hero-line-1 { font-family: var(--ctcc-font); font-weight: 500; font-size: clamp(22px, 3vw, 36px); }
.hero-line-2 { font-family: var(--ctcc-font); font-weight: 800; font-size: clamp(42px, 7vw, 88px); letter-spacing: -.02em; line-height: 1; }
.hero-line-3 { font-family: var(--ctcc-script); font-weight: 400; font-size: clamp(40px, 6vw, 76px); color: var(--ctcc-celeste); line-height: 1.1; position: relative; }
.hero-line-3::after { content: ""; display: block; height: 4px; width: 70%; margin: 4px auto 0; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--ctcc-celeste), transparent); }
.hero-text { font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin: 0 auto 30px; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-search-wrap { position: relative; z-index: 3; margin-top: 50px; animation: ctccFadeUp 1s .25s var(--ctcc-ease) both; }

@keyframes ctccFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   5. Buscador con pestañas
   ========================================================================== */
.search-widget { max-width: 1080px; margin: 0 auto; border-radius: 22px; box-shadow: var(--ctcc-shadow-lg); overflow: hidden; background: #fff; text-align: left; color: var(--ctcc-text); }
.sw-tabs { display: flex; background: var(--ctcc-navy); overflow-x: auto; scrollbar-width: none; }
.sw-tabs::-webkit-scrollbar { display: none; }
.sw-tab {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px;
	background: transparent; border: 0; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: 14.5px;
	letter-spacing: .04em; text-transform: uppercase; position: relative; white-space: nowrap; transition: color .2s, background .2s;
	border-right: 1px solid rgba(255, 255, 255, .08);
}
.sw-tab:last-child { border-right: 0; }
.sw-tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.sw-tab.is-active { color: #fff; background: rgba(0, 102, 204, .25); }
.sw-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ctcc-celeste); }
.sw-body { padding: 26px 30px 30px; }
.sw-heading h3 { font-size: 24px; margin: 0 0 2px; }
.sw-heading p { color: var(--ctcc-muted); margin: 0 0 18px; font-size: 15px; }
.sw-panel { display: none; }
.sw-panel.is-active { display: block; animation: ctccFadeUp .4s var(--ctcc-ease) both; }
.sw-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 12px; align-items: stretch; }
.sw-grid-traslado { grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr auto; }
.sw-field {
	display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 54px;
	border: 1.5px solid var(--ctcc-border); border-radius: 12px; background: #fff; color: var(--ctcc-navy);
	transition: border-color .2s, box-shadow .2s;
}
.sw-field:focus-within { border-color: var(--ctcc-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, .12); }
.sw-field input, .sw-field select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0; font-size: 15px; color: var(--ctcc-text); }
.sw-field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a2b4a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; padding-right: 18px; }
.sw-field input::placeholder { color: #8b97ab; }
.sw-submit { border-radius: 14px; padding: 0 30px; min-height: 54px; font-size: 17px; }
.sw-field.has-error { border-color: #e04848; }
