/*
 Theme Name:   ETM Template
 Theme URI:    https://expotequilamezcal.com
 Description:  Tema base 100% width para Expo Tequila & Mezcal. Diseñado para funcionar al 100% con el plugin ETM Pages. Header y footer editables manualmente.
 Author:       ETM
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  extm-template
*/

/* ==========================================================================
   Reset y contenedor 100% width — el plugin controla todo el contenido
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	width: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
	background: #0f0f14; /* Coincide con --extm-dark: evita barra blanca en móvil */
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Contenedor global: 100% width, sin max-width ni sidebars */
.site {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Área principal: ocupa todo el ancho */
.main-content,
.etm-page-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Asegurar que bloques/shortcodes del plugin no estén limitados por el tema */
.entry-content,
.post-inner {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Header/footer: tú los editas; el tema solo deja espacio sin restringir ancho */
.site-header,
.site-footer {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-header .header-inner,
.site-footer .footer-inner {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0 1rem;
}

/* ==========================================================================
   Header: estilo KanduPay — barra pill flotante, sticky, transparente / sólida
   ========================================================================== */

.extm-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 16px 20px 0;
	transition: background 0.35s ease, box-shadow 0.35s ease;
	pointer-events: none;
}

.extm-header__wrap {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	pointer-events: auto;
}

.extm-header__pill {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 10px 12px 10px 24px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
	transition: background 0.35s ease, box-shadow 0.35s ease;
}

.extm-header.extm-header--scrolled .extm-header__pill {
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.extm-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.extm-header__logo img {
	display: block;
	height: 44px;
	width: auto;
	transition: opacity 0.25s ease;
}

.extm-header__logo:hover img {
	opacity: 0.9;
}

.extm-header.extm-header--scrolled .extm-header__logo img {
	filter: none;
}

.extm-header__nav {
	display: flex;
	align-items: center;
}

/* Botones de idioma siempre habilitados (visible y clicable) */
.extm-header__lang {
	position: relative;
	z-index: 10;
	pointer-events: auto;
}

.extm-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.extm-header__menu a {
	display: block;
	padding: 6px 4px;
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.extm-header__menu .current-menu-item a,
.extm-header__menu a:active {
	color: inherit;
}

.extm-header__menu a:hover {
	color: #5ec8c4;
}

/* Submenú Galería (Dallas / Houston) - solo hover en desktop */
.extm-menu-item-has-children {
	position: relative;
}
.extm-menu-item__link--has-children {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.extm-submenu-arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin-left: 2px;
	transition: transform 0.2s ease;
}
@media (hover: hover) {
	.extm-menu-item-has-children:hover .extm-submenu-arrow {
		transform: rotate(180deg);
	}
}
.extm-header__submenu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 6px;
	padding: 8px 0;
	min-width: 140px;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	list-style: none;
	margin-left: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 100;
}
@media (hover: hover) {
	.extm-menu-item-has-children:hover .extm-header__submenu {
		opacity: 1;
		visibility: visible;
	}
}
.extm-header__submenu li {
	margin: 0;
}
.extm-header__submenu a {
	display: block;
	padding: 10px 16px;
	font-size: 11px;
	color: #1f2937;
	white-space: nowrap;
}
.extm-header__submenu a:hover {
	color: #0a1628;
	background: rgba(94, 200, 196, 0.12);
}
.extm-header.extm-header--scrolled .extm-header__submenu {
	background: #fff;
}
.extm-header.extm-header--scrolled .extm-header__submenu a {
	color: #1f2937;
}
.extm-header.extm-header--scrolled .extm-header__submenu a:hover {
	color: #0a1628;
}

.extm-header.extm-header--scrolled .extm-header__menu a {
	color: #1f2937;
}

.extm-header.extm-header--scrolled .extm-header__menu a:hover {
	color: #0a1628;
}

.extm-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 50px;
	background: #E4007C;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
	transition: background 0.25s ease, transform 0.2s ease;
}

.extm-header__cta:hover {
	background: #c9006b;
	color: #fff;
	transform: scale(1.02);
}

.extm-header__cta--drawer {
	display: none;
}

.extm-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1002;
	transition: background 0.2s ease;
}

.extm-header__toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.extm-header__toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.extm-header__toggle.active span:nth-child(2) {
	opacity: 0;
}

.extm-header__toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

.extm-header.extm-header--scrolled .extm-header__toggle {
	background: rgba(31, 41, 55, 0.1);
}

.extm-header.extm-header--scrolled .extm-header__toggle span {
	background: #1f2937;
}

/* Móvil: hamburger + drawer */
@media (max-width: 968px) {
	.extm-header {
		padding: 12px 16px 0;
	}

	.extm-header__pill {
		padding: 10px 14px 10px 18px;
		gap: 16px;
	}

	.extm-header__menu {
		gap: 0 18px;
	}

	.extm-header__menu a {
		font-size: 10px;
	}

	.extm-header__cta {
		padding: 8px 18px;
		font-size: 13px;
	}
}

@media (max-width: 768px) {
	.extm-header {
		top: 0;
		padding: 16px;
	}

	.extm-header.extm-header--scrolled {
		top: 0;
	}

	.extm-header__wrap {
		justify-content: space-between;
	}

	.extm-header__pill {
		flex: 1;
		max-width: calc(100% - 56px);
		justify-content: flex-start;
		padding: 10px 16px;
	}

	.extm-header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 85%;
		max-width: 320px;
		height: 100vh;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 80px 24px 32px;
		gap: 0;
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
		transition: right 0.35s ease;
		z-index: 1001;
		border-radius: 0;
	}

	.extm-header__nav.active {
		right: 0;
	}

	.extm-header__overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		border: none;
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s ease, visibility 0.35s ease;
		z-index: 1000;
		pointer-events: none;
	}

	.extm-header__nav.active .extm-header__overlay {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.extm-header__nav .extm-header__menu,
	.extm-header__nav .extm-header__cta--drawer {
		position: relative;
		z-index: 1001;
	}

	.extm-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.extm-header__menu a {
		padding: 14px 0;
		font-size: 13px;
		color: #1f2937;
		border-bottom: 1px solid #e5e7eb;
	}

	.extm-header__menu a:hover {
		color: #0a1628;
		padding-left: 8px;
	}

	/* Submenú en móvil: siempre visible, debajo de Galería */
	.extm-menu-item-has-children .extm-header__submenu {
		position: static;
		transform: none;
		margin-top: 0;
		padding: 0 0 0 16px;
		opacity: 1;
		visibility: visible;
		background: transparent;
		box-shadow: none;
		border-radius: 0;
		border: none;
	}
	.extm-menu-item-has-children .extm-header__submenu a {
		padding: 10px 0;
		font-size: 12px;
		color: #6b7280;
		border-bottom: 1px solid #e5e7eb;
	}
	.extm-menu-item-has-children .extm-header__submenu a:hover {
		background: transparent;
		color: #0a1628;
	}

	.extm-header__cta {
		margin-top: 16px;
		text-align: center;
		padding: 14px;
		border-radius: 12px;
	}

	.extm-header__pill .extm-header__cta--pill {
		display: none;
	}

	.extm-header__nav .extm-header__cta--drawer {
		display: inline-flex;
		margin-top: 16px;
	}

	.extm-header__toggle {
		display: flex;
	}
}

/* ==========================================================================
   Footer: logo, sponsors, enlaces, redes, legal
   ========================================================================== */

.extm-footer-inner {
	background: #0a1628;
	color: rgba(255, 255, 255, 0.85);
	padding: 2rem 1.5rem;
	text-align: center;
}

.extm-footer-top {
	margin-bottom: 1.5rem;
}

.extm-footer-logo img {
	display: inline-block;
	height: 36px;
	width: auto;
	margin-bottom: 1rem;
}

.extm-footer-sponsors-title {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1rem;
	opacity: 0.9;
}

.extm-footer-sponsors-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.extm-footer-sponsor-logo {
	aspect-ratio: 1;
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.extm-footer-links,
.extm-footer-social {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.25rem;
}

.extm-footer-links a,
.extm-footer-social a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.9rem;
}

.extm-footer-links a:hover,
.extm-footer-social a:hover {
	color: #5ec8c4;
}

.extm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1rem;
}

.extm-footer-legal,
.extm-footer-copy {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	opacity: 0.8;
}

.extm-footer-legal a {
	color: inherit;
	text-decoration: none;
}
