/*
Theme Name: Sgcpyme Theme
Theme URI: https://sgcpyme.com
Author: Sgcpyme Team
Author URI: https://sgcpyme.com
Description: Tema optimizado para SGCPYME Taller, Elementor y WooCommerce.
Version: 1.8.0
Text Domain: sgcpyme-theme
*/

:root {
  --sgc-background: #f7f9fc;
  --sgc-surface: #ffffff;
  --sgc-heading: #0a1d3a;
  --sgc-text: #334e68;
  --sgc-muted: #627d98;
  --sgc-primary: #1769aa;
  --sgc-primary-hover: #10578f;
  --sgc-primary-soft: #e9f3fb;
  --sgc-accent: #d89a00;
  --sgc-accent-hover: #b77f00;
  --sgc-accent-soft: #fff4d6;
  --sgc-border: #d9e2ec;
  --sgc-success: #168447;
  --sgc-danger: #b42318;
  --sgc-container: 1140px;
  --sgc-header-height: 78px;
  --sgc-radius-sm: 8px;
  --sgc-radius-md: 14px;
  --sgc-radius-lg: 22px;
  --sgc-shadow-sm: 0 8px 24px rgba(10, 29, 58, 0.08);
  --sgc-shadow-md: 0 18px 50px rgba(10, 29, 58, 0.12);
  --sgc-transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sgc-header-height) + 24px);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sgc-text);
  background: var(--sgc-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sgcpyme-menu-open {
  overflow: hidden;
}

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

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--sgc-primary);
}

a:hover {
  color: var(--sgc-primary-hover);
}

p {
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--sgc-heading);
  line-height: 1.15;
  text-wrap: balance;
}

.sgcpyme-container {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin-inline: auto;
}

.site-main {
  min-height: 50vh;
}

/* Accesibilidad */

.sgcpyme-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99999;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--sgc-heading);
  border-radius: var(--sgc-radius-sm);
  text-decoration: none;
  transform: translateY(-160%);
}

.sgcpyme-skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.35);
  outline-offset: 3px;
}

/* Header */

.sgcpyme-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  min-height: var(--sgc-header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(10, 29, 58, 0.08);
  box-shadow: 0 8px 30px rgba(10, 29, 58, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-bar .sgcpyme-header {
  top: 32px;
}

.sgcpyme-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--sgc-header-height);
  gap: 24px;
}

.sgcpyme-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo-link img {
  width: auto;
  max-width: 210px;
  max-height: 52px;
  object-fit: contain;
}

.sgcpyme-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sgc-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.sgcpyme-logo:hover {
  color: var(--sgc-heading);
}

.sgcpyme-logo__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--sgc-primary);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.sgcpyme-logo__text {
  white-space: nowrap;
}

.sgcpyme-desktop-navigation {
  display: none;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.sgcpyme-desktop-navigation a {
  position: relative;
  padding-block: 10px;
  color: var(--sgc-text);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--sgc-transition),
    transform var(--sgc-transition);
}

.sgcpyme-desktop-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--sgc-accent);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transition: transform var(--sgc-transition);
}

.sgcpyme-desktop-navigation a:hover {
  color: var(--sgc-primary);
}

.sgcpyme-desktop-navigation a:hover::after {
  transform: scaleX(1);
}

.sgcpyme-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.sgcpyme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--sgc-transition),
    color var(--sgc-transition),
    transform var(--sgc-transition),
    box-shadow var(--sgc-transition);
}

.sgcpyme-button:hover {
  transform: translateY(-2px);
}

.sgcpyme-button--header {
  display: none;
  color: var(--sgc-heading);
  background: var(--sgc-accent);
  box-shadow: 0 10px 22px rgba(216, 154, 0, 0.2);
}

.sgcpyme-button--header:hover {
  color: #ffffff;
  background: var(--sgc-primary);
  box-shadow: 0 12px 26px rgba(23, 105, 170, 0.24);
}

.sgcpyme-menu-toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--sgc-heading);
  background: var(--sgc-primary-soft);
  border: 1px solid rgba(23, 105, 170, 0.13);
  border-radius: 12px;
  cursor: pointer;
}

.sgcpyme-menu-toggle__line {
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform var(--sgc-transition),
    opacity var(--sgc-transition);
}

.sgcpyme-menu-toggle[aria-expanded="true"] .sgcpyme-menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sgcpyme-menu-toggle[aria-expanded="true"] .sgcpyme-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.sgcpyme-menu-toggle[aria-expanded="true"] .sgcpyme-menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú mobile */

.sgcpyme-mobile-menu {
  position: fixed;
  top: var(--sgc-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9998;
  width: 100%;
  height: calc(100dvh - var(--sgc-header-height));
  visibility: hidden;
  background: rgba(10, 29, 58, 0.52);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--sgc-transition),
    visibility var(--sgc-transition);
}

.sgcpyme-mobile-menu[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sgcpyme-mobile-menu__panel {
  width: 100%;
  max-height: 100%;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-top: 1px solid var(--sgc-border);
  box-shadow: 0 20px 40px rgba(10, 29, 58, 0.16);
  transform: translateY(-16px);
  transition: transform var(--sgc-transition);
}

.sgcpyme-mobile-menu[aria-hidden="false"] .sgcpyme-mobile-menu__panel {
  transform: translateY(0);
}

.sgcpyme-mobile-navigation {
  display: flex;
  width: min(100%, var(--sgc-container));
  margin-inline: auto;
  padding: 4px 0 20px;
  flex-direction: column;
  gap: 4px;
}

.sgcpyme-mobile-navigation > a:not(.sgcpyme-button) {
  display: flex;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  align-items: center;
  color: var(--sgc-heading);
  border-bottom: 1px solid var(--sgc-border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.sgcpyme-mobile-navigation > a:not(.sgcpyme-button):hover,
.sgcpyme-mobile-navigation > a:not(.sgcpyme-button):focus-visible {
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
}

.sgcpyme-button--mobile {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  color: var(--sgc-heading);
  background: var(--sgc-accent);
}

.sgcpyme-button--mobile:hover {
  color: #ffffff;
  background: var(--sgc-primary);
}

.admin-bar .sgcpyme-mobile-menu {
  top: calc(var(--sgc-header-height) + 32px);
  height: calc(100dvh - var(--sgc-header-height) - 32px);
}

/* Carrito del header */

.sgcpyme-cart-link {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  min-width: 46px;
  align-items: center;
  justify-content: center;
  color: var(--sgc-heading);
  background: var(--sgc-primary-soft);
  border: 1px solid rgba(23, 105, 170, 0.14);
  border-radius: 12px;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.sgcpyme-cart-link:hover {
  color: #ffffff;
  background: var(--sgc-primary);
  border-color: var(--sgc-primary);
  transform: translateY(-2px);
}

.sgcpyme-cart-link__icon {
  width: 23px;
  height: 23px;
}

.sgcpyme-cart-link__count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 21px;
  height: 21px;
  padding-inline: 5px;
  place-items: center;
  color: var(--sgc-heading);
  background: var(--sgc-accent);
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.sgcpyme-mobile-cart {
  display: flex !important;
  min-height: 52px;
  padding: 13px 15px !important;
  align-items: center;
  justify-content: space-between;
  color: var(--sgc-heading) !important;
  background: var(--sgc-primary-soft);
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700;
  text-decoration: none;
}

.sgcpyme-mobile-cart__count {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding-inline: 6px;
  place-items: center;
  color: var(--sgc-heading);
  background: var(--sgc-accent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 480px) {
  .sgcpyme-header__actions {
    gap: 8px;
  }

  .sgcpyme-cart-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .sgcpyme-cart-link__icon {
    width: 21px;
    height: 21px;
  }
}

/* Footer */

.sgcpyme-footer {
  margin-top: 80px;
  padding: 64px 0 24px;
  color: #c6d3e1;
  background:
    radial-gradient(circle at top right, rgba(23, 105, 170, 0.24), transparent 36%),
    var(--sgc-heading);
}

.sgcpyme-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}

.sgcpyme-footer__brand {
  max-width: 390px;
}

.sgcpyme-footer__logo {
  margin-bottom: 18px;
}

.sgcpyme-footer__logo .custom-logo-link img {
  max-width: 190px;
  max-height: 58px;
  padding: 7px 12px;
  background: #ffffff;
  border-radius: 10px;
}

.sgcpyme-footer__title {
  display: inline-block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
}

.sgcpyme-footer__title:hover {
  color: var(--sgc-accent);
}

.sgcpyme-footer__description {
  margin: 0;
  color: #c6d3e1;
  line-height: 1.75;
}

.sgcpyme-footer__heading {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.sgcpyme-footer__links {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.sgcpyme-footer__links a {
  color: #c6d3e1;
  text-decoration: none;
  transition:
    color var(--sgc-transition),
    transform var(--sgc-transition);
}

.sgcpyme-footer__links a:hover {
  color: var(--sgc-accent);
}

.sgcpyme-footer__bottom {
  display: flex;
  margin-top: 48px;
  padding-top: 24px;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sgcpyme-footer__bottom p {
  margin: 0;
  color: #9fb1c4;
  font-size: 0.92rem;
}

.sgcpyme-footer__cta {
  color: var(--sgc-accent);
  font-weight: 700;
  text-decoration: none;
}

.sgcpyme-footer__cta:hover {
  color: #ffffff;
}

/* WooCommerce */

.woocommerce .woocommerce-breadcrumb {
  margin: 28px auto;
  color: var(--sgc-muted);
  font-size: 0.92rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--sgc-primary);
  text-decoration: none;
}

.woocommerce ul.products {
  display: grid;
  margin: 28px 0 48px;
  padding: 0;
  grid-template-columns: 1fr;
  gap: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  display: flex;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 28px;
  flex-direction: column;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
  transition:
    transform var(--sgc-transition),
    box-shadow var(--sgc-transition),
    border-color var(--sgc-transition);
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(23, 105, 170, 0.28);
  box-shadow: var(--sgc-shadow-md);
  transform: translateY(-5px);
}

.woocommerce ul.products li.product a {
  text-decoration: none;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  max-height: 260px;
  margin: 0 0 24px;
  object-fit: contain;
  background: var(--sgc-background);
  border-radius: var(--sgc-radius-md);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  color: var(--sgc-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.woocommerce ul.products li.product .price {
  margin: 15px 0 22px;
  color: var(--sgc-primary);
  font-size: 1.6rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .button {
  display: inline-flex;
  min-height: 48px;
  margin-top: auto;
  padding: 13px 22px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--sgc-primary);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition:
    background var(--sgc-transition),
    transform var(--sgc-transition),
    box-shadow var(--sgc-transition);
}

.woocommerce ul.products li.product .button:hover {
  color: #ffffff;
  background: var(--sgc-primary-hover);
  box-shadow: 0 12px 24px rgba(23, 105, 170, 0.22);
  transform: translateY(-2px);
}

.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  padding: 7px 12px;
  color: var(--sgc-heading);
  background: var(--sgc-accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.woocommerce div.product {
  margin-block: 36px 72px;
}

.woocommerce div.product .product_title {
  color: var(--sgc-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--sgc-primary);
  font-size: 1.8rem;
  font-weight: 800;
}

.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: 48px;
  padding: 13px 22px;
  color: #ffffff;
  background: var(--sgc-primary);
  border-radius: 999px;
  font-weight: 700;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  color: #ffffff;
  background: var(--sgc-primary-hover);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin-block: 24px;
  padding: 20px 20px 20px 56px;
  background: #ffffff;
  border: 1px solid var(--sgc-border);
  border-top: 4px solid var(--sgc-primary);
  border-radius: var(--sgc-radius-md);
  box-shadow: var(--sgc-shadow-sm);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
  min-height: 48px;
  padding: 11px 14px;
  color: var(--sgc-heading);
  background: #ffffff;
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-sm);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--sgc-primary);
  outline: 3px solid rgba(23, 105, 170, 0.12);
}

.woocommerce table.shop_table {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

.woocommerce-checkout-review-order,
.woocommerce-cart-form,
.cart_totals {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

/* Elementor */

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed > .e-con-inner {
  max-width: var(--sgc-container);
}

/* Contenedor interior del hero */

.sgcpyme-hero__inner {
  width: 100%;
  max-width: var(--sgc-container);
  margin-inline: auto;
}

.sgcpyme-section-heading__text {
  	max-width: 720px;
}

/* Tarjetas de la sección Rubros */

.sgcpyme-rubros__grid {
  align-items: stretch !important;
}

.sgcpyme-rubro-card {
  position: relative;
  isolation: isolate;
  align-self: stretch !important;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-rubro-card > .e-con-inner {
  height: 100%;
}

/* Sección Funcionalidades */

.sgcpyme-funcionalidades__inner {
  width: 100%;
  max-width: var(--sgc-container);
  margin-inline: auto;
}

.sgcpyme-funcionalidades__grid {
  align-items: stretch !important;
}

.sgcpyme-funcionalidad-card {
  position: relative;
  isolation: isolate;
  align-self: stretch !important;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-funcionalidad-card > .e-con-inner {
  height: 100%;
}

.sgcpyme-funcionalidad-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 4px;
  background: var(--sgc-primary);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.sgcpyme-funcionalidad-card .elementor-icon {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-funcionalidad-card .elementor-icon i,
.sgcpyme-funcionalidad-card .elementor-icon svg,
.sgcpyme-funcionalidad-card .elementor-heading-title {
  transition:
    color 220ms ease,
    fill 220ms ease;
}

/* Sección Precios */

.sgcpyme-precios__inner {
  width: 100%;
  max-width: var(--sgc-container);
  margin-inline: auto;
}

.sgcpyme-precios__description {
  width: 100%;
  max-width: 720px;
}

.sgcpyme-precios__grid {
  align-items: stretch !important;
}

.sgcpyme-plan-card {
  position: relative;
  isolation: isolate;
  align-self: stretch !important;
  height: 100%;
  overflow: visible;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-plan-card > .e-con-inner {
  height: 100%;
}

.sgcpyme-plan-card--anual {
  border: 2px solid var(--sgc-primary) !important;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(23, 105, 170, 0.08);
}

.sgcpyme-plan-card--anual::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at top right,
      rgba(23, 105, 170, 0.14),
      transparent 38%
    );
  content: "";
  pointer-events: none;
}

.sgcpyme-plan-badge {
  align-self: flex-start;
}

.sgcpyme-plan-price {
  width: 100%;
}

.sgcpyme-plan-price p {
  display: flex;
  margin: 0;
  align-items: baseline;
  gap: 7px;
  color: var(--sgc-heading);
}

.sgcpyme-price-currency {
  color: var(--sgc-primary);
  font-size: 1rem;
  font-weight: 700;
}

.sgcpyme-price-value {
  color: var(--sgc-heading);
  font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sgcpyme-price-period {
  color: var(--sgc-muted);
  font-size: 1rem;
  font-weight: 500;
}

.sgcpyme-plan-features {
  width: 100%;
  flex-grow: 1;
}

.sgcpyme-plan-features .elementor-icon-list-item {
  padding-block: 12px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
}

.sgcpyme-plan-features .elementor-icon-list-item:last-child {
  border-bottom: 0;
}

.sgcpyme-plan-button {
  width: 100%;
  margin-top: auto;
}

.sgcpyme-plan-button .elementor-button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-plan-card:hover {
    border-color: rgba(23, 105, 170, 0.38) !important;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.22);
    transform: translateY(-6px);
  }

  .sgcpyme-plan-card--anual:hover {
    border-color: var(--sgc-accent) !important;
  }
}

/* Precio dinámico de los planes WooCommerce */

.sgcpyme-dynamic-price {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 7px;
  color: var(--sgc-heading);
}

.sgcpyme-dynamic-price__currency {
  color: var(--sgc-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.sgcpyme-dynamic-price__value {
  color: var(--sgc-heading);
  font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sgcpyme-dynamic-price__period {
  color: var(--sgc-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .sgcpyme-dynamic-price {
    flex-wrap: wrap;
  }

  .sgcpyme-dynamic-price__value {
    font-size: 3.4rem;
  }
}

@media (max-width: 767px) {
  .sgcpyme-plan-card {
    padding: 0;
  }

  .sgcpyme-plan-badge {
    align-self: center;
  }

  .sgcpyme-plan-price p {
    justify-content: flex-start;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-funcionalidad-card:hover {
    border-color: rgba(23, 105, 170, 0.32) !important;
    box-shadow: 0 16px 36px rgba(10, 29, 58, 0.1);
    transform: translateY(-4px);
  }

  .sgcpyme-funcionalidad-card:hover::before {
    transform: scaleX(1);
  }

  .sgcpyme-funcionalidad-card:hover .elementor-icon {
    background-color: var(--sgc-primary) !important;
    box-shadow: 0 10px 22px rgba(23, 105, 170, 0.2);
    transform: translateY(-2px);
  }

  .sgcpyme-funcionalidad-card:hover .elementor-icon i {
    color: #ffffff !important;
  }

  .sgcpyme-funcionalidad-card:hover .elementor-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
  }

  .sgcpyme-funcionalidad-card:hover .elementor-heading-title {
    color: var(--sgc-primary) !important;
  }
}

.sgcpyme-funcionalidad-card:active {
  transform: translateY(-1px);
}

.sgcpyme-rubro-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 4px;
  background: var(--sgc-accent);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.sgcpyme-rubro-card .elementor-icon {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-rubro-card .elementor-icon i,
.sgcpyme-rubro-card .elementor-icon svg,
.sgcpyme-rubro-card .elementor-heading-title {
  transition:
    color 220ms ease,
    fill 220ms ease;
}

/* Sección Galería */

.sgcpyme-galeria__inner {
  width: 100%;
  max-width: var(--sgc-container);
  margin-inline: auto;
}

.sgcpyme-galeria__grid {
  width: 100%;
}

.sgcpyme-galeria__grid .gallery {
  display: grid !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

.sgcpyme-galeria__grid .gallery::before,
.sgcpyme-galeria__grid .gallery::after {
  display: none !important;
  content: none !important;
}

.sgcpyme-galeria__grid .gallery-item {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(10, 29, 58, 0.1);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-galeria__grid .gallery-icon {
  width: 100%;
  height: 100%;
}

.sgcpyme-galeria__grid .gallery-item a {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: inherit;
}

.sgcpyme-galeria__grid .gallery-item a::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(10, 29, 58, 0.58);
  content: "Ver captura";
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.sgcpyme-galeria__grid .gallery-item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border: 0 !important;
  border-radius: inherit;
  transition:
    filter 220ms ease,
    transform 320ms ease;
}

.sgcpyme-galeria__grid .gallery-caption {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-galeria__grid .gallery-item:hover {
    border-color: rgba(23, 105, 170, 0.38);
    box-shadow: 0 20px 48px rgba(10, 29, 58, 0.16);
    transform: translateY(-5px);
  }

  .sgcpyme-galeria__grid .gallery-item:hover a::after {
    opacity: 1;
  }

  .sgcpyme-galeria__grid .gallery-item:hover img {
    transform: scale(1.025);
  }
}

@media (min-width: 700px) {
  .sgcpyme-galeria__grid .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .sgcpyme-galeria__grid .gallery-item img {
    min-height: 280px;
  }
}

@media (min-width: 1024px) {
  .sgcpyme-galeria__grid .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sgcpyme-galeria__grid .gallery-item img {
    min-height: 320px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-rubro-card:hover {
    background-color: var(--sgc-surface);
    border-color: rgba(23, 105, 170, 0.32) !important;
    box-shadow: 0 16px 36px rgba(10, 29, 58, 0.1);
    transform: translateY(-4px);
  }

  .sgcpyme-rubro-card:hover::before {
    transform: scaleX(1);
  }

  .sgcpyme-rubro-card:hover .elementor-icon {
    background-color: var(--sgc-accent) !important;
    box-shadow: 0 10px 22px rgba(216, 154, 0, 0.22);
    transform: translateY(-2px);
  }

  .sgcpyme-rubro-card:hover .elementor-icon i {
    color: var(--sgc-heading) !important;
  }

  .sgcpyme-rubro-card:hover .elementor-icon svg {
    fill: var(--sgc-heading) !important;
    color: var(--sgc-heading) !important;
  }

  .sgcpyme-rubro-card:hover .elementor-heading-title {
    color: var(--sgc-primary) !important;
  }
}

.sgcpyme-rubro-card:active {
  transform: translateY(-1px);
}

.sgcpyme-galeria__grid .gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
}

.sgcpyme-galeria__grid .gallery-item,
.sgcpyme-galeria__grid .gallery-columns-2 .gallery-item,
.sgcpyme-galeria__grid .gallery-columns-3 .gallery-item,
.sgcpyme-galeria__grid .gallery-columns-4 .gallery-item {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.sgcpyme-galeria__grid .gallery-item:nth-child(odd),
.sgcpyme-galeria__grid .gallery-item:nth-child(even),
.sgcpyme-galeria__grid .gallery-item:nth-child(2n + 1),
.sgcpyme-galeria__grid .gallery-item:nth-child(3n + 1) {
  clear: none !important;
}

.sgcpyme-galeria__grid .gallery-icon,
.sgcpyme-galeria__grid .gallery-item a {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 699px) {
  .sgcpyme-galeria__grid .gallery {
    grid-template-columns: 1fr !important;
  }
}

/* Sección FAQ */

.sgcpyme-faq__inner {
  width: 100%;
  max-width: var(--sgc-container);
  margin-inline: auto;
}

.sgcpyme-faq__accordion {
  width: 100%;
  max-width: 860px;
}

.sgcpyme-faq__accordion .elementor-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sgcpyme-faq__accordion .elementor-accordion-item {
  overflow: hidden;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border) !important;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(10, 29, 58, 0.05);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-faq__accordion .elementor-tab-title {
  display: flex;
  min-height: 64px;
  padding: 20px 22px !important;
  align-items: center;
  color: var(--sgc-heading);
  border: 0 !important;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.sgcpyme-faq__accordion .elementor-tab-title.elementor-active {
  color: var(--sgc-primary);
}

.sgcpyme-faq__accordion .elementor-accordion-icon {
  flex: 0 0 auto;
  color: var(--sgc-primary);
}

.sgcpyme-faq__accordion .elementor-tab-content {
  padding: 0 22px 22px !important;
  color: var(--sgc-text);
  border: 0 !important;
  font-size: 1rem;
  line-height: 1.7;
}

.sgcpyme-faq__accordion .elementor-tab-content p {
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-faq__accordion .elementor-accordion-item:hover {
    border-color: rgba(23, 105, 170, 0.3) !important;
    box-shadow: 0 14px 34px rgba(10, 29, 58, 0.09);
    transform: translateY(-2px);
  }
}

@media (max-width: 767px) {
  .sgcpyme-faq__accordion .elementor-tab-title {
    min-height: 58px;
    padding: 17px 16px !important;
    font-size: 1rem;
  }

  .sgcpyme-faq__accordion .elementor-tab-content {
    padding: 0 16px 18px !important;
    font-size: 0.96rem;
  }
}

/* Página de Tutoriales */

.sgcpyme-tutorial-grid {
  align-items: stretch !important;
}

.sgcpyme-tutorial-card {
  position: relative;
  align-self: stretch !important;
  height: 100%;
  overflow: hidden;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 29, 58, 0.07);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.sgcpyme-tutorial-card > .e-con-inner {
  height: 100%;
}

.sgcpyme-tutorial-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sgcpyme-tutorial-card .elementor-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-tutorial-card:hover {
    border-color: rgba(23, 105, 170, 0.32);
    box-shadow: 0 18px 42px rgba(10, 29, 58, 0.12);
    transform: translateY(-4px);
  }

  .sgcpyme-tutorial-card:hover img {
    transform: scale(1.025);
  }
}

.sgcpyme-tutorial-card img {
  transition: transform 300ms ease;
}

.sgcpyme-tutorial-category + .sgcpyme-tutorial-category {
  margin-top: 72px;
}

@media (max-width: 767px) {
  .sgcpyme-tutorial-category + .sgcpyme-tutorial-category {
    margin-top: 56px;
  }
}

/* Botón flotante de WhatsApp */

.sgcpyme-whatsapp {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  display: inline-flex !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  color: #ffffff !important;
  background: #25d366 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 34px rgba(10, 29, 58, 0.24) !important;
  text-decoration: none !important;
  line-height: 1 !important;
  overflow: hidden !important;
  transform: none;
}

.sgcpyme-whatsapp:hover {
  color: #ffffff !important;
  background: #1ebe5d !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 42px rgba(10, 29, 58, 0.3) !important;
}

.sgcpyme-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35) !important;
  outline-offset: 4px !important;
}

.sgcpyme-whatsapp__icon {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  flex: 0 0 28px !important;
}

.sgcpyme-whatsapp__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .sgcpyme-whatsapp {
    right: 16px !important;
    bottom: 16px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }

  .sgcpyme-whatsapp__icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    flex-basis: 26px !important;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .sgcpyme-whatsapp {
    bottom: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgcpyme-whatsapp {
    transition: none !important;
  }

  .sgcpyme-whatsapp:hover {
    transform: none !important;
  }
}

/* Tablet */

@media (min-width: 700px) {
  .sgcpyme-container {
    width: min(calc(100% - 3rem), var(--sgc-container));
  }

  .sgcpyme-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgcpyme-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Escritorio */

@media (min-width: 1024px) {
  .sgcpyme-desktop-navigation {
    display: flex;
  }

  .sgcpyme-button--header {
    display: inline-flex;
  }

  .sgcpyme-menu-toggle,
  .sgcpyme-mobile-menu {
    display: none;
  }

  .sgcpyme-footer__grid {
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, 1fr));
  }
	
	
}

/* Barra de administración en mobile */

@media screen and (max-width: 782px) {
  .admin-bar .sgcpyme-header {
    top: 46px;
  }

  .admin-bar .sgcpyme-mobile-menu {
    top: calc(var(--sgc-header-height) + 46px);
    height: calc(100dvh - var(--sgc-header-height) - 46px);
  }
}

/* Animaciones reducidas */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Página individual de las licencias WooCommerce */

body.single-product .site-main {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin-inline: auto;
  padding-block: 28px 80px;
}

body.single-product .woocommerce-breadcrumb {
  margin: 0 0 28px;
  padding: 0;
  color: var(--sgc-muted);
  font-size: 0.9rem;
}

body.single-product .woocommerce-breadcrumb a {
  color: var(--sgc-primary);
  font-weight: 600;
}

body.single-product .widget-area,
body.single-product .sidebar,
body.single-product aside {
  display: none !important;
}

body.single-product div.product {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

body.single-product div.product::before,
body.single-product div.product::after {
  display: none;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.single-product div.product div.images {
  position: relative;
  display: grid;
  min-height: 360px;
  padding: 34px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(23, 105, 170, 0.12), transparent 34%),
    var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

body.single-product div.product div.images img {
  width: auto !important;
  max-width: min(100%, 430px) !important;
  max-height: 430px;
  margin-inline: auto;
  object-fit: contain;
}

body.single-product div.product div.images .woocommerce-product-gallery__trigger {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--sgc-border);
  box-shadow: var(--sgc-shadow-sm);
}

body.single-product div.product div.summary {
  padding: clamp(26px, 4vw, 42px);
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-md);
}

body.single-product div.product .product_title {
  margin: 0 0 16px;
  color: var(--sgc-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sgcpyme-license-intro {
  margin: 0 0 22px;
  color: var(--sgc-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  margin: 0 0 24px;
  color: var(--sgc-primary);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.single-product div.product .price del {
  color: var(--sgc-muted);
  font-size: 0.55em;
  opacity: 0.7;
}

body.single-product div.product .price ins {
  text-decoration: none;
}

.sgcpyme-license-benefits {
  margin: 0 0 26px;
  padding: 22px;
  background: var(--sgc-primary-soft);
  border: 1px solid rgba(23, 105, 170, 0.16);
  border-radius: var(--sgc-radius-md);
}

.sgcpyme-license-benefits h2 {
  margin: 0 0 14px;
  color: var(--sgc-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.sgcpyme-license-benefits ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.sgcpyme-license-benefits li {
  position: relative;
  padding-left: 30px;
  color: var(--sgc-text);
  line-height: 1.5;
}

.sgcpyme-license-benefits li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #ffffff;
  background: var(--sgc-success);
  border-radius: 50%;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 800;
}

body.single-product div.product form.cart {
  display: flex;
  width: 100%;
  margin: 0 0 16px;
}

body.single-product div.product form.cart .quantity {
  display: none !important;
}

body.single-product div.product form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  color: #ffffff;
  background: var(--sgc-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(23, 105, 170, 0.24);
  font-size: 1rem;
  font-weight: 800;
}

body.single-product div.product form.cart .single_add_to_cart_button:hover {
  color: #ffffff;
  background: var(--sgc-primary-hover);
  box-shadow: 0 18px 34px rgba(23, 105, 170, 0.3);
  transform: translateY(-2px);
}

.sgcpyme-license-security {
  display: flex;
  margin-top: 14px;
  align-items: flex-start;
  gap: 10px;
  color: var(--sgc-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.single-product div.product .product_meta,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product #secondary {
  display: none !important;
}

.sgcpyme-license-back {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin: 26px auto 0;
  text-align: center;
}

.sgcpyme-license-back a {
  display: inline-flex;
  min-height: 46px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border: 1px solid rgba(23, 105, 170, 0.16);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.sgcpyme-license-back a:hover {
  color: #ffffff;
  background: var(--sgc-primary);
}

@media (min-width: 900px) {
  body.single-product div.product {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: 42px;
  }

  body.single-product div.product div.summary {
    position: sticky;
    top: calc(var(--sgc-header-height) + 28px);
  }
}

@media (max-width: 899px) {
  body.single-product .site-main {
    padding-block: 22px 56px;
  }

  body.single-product div.product div.images {
    min-height: 300px;
    padding: 24px;
  }

  body.single-product div.product div.images img {
    max-height: 340px;
  }
}

@media (max-width: 600px) {
  body.single-product .site-main {
    width: min(calc(100% - 1.25rem), var(--sgc-container));
  }

  body.single-product div.product div.summary {
    padding: 24px 20px;
  }

  body.single-product div.product .product_title {
    font-size: 2rem;
  }

  .sgcpyme-license-benefits {
    padding: 18px;
  }
}

/* Página del carrito de WooCommerce */

body.woocommerce-cart .site-main {
  min-height: auto;
}

body.woocommerce-cart .sgcpyme-footer {
  margin-top: 0;
}

.sgcpyme-cart-page {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin-inline: auto;
  padding: 56px 0 88px;
}

.sgcpyme-cart-hero {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.sgcpyme-cart-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgcpyme-cart-hero h1 {
  margin: 0;
  color: var(--sgc-heading);
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sgcpyme-cart-hero p {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--sgc-text);
  font-size: 1.08rem;
}

/* Bloque moderno del carrito */

.sgcpyme-cart-page .wp-block-woocommerce-cart,
.sgcpyme-cart-page .wc-block-cart {
  margin: 0;
}

.sgcpyme-cart-page .wc-block-cart__main,
.sgcpyme-cart-page .wc-block-cart__sidebar {
  min-width: 0;
}

.sgcpyme-cart-page .wc-block-cart__main {
  padding-right: 0;
}

.sgcpyme-cart-page .wc-block-cart-items {
  overflow: hidden;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border) !important;
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-cart-page .wc-block-cart-items thead {
  background: var(--sgc-primary-soft);
}

.sgcpyme-cart-page .wc-block-cart-items th {
  padding: 16px 20px !important;
  color: var(--sgc-heading);
  border: 0 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sgcpyme-cart-page .wc-block-cart-items td {
  padding: 24px 20px !important;
  border-top: 1px solid var(--sgc-border) !important;
  vertical-align: middle;
}

.sgcpyme-cart-page .wc-block-cart-item__image {
  width: 104px;
}

.sgcpyme-cart-page .wc-block-cart-item__image img {
  width: 88px;
  height: 88px;
  padding: 10px;
  object-fit: contain;
  background: var(--sgc-background);
  border: 1px solid var(--sgc-border);
  border-radius: 14px;
}

.sgcpyme-cart-page .wc-block-components-product-name {
  color: var(--sgc-heading) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.sgcpyme-cart-page .wc-block-components-product-price,
.sgcpyme-cart-page .wc-block-cart-item__total-price-and-sale-badge-wrapper {
  color: var(--sgc-primary);
  font-weight: 800;
}

.sgcpyme-cart-page .wc-block-components-product-metadata {
  margin-top: 8px;
  color: var(--sgc-muted);
  font-size: 0.9rem;
}

.sgcpyme-cart-page .wc-block-cart-item__remove-link {
  margin-top: 12px !important;
  color: var(--sgc-danger) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.sgcpyme-cart-page .wc-block-cart-item__remove-link:hover {
  text-decoration: underline !important;
}

.sgcpyme-cart-page .wc-block-cart__sidebar {
  padding: 0 !important;
}

.sgcpyme-cart-page .wc-block-components-sidebar-layout {
  gap: 30px;
}

.sgcpyme-cart-page .wc-block-components-totals-wrapper,
.sgcpyme-cart-page .wc-block-cart__sidebar .wc-block-components-totals-wrapper:first-child {
  padding: 20px 0 !important;
  border-top: 1px solid var(--sgc-border) !important;
}

.sgcpyme-cart-page .wc-block-cart__sidebar {
  height: fit-content;
  padding: 28px !important;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-cart-page .wc-block-cart__totals-title {
  margin: 0 0 18px !important;
  color: var(--sgc-heading);
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.sgcpyme-cart-page .wc-block-components-totals-item__label,
.sgcpyme-cart-page .wc-block-components-totals-item__value {
  color: var(--sgc-heading);
  font-size: 1rem;
}

.sgcpyme-cart-page .wc-block-components-totals-footer-item {
  padding-top: 18px;
}

.sgcpyme-cart-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.sgcpyme-cart-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.35rem;
  font-weight: 800;
}

.sgcpyme-cart-page .wc-block-components-panel__button {
  color: var(--sgc-primary);
  font-weight: 700;
}

.sgcpyme-cart-page .wc-block-cart__submit {
  margin-top: 18px;
}

.sgcpyme-cart-page .wc-block-cart__submit-button,
.sgcpyme-cart-page .wc-block-components-button {
  min-height: 54px;
  color: #ffffff !important;
  background: var(--sgc-primary) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(23, 105, 170, 0.2);
  font-weight: 800 !important;
  text-decoration: none !important;
  transition:
    background-color var(--sgc-transition),
    box-shadow var(--sgc-transition),
    transform var(--sgc-transition);
}

.sgcpyme-cart-page .wc-block-cart__submit-button:hover,
.sgcpyme-cart-page .wc-block-components-button:hover {
  background: var(--sgc-primary-hover) !important;
  box-shadow: 0 16px 32px rgba(23, 105, 170, 0.26);
  transform: translateY(-2px);
}

.sgcpyme-cart-page .wc-block-cart__empty-cart__title {
  color: var(--sgc-heading);
  font-size: clamp(2rem, 5vw, 3rem);
}

.sgcpyme-cart-page .wp-block-separator {
  border-color: var(--sgc-border);
}

/* Carrito clásico, por compatibilidad */

.sgcpyme-cart-page .woocommerce-cart-form,
.sgcpyme-cart-page .cart_totals {
  margin-bottom: 28px;
}

.sgcpyme-cart-page .cart_totals h2 {
  color: var(--sgc-heading);
  font-size: 1.4rem;
}

.sgcpyme-cart-page .checkout-button {
  width: 100%;
  min-height: 54px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Beneficios bajo el carrito */

.sgcpyme-cart-trust {
  display: grid;
  margin-top: 34px;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sgcpyme-cart-trust__item {
  display: flex;
  min-width: 0;
  padding: 20px;
  align-items: flex-start;
  gap: 13px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

.sgcpyme-cart-trust__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #ffffff;
  background: var(--sgc-success);
  border-radius: 50%;
  font-weight: 800;
}

.sgcpyme-cart-trust__item div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.sgcpyme-cart-trust__item strong {
  color: var(--sgc-heading);
  font-size: 0.98rem;
}

.sgcpyme-cart-trust__item span:last-child {
  color: var(--sgc-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .sgcpyme-cart-page {
    width: min(calc(100% - 3rem), var(--sgc-container));
  }

  .sgcpyme-cart-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sgcpyme-cart-page .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
    align-items: start;
  }

  .sgcpyme-cart-page .wc-block-cart__sidebar {
    position: sticky;
    top: calc(var(--sgc-header-height) + 28px);
  }
}

@media (max-width: 699px) {
  .sgcpyme-cart-page {
    padding: 40px 0 64px;
  }

  .sgcpyme-cart-hero {
    margin-bottom: 28px;
    text-align: left;
  }

  .sgcpyme-cart-hero p {
    margin-left: 0;
  }

  .sgcpyme-cart-page .wc-block-cart-items,
  .sgcpyme-cart-page .wc-block-cart__sidebar {
    border-radius: 16px;
  }

  .sgcpyme-cart-page .wc-block-cart-items td {
    padding: 18px 14px !important;
  }

  .sgcpyme-cart-page .wc-block-cart-item__image {
    width: 76px;
  }

  .sgcpyme-cart-page .wc-block-cart-item__image img {
    width: 68px;
    height: 68px;
    padding: 7px;
  }

  .sgcpyme-cart-page .wc-block-cart__sidebar {
    margin-top: 22px;
    padding: 22px !important;
  }
}

/* Página Finalizar compra de WooCommerce */

body.woocommerce-checkout:not(.woocommerce-order-received) .site-main {
  min-height: auto;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .sgcpyme-footer {
  margin-top: 0;
}

.sgcpyme-checkout-page {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin-inline: auto;
  padding: 56px 0 88px;
}

.sgcpyme-checkout-hero {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.sgcpyme-checkout-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgcpyme-checkout-hero h1 {
  margin: 0;
  color: var(--sgc-heading);
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sgcpyme-checkout-hero p {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--sgc-text);
  font-size: 1.08rem;
}

/* Checkout moderno por bloques */

.sgcpyme-checkout-page .wp-block-woocommerce-checkout,
.sgcpyme-checkout-page .wc-block-checkout {
  margin: 0;
}

.sgcpyme-checkout-page .wc-block-components-sidebar-layout {
  gap: 30px;
  align-items: start;
}

.sgcpyme-checkout-page .wc-block-checkout__main,
.sgcpyme-checkout-page .wc-block-checkout__sidebar {
  min-width: 0;
}

.sgcpyme-checkout-page .wc-block-checkout__main {
  padding: 0 !important;
}

.sgcpyme-checkout-page .wc-block-checkout__sidebar {
  height: fit-content;
  margin: 0 !important;
  padding: 28px !important;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-checkout-page .wc-block-components-checkout-step {
  margin: 0 0 22px !important;
  padding: 26px !important;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: 0 8px 24px rgba(10, 29, 58, 0.06);
}

.sgcpyme-checkout-page .wc-block-components-checkout-step:last-child {
  margin-bottom: 0 !important;
}

.sgcpyme-checkout-page .wc-block-components-checkout-step__heading {
  margin-bottom: 18px !important;
}

.sgcpyme-checkout-page .wc-block-components-checkout-step__title {
  color: var(--sgc-heading) !important;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.sgcpyme-checkout-page .wc-block-components-checkout-step__description {
  color: var(--sgc-muted);
  font-size: 0.94rem;
}

/* Campos */

.sgcpyme-checkout-page .wc-block-components-text-input input,
.sgcpyme-checkout-page .wc-block-components-combobox .components-combobox-control__input,
.sgcpyme-checkout-page .wc-block-components-address-form__country .wc-block-components-combobox-control input,
.sgcpyme-checkout-page .wc-block-components-textarea {
  min-height: 52px !important;
  color: var(--sgc-heading) !important;
  background: #ffffff !important;
  border: 1px solid var(--sgc-border) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

.sgcpyme-checkout-page .wc-block-components-text-input input:focus,
.sgcpyme-checkout-page .wc-block-components-combobox .components-combobox-control__input:focus,
.sgcpyme-checkout-page .wc-block-components-textarea:focus {
  border-color: var(--sgc-primary) !important;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12) !important;
  outline: 0 !important;
}

.sgcpyme-checkout-page .wc-block-components-text-input label,
.sgcpyme-checkout-page .wc-block-components-combobox-control label {
  color: var(--sgc-muted) !important;
}

.sgcpyme-checkout-page .wc-block-components-checkbox label {
  color: var(--sgc-text);
  font-size: 0.94rem;
}

/* Pago */

.sgcpyme-checkout-page .wc-block-components-radio-control {
  overflow: hidden;
  border: 1px solid var(--sgc-border) !important;
  border-radius: 14px;
}

.sgcpyme-checkout-page .wc-block-components-radio-control-accordion-option {
  background: #ffffff;
  border: 0 !important;
}

.sgcpyme-checkout-page .wc-block-components-radio-control-accordion-option[aria-checked="true"],
.sgcpyme-checkout-page .wc-block-components-radio-control__option-checked {
  background: var(--sgc-primary-soft);
}

.sgcpyme-checkout-page .wc-block-components-radio-control__label {
  color: var(--sgc-heading);
  font-weight: 700;
}

.sgcpyme-checkout-page .wc-block-components-radio-control-accordion-content {
  color: var(--sgc-text);
  background: #ffffff;
  border-top: 1px solid var(--sgc-border);
  line-height: 1.65;
}

/* Resumen del pedido */

.sgcpyme-checkout-page .wc-block-checkout__sidebar .wc-block-components-title {
  margin: 0 0 20px;
  color: var(--sgc-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.sgcpyme-checkout-page .wc-block-components-order-summary-item {
  padding: 18px 0 !important;
  border-bottom: 1px solid var(--sgc-border);
}

.sgcpyme-checkout-page .wc-block-components-order-summary-item__image {
  width: 72px;
}

.sgcpyme-checkout-page .wc-block-components-order-summary-item__image img {
  width: 64px;
  height: 64px;
  padding: 7px;
  object-fit: contain;
  background: var(--sgc-background);
  border: 1px solid var(--sgc-border);
  border-radius: 12px;
}

.sgcpyme-checkout-page .wc-block-components-product-name {
  color: var(--sgc-heading) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.sgcpyme-checkout-page .wc-block-components-product-price,
.sgcpyme-checkout-page .wc-block-components-order-summary-item__total-price {
  color: var(--sgc-primary);
  font-weight: 800;
}

.sgcpyme-checkout-page .wc-block-components-product-metadata {
  color: var(--sgc-muted);
  font-size: 0.88rem;
}

.sgcpyme-checkout-page .wc-block-components-totals-wrapper {
  padding: 18px 0 !important;
  border-top: 1px solid var(--sgc-border) !important;
}

.sgcpyme-checkout-page .wc-block-components-totals-item__label,
.sgcpyme-checkout-page .wc-block-components-totals-item__value {
  color: var(--sgc-heading);
}

.sgcpyme-checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.sgcpyme-checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.35rem;
  font-weight: 800;
}

/* Botón final */

.sgcpyme-checkout-page .wc-block-components-checkout-place-order-button,
.sgcpyme-checkout-page .wc-block-components-button {
  min-height: 56px;
  color: #ffffff !important;
  background: var(--sgc-primary) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(23, 105, 170, 0.22);
  font-weight: 800 !important;
  text-decoration: none !important;
  transition:
    background-color var(--sgc-transition),
    box-shadow var(--sgc-transition),
    transform var(--sgc-transition);
}

.sgcpyme-checkout-page .wc-block-components-checkout-place-order-button:hover,
.sgcpyme-checkout-page .wc-block-components-button:hover {
  background: var(--sgc-primary-hover) !important;
  box-shadow: 0 16px 32px rgba(23, 105, 170, 0.28);
  transform: translateY(-2px);
}

.sgcpyme-checkout-page .wc-block-checkout__terms,
.sgcpyme-checkout-page .wc-block-components-checkout-return-to-cart-button {
  color: var(--sgc-muted);
  font-size: 0.9rem;
}

.sgcpyme-checkout-page .wc-block-components-checkout-return-to-cart-button {
  color: var(--sgc-primary) !important;
  font-weight: 700;
}

/* Compatibilidad con checkout clásico */

.sgcpyme-checkout-page form.checkout {
  display: grid;
  gap: 30px;
}

.sgcpyme-checkout-page #customer_details,
.sgcpyme-checkout-page #order_review {
  padding: 28px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-checkout-page #place_order {
  width: 100%;
  min-height: 56px;
}

/* Confianza */

.sgcpyme-checkout-trust {
  display: grid;
  margin-top: 34px;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sgcpyme-checkout-trust__item {
  display: flex;
  min-width: 0;
  padding: 20px;
  align-items: flex-start;
  gap: 13px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

.sgcpyme-checkout-trust__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #ffffff;
  background: var(--sgc-success);
  border-radius: 50%;
  font-weight: 800;
}

.sgcpyme-checkout-trust__item div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.sgcpyme-checkout-trust__item strong {
  color: var(--sgc-heading);
  font-size: 0.98rem;
}

.sgcpyme-checkout-trust__item span:last-child {
  color: var(--sgc-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .sgcpyme-checkout-page {
    width: min(calc(100% - 3rem), var(--sgc-container));
  }

  .sgcpyme-checkout-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sgcpyme-checkout-page .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.8fr);
  }

  .sgcpyme-checkout-page .wc-block-checkout__sidebar {
    position: sticky;
    top: calc(var(--sgc-header-height) + 28px);
  }

  .sgcpyme-checkout-page form.checkout {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.8fr);
    align-items: start;
  }
}

@media (max-width: 699px) {
  .sgcpyme-checkout-page {
    padding: 40px 0 64px;
  }

  .sgcpyme-checkout-hero {
    margin-bottom: 28px;
    text-align: left;
  }

  .sgcpyme-checkout-hero p {
    margin-left: 0;
  }

  .sgcpyme-checkout-page .wc-block-components-checkout-step,
  .sgcpyme-checkout-page .wc-block-checkout__sidebar {
    padding: 20px !important;
    border-radius: 16px;
  }

  .sgcpyme-checkout-page .wc-block-checkout__sidebar {
    margin-top: 22px !important;
  }

  .sgcpyme-checkout-page .wc-block-components-address-form {
    grid-template-columns: 1fr !important;
  }

  .sgcpyme-checkout-page .wc-block-components-order-summary-item__image {
    width: 62px;
  }

  .sgcpyme-checkout-page .wc-block-components-order-summary-item__image img {
    width: 56px;
    height: 56px;
  }
}

/* Mi cuenta de WooCommerce */

body.woocommerce-account .site-main,
body.woocommerce-order-received .site-main {
  min-height: auto;
}

body.woocommerce-account .sgcpyme-footer,
body.woocommerce-order-received .sgcpyme-footer {
  margin-top: 0;
}

.sgcpyme-account-page,
.sgcpyme-order-received-page {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin-inline: auto;
  padding: 56px 0 88px;
}

.sgcpyme-account-hero {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.sgcpyme-account-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgcpyme-account-hero h1 {
  margin: 0;
  color: var(--sgc-heading);
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sgcpyme-account-hero p {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--sgc-text);
  font-size: 1.08rem;
}

.sgcpyme-account-page .woocommerce {
  display: grid;
  gap: 28px;
}

.sgcpyme-account-page .woocommerce-MyAccount-navigation {
  width: 100%;
}

.sgcpyme-account-page .woocommerce-MyAccount-navigation ul {
  display: flex;
  margin: 0;
  padding: 14px;
  flex-direction: column;
  gap: 6px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
  list-style: none;
}

.sgcpyme-account-page .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.sgcpyme-account-page .woocommerce-MyAccount-navigation a {
  display: flex;
  min-height: 48px;
  padding: 12px 15px;
  align-items: center;
  color: var(--sgc-text);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color var(--sgc-transition),
    background-color var(--sgc-transition),
    transform var(--sgc-transition);
}

.sgcpyme-account-page .woocommerce-MyAccount-navigation a:hover {
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  transform: translateX(2px);
}

.sgcpyme-account-page .woocommerce-MyAccount-navigation .is-active a {
  color: #ffffff;
  background: var(--sgc-primary);
}

.sgcpyme-account-page .woocommerce-MyAccount-content {
  width: 100%;
  padding: 30px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-account-page .woocommerce-MyAccount-content h2,
.sgcpyme-account-page .woocommerce-MyAccount-content h3 {
  margin-top: 0;
  color: var(--sgc-heading);
}

.sgcpyme-account-page .woocommerce-MyAccount-content p:first-child {
  margin-top: 0;
}

.sgcpyme-account-page .woocommerce-MyAccount-content a {
  font-weight: 700;
}

.sgcpyme-account-page .woocommerce table.shop_table {
  margin-bottom: 0;
}

.sgcpyme-account-page .woocommerce table.shop_table th {
  padding: 15px;
  color: var(--sgc-heading);
  background: var(--sgc-primary-soft);
  font-weight: 800;
}

.sgcpyme-account-page .woocommerce table.shop_table td {
  padding: 15px;
  vertical-align: middle;
}

.sgcpyme-account-page .woocommerce-orders-table__cell-order-actions .button {
  margin: 3px;
}

.sgcpyme-account-page .woocommerce-Address {
  padding: 22px;
  background: var(--sgc-background);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

.sgcpyme-account-page .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sgcpyme-account-page .woocommerce-form-login,
.sgcpyme-account-page .woocommerce-form-register {
  padding: 28px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-account-page .woocommerce h2 {
  color: var(--sgc-heading);
}

/* Pedido recibido */

.sgcpyme-order-received-page .woocommerce-order {
  display: grid;
  gap: 26px;
}

.sgcpyme-order-received-page .woocommerce-notice--success,
.sgcpyme-order-received-page .woocommerce-thankyou-order-received {
  margin: 0;
  padding: 26px 28px;
  color: var(--sgc-heading);
  background: #effaf4;
  border: 1px solid rgba(22, 132, 71, 0.22);
  border-left: 5px solid var(--sgc-success);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
}

.sgcpyme-order-received-page .woocommerce-order-overview {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
}

.sgcpyme-order-received-page .woocommerce-order-overview li {
  float: none;
  width: 100%;
  margin: 0;
  padding: 18px;
  color: var(--sgc-muted);
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sgcpyme-order-received-page .woocommerce-order-overview strong {
  display: block;
  margin-top: 7px;
  color: var(--sgc-heading);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.sgcpyme-order-received-page .woocommerce-order-details,
.sgcpyme-order-received-page .woocommerce-customer-details,
.sgcpyme-order-received-page .woocommerce-bacs-bank-details {
  padding: 28px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-order-received-page h2 {
  margin-top: 0;
  color: var(--sgc-heading);
  font-size: 1.45rem;
}

.sgcpyme-order-received-page .woocommerce table.shop_table {
  margin-bottom: 0;
}

.sgcpyme-order-received-page .woocommerce table.shop_table th {
  color: var(--sgc-heading);
  background: var(--sgc-primary-soft);
}

.sgcpyme-order-received-page address {
  padding: 18px;
  background: var(--sgc-background);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
  line-height: 1.75;
}

/* Próximos pasos */

.sgcpyme-order-next-steps {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(23, 105, 170, 0.13), transparent 35%),
    var(--sgc-surface);
  border: 1px solid rgba(23, 105, 170, 0.22);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-order-next-steps__heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.sgcpyme-order-next-steps__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #ffffff;
  background: var(--sgc-success);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 800;
}

.sgcpyme-order-next-steps h2 {
  margin: 0;
}

.sgcpyme-order-next-steps__heading p {
  margin: 8px 0 0;
  color: var(--sgc-text);
}

.sgcpyme-order-next-steps__grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sgcpyme-order-next-steps__grid article {
  display: flex;
  padding: 18px;
  flex-direction: column;
  gap: 6px;
  background: var(--sgc-background);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

.sgcpyme-order-next-steps__grid strong {
  color: var(--sgc-heading);
}

.sgcpyme-order-next-steps__grid span {
  color: var(--sgc-muted);
  line-height: 1.55;
}

.sgcpyme-order-next-steps__actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.sgcpyme-order-next-steps__button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--sgc-primary);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.sgcpyme-order-next-steps__button:hover {
  color: #ffffff;
  background: var(--sgc-primary-hover);
}

.sgcpyme-order-next-steps__link {
  color: var(--sgc-primary);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 700px) {
  .sgcpyme-account-page,
  .sgcpyme-order-received-page {
    width: min(calc(100% - 3rem), var(--sgc-container));
  }

  .sgcpyme-order-received-page .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgcpyme-order-next-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sgcpyme-account-page .woocommerce {
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    align-items: start;
  }

  .sgcpyme-account-page .woocommerce-MyAccount-navigation {
    position: sticky;
    top: calc(var(--sgc-header-height) + 28px);
  }

  .sgcpyme-order-received-page .woocommerce-order-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .sgcpyme-account-page,
  .sgcpyme-order-received-page {
    padding: 40px 0 64px;
  }

  .sgcpyme-account-hero {
    margin-bottom: 28px;
    text-align: left;
  }

  .sgcpyme-account-hero p {
    margin-left: 0;
  }

  .sgcpyme-account-page .woocommerce-MyAccount-content,
  .sgcpyme-account-page .woocommerce-form-login,
  .sgcpyme-account-page .woocommerce-form-register,
  .sgcpyme-order-received-page .woocommerce-order-details,
  .sgcpyme-order-received-page .woocommerce-customer-details,
  .sgcpyme-order-received-page .woocommerce-bacs-bank-details,
  .sgcpyme-order-next-steps {
    padding: 20px;
    border-radius: 16px;
  }

  .sgcpyme-account-page .woocommerce table.shop_table {
    display: block;
    overflow-x: auto;
  }

  .sgcpyme-order-next-steps__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sgcpyme-order-next-steps__button,
  .sgcpyme-order-next-steps__link {
    width: 100%;
    text-align: center;
  }
}

/* Página Tienda de WooCommerce */

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
  min-height: auto;
}

body.woocommerce-shop .sgcpyme-footer,
body.tax-product_cat .sgcpyme-footer,
body.tax-product_tag .sgcpyme-footer {
  margin-top: 0;
}

.sgcpyme-shop-page {
  width: min(calc(100% - 2rem), var(--sgc-container));
  margin-inline: auto;
  padding: 56px 0 88px;
}

.sgcpyme-shop-page .woocommerce-breadcrumb {
  margin: 0 0 24px;
}

.sgcpyme-shop-hero {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.sgcpyme-shop-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgcpyme-shop-hero h1 {
  margin: 0;
  color: var(--sgc-heading);
  font-size: clamp(2.25rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sgcpyme-shop-hero__description {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--sgc-text);
  font-size: 1.08rem;
}

.sgcpyme-shop-hero__description p {
  margin: 0;
}

.sgcpyme-shop-benefits {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sgcpyme-shop-benefits > div {
  display: flex;
  min-width: 0;
  padding: 18px;
  align-items: flex-start;
  gap: 12px;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

.sgcpyme-shop-benefits > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #ffffff;
  background: var(--sgc-success);
  border-radius: 50%;
  font-weight: 800;
}

.sgcpyme-shop-benefits p {
  display: flex;
  margin: 0;
  flex-direction: column;
  gap: 4px;
}

.sgcpyme-shop-benefits strong {
  color: var(--sgc-heading);
}

.sgcpyme-shop-benefits small {
  color: var(--sgc-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Grid y tarjetas */

.sgcpyme-shop-page .woocommerce-notices-wrapper {
  margin-bottom: 24px;
}

.sgcpyme-shop-page ul.products {
  display: grid !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}

.sgcpyme-shop-page ul.products::before,
.sgcpyme-shop-page ul.products::after {
  display: none !important;
}

.sgcpyme-shop-page ul.products li.product {
  position: relative;
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 28px !important;
  flex-direction: column;
  overflow: hidden;
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-lg);
  box-shadow: var(--sgc-shadow-sm);
}

.sgcpyme-shop-page ul.products li.product::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--sgc-primary);
  content: "";
}

.sgcpyme-shop-page ul.products li.product.product_cat-licencias-taller:nth-child(2)::before {
  background: var(--sgc-accent);
}

.sgcpyme-shop-page ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sgcpyme-shop-page ul.products li.product a img {
  width: 100% !important;
  height: 260px !important;
  max-height: none !important;
  margin: 0 0 22px !important;
  padding: 24px;
  object-fit: contain;
  background:
    radial-gradient(circle at center, rgba(23, 105, 170, 0.08), transparent 60%),
    var(--sgc-background);
  border: 1px solid var(--sgc-border);
  border-radius: 16px;
}

.sgcpyme-shop-product-label {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 7px 11px;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sgcpyme-shop-product-label--172 {
  color: var(--sgc-heading);
  background: var(--sgc-accent-soft);
}

.sgcpyme-shop-page ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 0 !important;
  color: var(--sgc-heading);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
}

.sgcpyme-shop-product-excerpt {
  margin: 12px 0 0;
  color: var(--sgc-muted);
  font-size: 0.98rem;
}

.sgcpyme-shop-page ul.products li.product .price {
  display: block;
  margin: 22px 0 !important;
  color: var(--sgc-primary);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
}

.sgcpyme-shop-page ul.products li.product .button {
  width: 100%;
  min-height: 52px;
  margin-top: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--sgc-primary);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(23, 105, 170, 0.18);
}

.sgcpyme-shop-page ul.products li.product .button:hover {
  color: #ffffff;
  background: var(--sgc-primary-hover);
}

.sgcpyme-shop-page .woocommerce-pagination {
  margin-top: 36px;
}

.sgcpyme-shop-page .woocommerce-pagination ul.page-numbers {
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 8px;
  border: 0;
}

.sgcpyme-shop-page .woocommerce-pagination ul.page-numbers li {
  border: 0;
}

.sgcpyme-shop-page .woocommerce-pagination .page-numbers a,
.sgcpyme-shop-page .woocommerce-pagination .page-numbers span {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  color: var(--sgc-heading);
  background: var(--sgc-surface);
  border: 1px solid var(--sgc-border);
  border-radius: 10px;
  text-decoration: none;
}

.sgcpyme-shop-page .woocommerce-pagination .page-numbers .current,
.sgcpyme-shop-page .woocommerce-pagination .page-numbers a:hover {
  color: #ffffff;
  background: var(--sgc-primary);
  border-color: var(--sgc-primary);
}

@media (hover: hover) and (pointer: fine) {
  .sgcpyme-shop-page ul.products li.product:hover {
    border-color: rgba(23, 105, 170, 0.32);
    box-shadow: var(--sgc-shadow-md);
    transform: translateY(-5px);
  }
}

@media (min-width: 700px) {
  .sgcpyme-shop-page {
    width: min(calc(100% - 3rem), var(--sgc-container));
  }

  .sgcpyme-shop-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sgcpyme-shop-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699px) {
  .sgcpyme-shop-page {
    padding: 40px 0 64px;
  }

  .sgcpyme-shop-hero {
    margin-bottom: 28px;
    text-align: left;
  }

  .sgcpyme-shop-hero__description {
    margin-left: 0;
  }

  .sgcpyme-shop-page ul.products li.product {
    padding: 22px !important;
    border-radius: 16px;
  }

  .sgcpyme-shop-page ul.products li.product a img {
    height: 220px !important;
    padding: 18px;
  }
}

/* Corrección definitiva de Mi cuenta */

body.woocommerce-account .sgcpyme-account-page > .woocommerce {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce::before,
body.woocommerce-account .sgcpyme-account-page .woocommerce::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation,
body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-content {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation {
  position: static;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation li {
  width: 100%;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation a {
  width: 100%;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-content {
  min-width: 0;
  padding: 30px;
}

body.woocommerce-account .sgcpyme-account-page .u-columns,
body.woocommerce-account .sgcpyme-account-page .woocommerce-Addresses {
  display: grid !important;
  width: 100%;
  grid-template-columns: 1fr !important;
  gap: 20px;
}

body.woocommerce-account .sgcpyme-account-page .u-column1,
body.woocommerce-account .sgcpyme-account-page .u-column2,
body.woocommerce-account .sgcpyme-account-page .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-Address {
  min-width: 0;
  padding: 24px;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-Address-title {
  display: flex;
  margin-bottom: 16px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-Address-title h2,
body.woocommerce-account .sgcpyme-account-page .woocommerce-Address-title h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-Address-title .edit {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  color: var(--sgc-primary);
  background: var(--sgc-primary-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-Address address {
  margin: 0;
  color: var(--sgc-text);
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.woocommerce-account .sgcpyme-account-page form .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 18px !important;
}

body.woocommerce-account .sgcpyme-account-page fieldset {
  margin: 26px 0 0;
  padding: 22px;
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius-md);
}

body.woocommerce-account .sgcpyme-account-page legend {
  padding-inline: 8px;
  color: var(--sgc-heading);
  font-weight: 800;
}

body.woocommerce-account .sgcpyme-account-page .woocommerce-orders-table {
  width: 100%;
}

@media (min-width: 700px) {
  body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-Addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.woocommerce-account .sgcpyme-account-page .u-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 960px) {
  body.woocommerce-account .sgcpyme-account-page > .woocommerce {
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 30px !important;
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation {
    position: sticky;
    top: calc(var(--sgc-header-height) + 28px);
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-content {
    padding: 20px;
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-Address {
    padding: 20px;
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-Address-title {
    flex-direction: column;
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-Address-title .edit {
    align-self: flex-start;
  }

  body.woocommerce-account .sgcpyme-account-page .woocommerce-MyAccount-content table.shop_table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
