/* ════════════════════════════════════════════════════════
   GLOBAL NAILS — Marketplace Style v2.0
   Cargado como asset del plugin global-nails-core (no pegar en WPCode)
   Paleta real de marca (extraída de fotos de producto reales):
   teal/petróleo + cobre/rose-gold + dorado
   ════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
	--gn-dark:    #0a2e2f;
	--gn-navy:    #123f42;
	--gn-pink:    #1fa39a;
	--gn-pink-h:  #178a82;
	--gn-gold:    #cfa15b;
	--gn-purple:  #c17a4e;
	--gn-blue:    #1fa39a;
	--gn-white:   #ffffff;
	--gn-light:   #eaf7f5;
	--gn-border:  #dde8e6;
	--gn-text:    #0d1f1e;
	--gn-muted:   #6b7b7a;
	--gn-radius:  10px;
	--gn-shadow:  0 2px 12px rgba(0,0,0,.08);
	--gn-shadow-h:0 8px 32px rgba(0,0,0,.16);
}

/* ─── BANNER MAYORISTA STICKY ────────────────────────── */
.gn-mayor-bar {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: linear-gradient(90deg, var(--gn-dark) 0%, #123f42 50%, var(--gn-dark) 100%);
	color: #fff;
	text-align: center;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2px;
	border-bottom: 2px solid var(--gn-pink);
}
.gn-mayor-bar a {
	color: var(--gn-pink);
	text-decoration: none;
	font-weight: 700;
	border-bottom: 1px dotted var(--gn-pink);
	margin-left: 6px;
	transition: color .2s;
}
.gn-mayor-bar a:hover { color: #fff; }
.gn-mayor-bar .gn-bar-dismiss {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

/* ─── HERO DUAL CTA ─────────────────────────────────── */
.gn-hero {
	background: linear-gradient(135deg, #0a2e2f 0%, #123f42 40%, #0a2e2f 100%);
	padding: 64px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.gn-hero::before {
	content: '';
	position: absolute;
	top: -60px; right: -60px;
	width: 300px; height: 300px;
	background: radial-gradient(circle, rgba(31,163,154,.15) 0%, transparent 70%);
	border-radius: 50%;
}
.gn-hero-tag {
	display: inline-block;
	background: rgba(31,163,154,.15);
	border: 1px solid rgba(31,163,154,.4);
	color: var(--gn-pink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 16px;
}
.gn-hero h1 {
	color: #fff;
	font-size: clamp(26px, 5vw, 48px);
	font-weight: 900;
	line-height: 1.15;
	margin: 0 0 16px;
}
.gn-hero h1 span { color: var(--gn-pink); }
.gn-hero p {
	color: rgba(255,255,255,.65);
	font-size: 16px;
	max-width: 520px;
	margin: 0 auto 32px;
	line-height: 1.6;
}
.gn-hero-ctas {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.gn-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gn-pink);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: var(--gn-radius);
	text-decoration: none !important;
	transition: all .2s;
	border: none;
	cursor: pointer;
}
.gn-btn-primary:hover {
	background: var(--gn-pink-h);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(31,163,154,.4);
}
.gn-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	padding: 13px 28px;
	border-radius: var(--gn-radius);
	text-decoration: none !important;
	border: 2px solid rgba(255,255,255,.3);
	transition: all .2s;
	cursor: pointer;
}
.gn-btn-outline:hover {
	border-color: #fff;
	background: rgba(255,255,255,.08);
	transform: translateY(-2px);
}

/* ─── TRUST BADGES ──────────────────────────────────── */
.gn-trust-bar {
	background: var(--gn-light);
	border-top: 1px solid var(--gn-border);
	border-bottom: 1px solid var(--gn-border);
	padding: 12px 24px;
}
.gn-trust-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
	max-width: 900px;
	margin: 0 auto;
}
.gn-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gn-text);
}
.gn-trust-item .ti { font-size: 18px; }

/* ─── SHOP GRID MARKETPLACE ─────────────────────────── */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff;
	border: 1px solid var(--gn-border);
	border-radius: var(--gn-radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	padding: 0 !important;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	box-shadow: var(--gn-shadow-h);
	transform: translateY(-3px);
}

/* Imagen con overlay de acción rápida */
.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: transform .3s;
}
.woocommerce ul.products li.product:hover a img {
	transform: scale(1.04);
}

/* Área de texto del producto */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-category__title {
	padding: 12px 12px 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--gn-text) !important;
	line-height: 1.3 !important;
	margin: 0 !important;
}

/* Precio */
.woocommerce ul.products li.product .price {
	padding: 0 12px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: var(--gn-text) !important;
	margin: 0 !important;
}
.woocommerce ul.products li.product .price del {
	color: #aaa !important;
	font-weight: 400 !important;
	font-size: 12px !important;
}
.woocommerce ul.products li.product .price ins {
	text-decoration: none !important;
}

/* Botón Add to Cart */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
	display: block !important;
	margin: 10px 12px 12px !important;
	width: calc(100% - 24px) !important;
	background: var(--gn-dark) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-align: center !important;
	transition: background .2s !important;
	cursor: pointer !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
	background: var(--gn-pink) !important;
}
.woocommerce ul.products li.product .button.added {
	background: #059669 !important;
}

/* ─── BADGES EN PRODUCTOS ────────────────────────────── */
.gn-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 3px 9px;
	border-radius: 4px;
	color: #fff;
	pointer-events: none;
}
.gn-badge-nuevo    { background: var(--gn-blue); }
.gn-badge-hot      { background: var(--gn-pink); }
.gn-badge-oferta   { background: #dc2626; }
.gn-badge-agotado  { background: #6b7280; }
.gn-badge-exclusivo{ background: var(--gn-gold); color: #1a1a2e; }

/* Insignia de sale nativa de WooCommerce */
.woocommerce ul.products li.product .onsale {
	background: var(--gn-pink) !important;
	border-radius: 4px !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	top: 10px !important;
	left: 10px !important;
	min-width: auto !important;
	min-height: auto !important;
	padding: 3px 9px !important;
	line-height: 1.4 !important;
}

/* ─── FILTROS DE CATEGORÍA (barra encima del grid) ───── */
.gn-filter-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 0;
	flex-wrap: wrap;
}
.gn-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1.5px solid var(--gn-border);
	color: var(--gn-text);
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 20px;
	cursor: pointer;
	transition: all .2s;
	text-decoration: none;
}
.gn-filter-btn:hover,
.gn-filter-btn.active {
	background: var(--gn-dark);
	border-color: var(--gn-dark);
	color: #fff;
}
.gn-filter-count {
	display: inline-block;
	background: rgba(255,255,255,.2);
	border-radius: 10px;
	font-size: 10px;
	padding: 1px 6px;
}

/* ─── BARRA PROGRESO ENVÍO GRATIS (carrito) ─────────── */
.gn-shipping-bar {
	background: var(--gn-light);
	border-radius: var(--gn-radius);
	padding: 14px 16px;
	margin-bottom: 16px;
	border: 1px solid var(--gn-border);
}
.gn-shipping-bar p { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.gn-shipping-track {
	height: 6px;
	background: #e0e0ec;
	border-radius: 3px;
	overflow: hidden;
}
.gn-shipping-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--gn-pink), var(--gn-purple));
	border-radius: 3px;
	transition: width .4s ease;
}

/* ─── PRECIO DUAL MAYORISTA ──────────────────────────── */
.gn-price-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.gn-retail-price {
	color: #aaa !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	text-decoration: line-through !important;
}
.gn-mayor-price ins { text-decoration: none !important; color: var(--gn-text) !important; }
.gn-tier-badge {
	display: inline-block;
	font-size: 9px;
	padding: 2px 8px;
	border-radius: 12px;
	color: #fff;
	font-weight: 800;
	letter-spacing: .3px;
	vertical-align: middle;
}

/* ─── POPUP DE CAPTACIÓN ─────────────────────────────── */
.gn-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .3s;
	pointer-events: none;
}
.gn-popup-overlay.visible {
	opacity: 1;
	pointer-events: all;
}
.gn-popup {
	background: var(--gn-navy);
	border-radius: 16px;
	padding: 36px 32px;
	max-width: 460px;
	width: 100%;
	position: relative;
	transform: translateY(20px);
	transition: transform .3s;
}
.gn-popup-overlay.visible .gn-popup { transform: translateY(0); }
.gn-popup-close {
	position: absolute;
	top: 12px; right: 16px;
	font-size: 24px;
	color: #666;
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
}
.gn-popup-emoji { font-size: 40px; display: block; text-align: center; margin-bottom: 12px; }
.gn-popup h2 { color: #fff; text-align: center; font-size: 22px; margin: 0 0 8px; }
.gn-popup p  { color: #aaa; text-align: center; font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
.gn-popup .gn-btn-primary { width: 100%; justify-content: center; }
.gn-popup-skip {
	display: block;
	text-align: center;
	margin-top: 12px;
	font-size: 12px;
	color: #555;
	cursor: pointer;
}
.gn-popup-skip:hover { color: #aaa; }

/* ─── FICHA DE PRODUCTO ──────────────────────────────── */
.woocommerce div.product .gn-wa-cta {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 20px;
	border-radius: var(--gn-radius);
	text-decoration: none !important;
	margin-top: 12px;
	transition: background .2s;
}
.woocommerce div.product .gn-wa-cta:hover { background: #1da851; }
.woocommerce div.product .gn-wa-cta svg { flex-shrink: 0; }

/* ─── SECCIÓN "POR QUÉ SOMOS MAYORISTAS" ────────────── */
.gn-why-section {
	background: var(--gn-dark);
	color: #fff;
	padding: 56px 24px;
	text-align: center;
}
.gn-why-section h2 { font-size: 28px; margin: 0 0 8px; }
.gn-why-section p.sub { color: rgba(255,255,255,.6); font-size: 15px; margin: 0 0 40px; }
.gn-why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	max-width: 900px;
	margin: 0 auto;
}
.gn-why-card {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: var(--gn-radius);
	padding: 28px 20px;
}
.gn-why-card .icon { font-size: 32px; margin-bottom: 12px; }
.gn-why-card h3 { font-size: 16px; margin: 0 0 8px; }
.gn-why-card p  { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; margin: 0; }

/* ─── PANEL MAYORISTA (Mi Cuenta) ────────────────────── */
.gn-panel-wrap { max-width: 700px; }

.gn-panel-tier {
	border: 2px solid;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
}
.gn-tier-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	color: #fff;
}
.gn-tier-emoji { font-size: 36px; flex-shrink: 0; }
.gn-tier-name  { font-size: 20px; font-weight: 800; margin: 0; }
.gn-tier-disc  { font-size: 14px; opacity: .85; margin: 2px 0 0; }

.gn-tier-progress { padding: 20px 24px; background: #f9f9ff; }
.gn-prog-labels {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}
.gn-prog-bar {
	height: 8px;
	background: #e0e0ec;
	border-radius: 4px;
	overflow: hidden;
}
.gn-prog-fill {
	height: 100%;
	border-radius: 4px;
	transition: width .6s ease;
}
.gn-prog-hint { font-size: 12px; color: var(--gn-muted); margin: 8px 0 0; }
.gn-gold-msg   { padding: 20px 24px; font-size: 15px; color: var(--gn-gold); font-weight: 600; margin: 0; }

.gn-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
.gn-stat {
	background: #f9f9ff;
	border: 1px solid var(--gn-border);
	border-radius: var(--gn-radius);
	padding: 16px;
	text-align: center;
}
.gn-stat-label { font-size: 11px; color: var(--gn-muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 4px; }
.gn-stat-value { font-size: 20px; font-weight: 800; color: var(--gn-text); margin: 0; }

.gn-credito-card,
.gn-tracking-card {
	background: #fff;
	border: 1px solid var(--gn-border);
	border-radius: var(--gn-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
}
.gn-credito-card h3,
.gn-tracking-card h3 { margin: 0 0 12px; font-size: 16px; }
.gn-credito-aprobado { color: #059669; font-weight: 700; font-size: 16px; }
.gn-credito-revision { color: var(--gn-gold); font-size: 14px; }
.gn-credito-hint     { font-size: 13px; color: var(--gn-muted); margin-top: 8px; }

.gn-tracking-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gn-tracking-table th { text-align: left; padding: 6px 8px; color: var(--gn-muted); font-size: 11px; text-transform: uppercase; border-bottom: 2px solid var(--gn-border); }
.gn-tracking-table td { padding: 10px 8px; border-bottom: 1px solid var(--gn-border); }
.gn-track-btn {
	display: inline-block;
	background: var(--gn-dark);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 4px;
	text-decoration: none !important;
}
.gn-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f0f0f8;
}
.gn-status-processing { background: #fef3c7; color: #92400e; }
.gn-status-completed  { background: #d1fae5; color: #065f46; }
.gn-status-shipped    { background: #dbeafe; color: #1e40af; }
.gn-no-track { color: #ccc; }
.gn-no-orders { color: var(--gn-muted); }
.gn-no-orders a { color: var(--gn-pink); }

/* ─── FORMULARIO DE REGISTRO MAYORISTA ───────────────── */
.gn-reg-mayo { margin: 20px 0; }
.gn-reg-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: linear-gradient(135deg, #0a2e2f, #123f42);
	border: 1px solid rgba(31,163,154,.3);
	border-radius: var(--gn-radius);
	padding: 16px;
	margin-bottom: 12px;
}
.gn-reg-icon { font-size: 28px; flex-shrink: 0; }
.gn-reg-banner strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.gn-reg-banner p { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }

.gn-check-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	margin-bottom: 16px;
}
.gn-check-label input { width: 18px; height: 18px; accent-color: var(--gn-pink); }

.gn-extra {
	background: var(--gn-light);
	border: 1px solid var(--gn-border);
	border-radius: var(--gn-radius);
	padding: 20px;
	animation: slideDown .25s ease;
}
@keyframes slideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECCIONES DE SHORTCODES DE LANDING ─────────────── */
.gn-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.gn-eyebrow { color: var(--gn-purple); font-weight: 700; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.gn-section-head h2 { font-size: 32px; margin: 10px 0 10px; color: var(--gn-text); }
.gn-section-head .sub { color: var(--gn-muted); font-size: 14.5px; margin: 0; }

.gn-vitrina, .gn-testimonios, .gn-tiers-section, .gn-aliados { padding: 64px 24px; max-width: 1180px; margin: 0 auto; }

.gn-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.gn-testi-card { background: #fff; border: 1px solid var(--gn-border); border-radius: var(--gn-radius); padding: 26px; box-shadow: var(--gn-shadow); }
.gn-testi-stars { color: var(--gn-gold); letter-spacing: 2px; margin-bottom: 12px; }
.gn-testi-card p { font-size: 14px; line-height: 1.7; color: var(--gn-text); margin: 0 0 18px; }
.gn-testi-who strong { display: block; font-size: 13.5px; }
.gn-testi-who span { font-size: 12px; color: var(--gn-muted); }

.gn-aliados { text-align: center; }
.gn-aliados-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 20px; color: var(--gn-muted); font-weight: 600; font-size: 13.5px; }

.gn-tiers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.gn-tier-card { border: 2px solid var(--gn-border); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.gn-tier-card:hover { transform: translateY(-5px); box-shadow: var(--gn-shadow-h); }
.gn-tier-head { padding: 24px; color: #fff; text-align: left; }
.gn-tc-emoji { font-size: 26px; display: block; margin-bottom: 6px; }
.gn-tc-name { font-size: 19px; font-weight: 800; }
.gn-tc-req { font-size: 11.5px; opacity: .85; margin-top: 2px; }
.gn-tc-disc { font-size: 38px; font-weight: 900; margin-top: 8px; }
.gn-tc-disc span { font-size: 15px; font-weight: 600; }
.gn-tc-body { padding: 20px 24px; }
.gn-tiers-note { max-width: 720px; margin: 32px auto 0; background: #fff7ec; border: 1px dashed var(--gn-gold); color: #8a6329; padding: 14px 20px; border-radius: 12px; font-size: 13px; text-align: center; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 600px) {
	.gn-testi-grid, .gn-tiers-grid { grid-template-columns: 1fr; }
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
	.gn-hero { padding: 40px 16px; }
	.gn-hero h1 { font-size: 24px; }
	.gn-stats-grid { grid-template-columns: 1fr; }
	.gn-trust-inner { gap: 16px; }
	.gn-panel-wrap { max-width: 100%; }
}

@media (max-width: 360px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: 1fr !important;
	}
}
