/*
 Theme Name:   Grupo Antojo
 Description:  Tema del hub de venta de entradas de Grupo Antojo: home con los próximos eventos de todas las marcas, carrito y checkout.
 Author:       Norman Reyes
 Template:     hello-elementor
 Version:      0.1.0
 Requires PHP: 8.0
 Text Domain:  grupoantojo
 */

/* Inter, la fuente del tema Arde (solo latín, en woff2). */
@font-face {
	font-family: "Inter";
	src: url("fonts/inter-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("fonts/inter-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("fonts/inter-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("fonts/inter-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("fonts/inter-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* Colores del tema Arde: fondo negro, naranja de acento, amarillo al pasar el ratón. */
:root {
	--ga-bg: #000000;
	--ga-surface: #1b1b1a;
	--ga-text: #ffffff;
	--ga-muted: #a3a3a3;
	--ga-line: #262626;
	--ga-accent: #eb5c36;
	--ga-accent-text: #ffffff;
	--ga-highlight: #ffe906;
	--ga-radius: 6px;
	--ga-width: 1140px;
	--ga-gutter: 1.25rem;
	--ga-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
	margin: 0;
	background: var(--ga-bg);
	color: var(--ga-text);
	font-family: var(--ga-font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	color: inherit;
	font-family: var(--ga-font);
}

a {
	color: inherit;
}

a:hover,
a:focus-visible {
	color: var(--ga-highlight);
}

.ga-container {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ga-width);
	margin: 0 auto;
	padding: 0 var(--ga-gutter);
}

/* Las páginas de WordPress (legales, contacto, carrito, checkout) del tema padre. */
.site-main {
	box-sizing: border-box;
	max-width: var(--ga-width);
	margin: 0 auto;
	padding: 2.5rem var(--ga-gutter) 4rem;
}

/* ---------- Cabecera ---------- */

.ga-header {
	border-bottom: 1px solid var(--ga-line);
}

.ga-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.ga-header__brand {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.ga-header__brand img {
	display: block;
	max-height: 48px;
	width: auto;
}

.ga-nav,
.ga-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ga-nav a {
	text-decoration: none;
}


.ga-nav__cart {
	padding: 0.5em 1em;
	border-radius: 999px;
	background: var(--ga-accent);
	color: var(--ga-accent-text);
}

.ga-nav__cart:hover,
.ga-nav__cart:focus-visible {
	background: #ffffff;
	color: var(--ga-accent);
}

/* ---------- Home: eventos ---------- */

.ga-events {
	padding: 3rem 0 4rem;
}

.ga-events__title {
	margin: 0 0 2rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

.ga-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

@media (max-width: 900px) {
	.ga-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ga-events__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ga-events__empty {
	color: var(--ga-muted);
}

.ga-event {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ga-line);
	border-radius: var(--ga-radius);
	background: var(--ga-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

/* El carrito subraya los enlaces de su contenido. */
.ga-event,
.ga-event * {
	text-decoration: none !important;
}

a.ga-event:hover,
a.ga-event:focus-visible {
	border-color: var(--ga-accent);
	color: inherit;
	transform: translateY(-2px);
}

.ga-event__image {
	aspect-ratio: 4 / 5;
	background: var(--ga-surface);
}

.ga-event__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ga-event__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.1rem 1.25rem 1.25rem;
}

.ga-event__brand {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ga-accent);
}

.ga-event__title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
}

.ga-event__meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ga-muted);
}

.ga-event__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.9rem;
}

.ga-event__price {
	font-weight: 700;
}

.ga-event__cta {
	padding: 0.55em 1.1em;
	border-radius: 999px;
	background: var(--ga-accent);
	color: var(--ga-accent-text);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ga-event--soldout {
	opacity: 0.6;
}

.ga-event--soldout .ga-event__cta {
	background: var(--ga-line);
	color: var(--ga-muted);
}

/* ---------- Prefooter: marcas ---------- */

.ga-brands {
	padding: 2.5rem 0;
	border-top: 1px solid var(--ga-line);
	background: var(--ga-surface);
}

.ga-brands__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ga-brands__list img {
	display: block;
	max-width: 160px;
	max-height: 64px;
	width: auto;
	height: 48px;
	object-fit: contain;
	/* Todos en blanco sobre el negro; su color original al pasar el ratón. */
	filter: brightness(0) invert(1);
	opacity: 0.8;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.ga-brands__list a:hover img,
.ga-brands__list a:focus-visible img {
	filter: none;
	opacity: 1;
}

/* ---------- Pie ---------- */

.ga-footer {
	padding: 2rem 0;
	border-top: 1px solid var(--ga-line);
	font-size: 0.8rem;
	color: var(--ga-muted);
}

.ga-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ga-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ga-footer__legal a {
	text-decoration: none;
}

.ga-footer__legal a:hover,
.ga-footer__legal a:focus-visible {
	color: var(--ga-highlight);
	text-decoration: underline;
}

.ga-footer p {
	margin: 0;
}

/* ---------- WooCommerce: carrito y checkout ---------- */

.woocommerce-cart .site-main .entry-title,
.woocommerce-checkout .site-main .entry-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.wc-block-components-button:not(.is-link),
.wp-element-button,
.woocommerce .button {
	border-radius: 999px !important;
	background: var(--ga-accent) !important;
	color: var(--ga-accent-text) !important;
	text-decoration: none !important;
}

.wc-block-components-button:not(.is-link):hover,
.wp-element-button:hover,
.woocommerce .button:hover {
	background: #ffffff !important;
	color: var(--ga-accent) !important;
}

/* Datos del evento (Fecha, Lugar, Incluye) bajo el nombre de cada entrada. */
.wc-block-components-product-details {
	margin-top: 0.35rem;
	font-size: 0.875rem;
}

.wc-block-components-product-details li {
	margin-bottom: 0.15rem;
}

/* Carrito vacío: mensaje y carrusel de próximos eventos. */
.ga-cart-empty__title {
	margin: 1rem 0 3rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	text-align: center;
}

.ga-carousel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.ga-carousel__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	text-transform: uppercase;
}

.ga-carousel__nav {
	display: flex;
	gap: 0.5rem;
}

.ga-carousel__btn {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--ga-text);
	border-radius: 999px;
	background: transparent;
	color: var(--ga-text);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.ga-carousel__btn:hover,
.ga-carousel__btn:focus-visible {
	background: var(--ga-text);
	color: var(--ga-bg);
}

.ga-carousel__track {
	display: grid;
	grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
	grid-auto-flow: column;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.ga-carousel__track::-webkit-scrollbar {
	display: none;
}

.ga-carousel__item {
	display: flex;
	scroll-snap-align: start;
}

.ga-carousel__item .ga-event {
	flex: 1;
}

@media (max-width: 900px) {
	.ga-carousel__track {
		grid-auto-columns: calc((100% - 1.5rem) / 2);
	}
}

@media (max-width: 600px) {
	.ga-carousel__track {
		grid-auto-columns: 85%;
	}
}

/* Los campos del checkout son blancos: sus etiquetas no pueden heredar el blanco del texto. */
.wc-block-components-text-input label,
.wc-blocks-components-select__label,
.wc-block-components-combobox label {
	color: #6b6b6b !important;
}
