/*
Theme Name: Viago
Theme URI: https://viago.cl
Author: Brend Estudio
Author URI: https://brend.cl
Description: Tema a medida para Viago, agencia de viajes especializada en Brasil. Incluye portada, viaje grupal, planes listos, viaje a medida, acceso para viajeros (guía del viaje) y panel del equipo.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: viago
*/

html, body { margin: 0; padding: 0; }
body { background: #F2F2F2; color: #111111; font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }

/* Menú tipo hamburguesa (solo celulares) */
.viago-hamb { display: none; }
.vmm[hidden] { display: none !important; }
.vmm { position: fixed; inset: 8px; z-index: 9999; display: flex; flex-direction: column; gap: 28px; padding: 22px; border-radius: 28px; background: #111111; color: #FFFFFF; font-family: 'Inter', system-ui, sans-serif; opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); overflow-y: auto; box-sizing: border-box; }
.vmm.abierto { opacity: 1; transform: none; }
.vmm-cab { display: flex; align-items: center; justify-content: space-between; }
.vmm-cab img { display: block; height: 54px; width: auto; }
.vmm-cerrar { width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vmm-links { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.vmm-links a { color: #FFFFFF; opacity: .55; text-decoration: none; font-size: 34px; font-weight: 700; letter-spacing: -.03em; padding: 6px 0; }
.vmm-links a.on, .vmm-links a:hover { opacity: 1; }
.vmm-acc { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.vmm-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #FFFFFF; font-weight: 700; font-size: 15px; text-decoration: none; }
.vmm-btn-blanco { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }

@media (max-width: 760px) {
	nav[aria-label="Principal"] { top: 16px !important; left: 16px !important; right: 16px !important; flex-wrap: nowrap !important; }
	nav[aria-label="Principal"] > a:first-child img { height: 54px !important; margin-bottom: -10px !important; }
	nav[aria-label="Principal"] #menu { display: none !important; }
	nav[aria-label="Principal"] > div:last-child { gap: 8px !important; }
	nav[aria-label="Principal"] > div:last-child .btn:not(.viago-acceso) { display: none !important; }
	.viago-acceso { width: 46px; height: 46px; padding: 0 !important; justify-content: center; }
	.viago-acceso svg { width: 19px; height: 19px; }
	.viago-acceso-txt { display: none; }
	.viago-hamb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: #FFFFFF; cursor: pointer; }
	.viago-hamb span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #111111; }
}

/* Portadas de las páginas interiores en celulares */
@media (max-width: 760px) {
	section[style*="height: 540px"] { height: auto !important; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; }
	section[style*="height: 540px"] > .aparece.d1 { position: relative !important; left: auto !important; right: auto !important; bottom: auto !important; padding: 110px 20px 24px; }
	section[style*="height: 540px"] h1 { font-size: 52px !important; }
	section[style*="height: 540px"] p { font-size: 16px !important; }
	section[style*="height: 540px"] li { font-size: 13px !important; padding: 8px 12px !important; }
}

/* ===== Celulares: más aire y todo ordenado ===== */
@media (max-width: 760px) {
	/* Bordes de la página más finos */
	.viago-raiz { padding: 8px !important; }

	/* Portada: foto propia para celular arriba y el texto debajo, sobre fondo oscuro */
	section[aria-label="Portada"] { height: auto !important; min-height: 0 !important; max-height: none !important; background: #0F1417 !important; display: flex; flex-direction: column; }
	section[aria-label="Portada"] .viago-banner-img { position: relative !important; inset: auto !important; display: block; width: 100% !important; height: auto !important; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
	section[aria-label="Portada"] > div[aria-hidden="true"] { background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 22%) !important; }
	section[aria-label="Portada"] > .aparece.d1 { position: relative !important; left: auto !important; right: auto !important; bottom: auto !important; max-width: none !important; gap: 10px !important; padding: 6px 20px 30px; }
	section[aria-label="Portada"] > .aparece.d1 p:first-child { font-size: 32px !important; }
	section[aria-label="Portada"] > .aparece.d1 p:last-child { font-size: 16px !important; }

	/* En celular no se muestran los pasos: se pasa directo a "Elige cómo vivir Brasil" */
	.pasos-cotiza { display: none !important; }

	ul[aria-label="Garantías"] { margin-top: 24px !important; padding: 0 12px !important; justify-content: flex-start !important; gap: 12px 20px !important; font-size: 14px !important; }
	#formas { margin-top: 40px !important; padding: 0 4px !important; }
	#formas h2 { font-size: 34px !important; }
	.carta { height: 480px !important; }

	/* Sección del avión */
	#vuelo { border-radius: 32px !important; }
	#vuelo > div[data-tpl*="margin-top"] { padding: 140px 16px 360px !important; gap: 150px !important; }
	#vuelo h2 { font-size: 40px !important; }
	#vuelo > div > p:last-child { font-size: 32px !important; }
	#vuelo [data-tpl*="avionT"] { width: 300px !important; }
	#vuelo [id^="paso-"] { max-width: 320px !important; justify-self: center !important; }

	/* Historias */
	#historias { padding: 56px 20px !important; border-radius: 32px !important; }
	#historias h2 { font-size: 36px !important; }

	/* Cierre con video */
	#cierre { min-height: 0 !important; padding: 200px 20px 28px !important; gap: 56px !important; border-radius: 32px !important; }
	#cierre h2 { font-size: 44px !important; }
	#cierre > div, #cierre > div > div { min-width: 0; max-width: 100% !important; }
	#cierre p { font-size: 17px !important; }
	#cierre span[style*="backdrop-filter"] { font-size: 12px !important; white-space: normal; }

	/* Secciones blancas de las páginas interiores */
	.viago-raiz section[style*="padding: 40px"] { padding: 28px 20px !important; border-radius: 28px !important; }
	.viago-raiz section[style*="padding: 40px"] h2 { font-size: 28px !important; }
}

/* Tarjetas de planes y formas de viajar en una columna en pantallas chicas */
@media (max-width: 960px) {
	.cartas, .grid3 { grid-template-columns: 1fr !important; }
}

/* Pantallas medianas (notebooks chicos y tablets): el título de la portada más angosto para no tocar el Cristo */
@media (min-width: 761px) and (max-width: 1300px) {
	section[aria-label="Portada"] > .aparece.d1 { max-width: 40vw !important; }
	section[aria-label="Portada"] > .aparece.d1 p:first-child { font-size: clamp(30px, 3.2vw, 42px) !important; }
	section[aria-label="Portada"] > .aparece.d1 p:last-child { font-size: 16px !important; }
}
@media (min-width: 761px) and (max-width: 1200px) {
	nav[aria-label="Principal"] > div:last-child .btn-glass:not(.viago-acceso) { display: none !important; }
	nav[aria-label="Principal"] #menu a { padding: 9px 12px !important; }
}
