/* ============================================================
   GECOTEL Shop · estilo Correos Market
   Las variables de color se inyectan desde el admin (wp_head).
   ============================================================ */
.gcx-shop, .gcx-woo-wrap, .gcx-single-trust, .gcx-trust {
    --yellow: #FFB700;
    --yellow-soft: #fff6df;
    --red: #dc3545;
    --wine: #2a0b10;
    --ink: #211f27;
    --body: #5c5964;
    --soft: #f7f8fa;
    --line: #e9e9ef;
    --ease: cubic-bezier(.22,.61,.36,1);
    --shadow: 0 12px 34px -18px rgba(33,31,39,.16);
    --gcx-cols: 4;
}
.gcx-shop, .gcx-shop * { box-sizing: border-box; }
.gcx-shop {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--body);
    line-height: 1.6;
}
.gcx-shop img { max-width: 100%; display: block; }
.gcx-shop a { text-decoration: none; color: inherit; }
.gcx-shop h1, .gcx-shop h2, .gcx-shop h3, .gcx-shop h4 { font-family: 'Sora', sans-serif; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); }
.gcx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.gcx-empty { padding: 40px 0; text-align: center; color: var(--body); }

/* botones */
.gcx-shop .gcx-btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: .95rem;
    padding: 14px 26px; border-radius: 100px; cursor: pointer; border: none;
    transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.gcx-shop .gcx-btn-solid { background: var(--yellow); color: var(--wine); }
.gcx-shop .gcx-btn-solid:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(255,183,0,.4); }
.gcx-link { font-family: 'Sora', sans-serif; font-weight: 700; font-size: .9rem; color: var(--wine); display: inline-flex; align-items: center; gap: 8px; }
.gcx-link i { transition: transform .3s; }
.gcx-link:hover { color: var(--red); }
.gcx-link:hover i { transform: translateX(4px); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.gcx-hero { position: relative; background: var(--wine); overflow: hidden; }
.gcx-slider { position: relative; width: 100%; height: 62vh; min-height: 420px; overflow: hidden; }
.gcx-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.gcx-slide.is-active { opacity: 1; visibility: visible; }
.gcx-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gcx-slide.is-active .gcx-slide-bg { animation: gcxKen 9s ease-out both; }
@keyframes gcxKen { from { transform: scale(1.1); } to { transform: scale(1); } }
.gcx-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(42,11,16,.86) 0%, rgba(42,11,16,.6) 34%, rgba(42,11,16,.2) 66%, rgba(42,11,16,0) 100%); }
.gcx-slide-content { position: relative; z-index: 2; width: 100%; color: #fff; padding-left: max(32px, calc((100% - 1200px)/2 + 32px)); padding-right: 32px; }
.gcx-slide-content > * { max-width: 560px; }
.gcx-tag { font-family: 'Sora', sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; display: block; }
.gcx-slide h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.gcx-slide p { font-size: 1.05rem; color: rgba(255,255,255,.9); margin-bottom: 26px; }
.gcx-slide.is-active .gcx-tag, .gcx-slide.is-active h1, .gcx-slide.is-active p, .gcx-slide.is-active .gcx-slide-actions { animation: gcxUp .7s var(--ease) both; }
.gcx-slide.is-active h1 { animation-delay: .1s; }
.gcx-slide.is-active p { animation-delay: .18s; }
.gcx-slide.is-active .gcx-slide-actions { animation-delay: .26s; }
@keyframes gcxUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.gcx-dots { position: absolute; bottom: 26px; left: max(32px, calc((100% - 1200px)/2 + 32px)); display: flex; gap: 10px; z-index: 4; }
.gcx-dots button { width: 32px; height: 5px; border-radius: 6px; border: none; cursor: pointer; background: rgba(255,255,255,.35); transition: .3s; }
.gcx-dots button.active { background: var(--yellow); width: 50px; }

/* ============================================================
   ACCESOS RÁPIDOS
   ============================================================ */
.gcx-quick { position: relative; z-index: 6; margin-top: -60px; }
.gcx-quick-inner { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gcx-quick-tile { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-radius: 16px; transition: background .3s var(--ease), transform .3s; }
.gcx-quick-tile:hover { background: var(--soft); transform: translateY(-2px); }
.gcx-quick-tile .qic { width: 50px; height: 50px; border-radius: 14px; background: var(--yellow-soft); color: var(--red); display: grid; place-items: center; font-size: 1.3rem; flex: none; transition: .3s var(--ease); }
.gcx-quick-tile:hover .qic { background: var(--yellow); color: var(--wine); }
.gcx-quick-tile b { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--ink); font-size: .98rem; display: block; }
.gcx-quick-tile small { font-size: .8rem; color: var(--body); }

/* ============================================================
   BANDA DE CONFIANZA
   ============================================================ */
.gcx-trust { background: var(--wine); color: #fff; margin-top: 60px; }
.gcx-trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px 32px; }
.gcx-trust-inner > div { display: flex; align-items: center; gap: 12px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: .92rem; }
.gcx-trust-inner i { color: var(--yellow); font-size: 1.3rem; }

/* ============================================================
   RAÍL DE PRODUCTOS
   ============================================================ */
.gcx-rail { padding: 56px 0 8px; position: relative; }
.gcx-rail .gcx-wrap { position: relative; }
.gcx-rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.gcx-rail-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.gcx-rail-viewport { overflow: hidden; }
.gcx-rail-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 6px; }
.gcx-rail-track::-webkit-scrollbar { display: none; }
.gcx-rail-track .gcx-pcard { flex: 0 0 250px; }
.gcx-rail-nav { position: absolute; top: 50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: .3s var(--ease); z-index: 3; }
.gcx-rail-nav:hover { background: var(--yellow); color: var(--wine); border-color: var(--yellow); }
.gcx-rail-nav.prev { left: 4px; transform: translateY(-50%); }
.gcx-rail-nav.next { right: 4px; transform: translateY(-50%); }

/* ============================================================
   TARJETA DE PRODUCTO (custom)
   ============================================================ */
.gcx-grid { display: grid; grid-template-columns: repeat(var(--gcx-cols, 4), 1fr); gap: 22px; }
.gcx-pcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; display: flex; flex-direction: column; }
.gcx-pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.gcx-pcard-media { position: relative; display: block; aspect-ratio: 1/1; background: var(--soft); overflow: hidden; }
.gcx-pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s var(--ease); }
.gcx-pcard:hover .gcx-pcard-media img { transform: scale(1.05); }
.gcx-card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 100px; }
.gcx-pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcx-pcard-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: .96rem; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.gcx-pcard-title:hover { color: var(--red); }
.gcx-pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gcx-pcard-price { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--wine); font-size: 1.15rem; }
.gcx-pcard-price del { color: #b9b3b8; font-weight: 400; font-size: .85rem; margin-right: 4px; }
.gcx-pcard-price ins { text-decoration: none; }
.gcx-card-cart { width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); color: var(--wine); display: grid; place-items: center; font-size: 1rem; flex: none; transition: .3s var(--ease); }
.gcx-card-cart:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,183,0,.4); }
.gcx-card-cart.added { background: var(--wine); color: #fff; }

/* ============================================================
   WOOCOMMERCE · TIENDA / ARCHIVO
   ============================================================ */
.gcx-woo .gcx-woo-wrap { max-width: 1200px; margin: 40px auto; padding: 0 32px; font-family: 'Inter', sans-serif; }
.gcx-woo .woocommerce-products-header__title, .gcx-woo h1.entry-title { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.gcx-woo ul.products { display: grid !important; grid-template-columns: repeat(var(--gcx-cols, 4), 1fr); gap: 22px; margin: 0; }
.gcx-woo ul.products::before, .gcx-woo ul.products::after { display: none; }
.gcx-woo ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.gcx-woo ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.gcx-woo ul.products li.product img { border-radius: 12px; background: var(--soft); }
.gcx-woo ul.products li.product .woocommerce-loop-product__title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: .98rem; color: var(--ink); padding: 12px 2px 6px; }
.gcx-woo ul.products li.product .price { color: var(--wine); font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; }
.gcx-woo ul.products li.product .price del { color: #b9b3b8; font-weight: 400; }
.gcx-woo .onsale { background: var(--red); color: #fff; border-radius: 100px; min-height: auto; min-width: auto; padding: 5px 12px; font-family: 'Sora', sans-serif; font-weight: 700; }

/* botones woo */
.gcx-woo .button, .gcx-woo a.button, .gcx-woo button.button, .gcx-woo .woocommerce-message a.button {
    background: var(--yellow) !important; color: var(--wine) !important;
    border-radius: 100px !important; font-family: 'Sora', sans-serif; font-weight: 700 !important;
    padding: 12px 24px !important; transition: transform .3s var(--ease), box-shadow .3s !important;
}
.gcx-woo .button:hover, .gcx-woo a.button:hover, .gcx-woo button.button:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(255,183,0,.4) !important; }
.gcx-woo .button.alt, .gcx-woo .single_add_to_cart_button { background: var(--wine) !important; color: #fff !important; }

/* ============================================================
   WOOCOMMERCE · FICHA DE PRODUCTO
   ============================================================ */
.gcx-woo.single-product div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.gcx-woo.single-product div.product .woocommerce-product-gallery { margin: 0; }
.gcx-woo.single-product div.product .woocommerce-product-gallery__image img { border-radius: 20px; }
.gcx-woo.single-product div.product .entry-summary { margin: 0; }
.gcx-woo.single-product .product_title { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ink); font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.gcx-woo.single-product .woocommerce-product-details__short-description { color: var(--body); }
.gcx-woo.single-product .price, .gcx-woo.single-product p.price { color: var(--wine) !important; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.8rem; }
.gcx-woo.single-product .quantity input { border-radius: 12px; border: 1px solid var(--line); padding: 10px; }
.gcx-woo.single-product .single_add_to_cart_button { padding: 15px 30px !important; font-size: 1rem !important; }
.gcx-woo.single-product .woocommerce-tabs ul.tabs { border: none; padding: 0; display: flex; gap: 10px; }
.gcx-woo.single-product .woocommerce-tabs ul.tabs li { background: var(--soft); border: 1px solid var(--line); border-radius: 100px; }
.gcx-woo.single-product .woocommerce-tabs ul.tabs li.active { background: var(--yellow); border-color: var(--yellow); }
.gcx-woo.single-product .woocommerce-tabs ul.tabs li a { color: var(--ink); font-family: 'Sora', sans-serif; font-weight: 700; }
.gcx-woo.single-product .woocommerce-tabs ul.tabs::before { display: none; }
.gcx-woo.single-product .related.products > h2, .gcx-woo.single-product .upsells > h2 { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ink); }

/* banda de confianza en ficha */
.gcx-single-trust { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0; padding: 18px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.gcx-single-trust > div { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: .88rem; color: var(--ink); }
.gcx-single-trust i { color: var(--red); font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
    .gcx-quick-inner { grid-template-columns: 1fr 1fr; }
    .gcx-grid, .gcx-woo ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .gcx-woo.single-product div.product { grid-template-columns: 1fr; gap: 30px; }
    .gcx-trust-inner { justify-content: flex-start; }
    .gcx-slider { height: 54vh; min-height: 380px; }
}
@media (max-width: 560px) {
    .gcx-wrap { padding: 0 20px; }
    .gcx-quick { margin-top: -30px; }
    .gcx-quick-inner { grid-template-columns: 1fr; }
    .gcx-grid, .gcx-woo ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .gcx-rail-track .gcx-pcard { flex: 0 0 62vw; }
    .gcx-rail-nav { display: none; }
    .gcx-slide h1 { font-size: 1.8rem; }
    .gcx-slider { height: 56vh; min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
    .gcx-shop * { animation: none !important; transition: none !important; }
}
