:root {
  --o3d-bg: #f7f2ea;
  --o3d-surface: #ffffff;
  --o3d-text: #211f1c;
  --o3d-muted: #706a62;
  --o3d-accent: #e3b241;
  --o3d-accent-dark: #c99a2e;
  --o3d-border: rgba(33, 31, 28, 0.1);
  --o3d-radius: 24px;
  --o3d-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--o3d-bg);
  color: var(--o3d-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.o3d-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.o3d-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(247, 242, 234, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--o3d-border);
}

.o3d-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.o3d-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}

.o3d-logo__image {
  display: block;
  width: auto;
  height: 48px;
  max-width: 190px;
}

/* WooCommerce can apply broad image rules; keep header logo fixed. */
.o3d-header .o3d-logo img.o3d-logo__image {
  display: block;
  width: auto !important;
  height: 48px !important;
  max-width: 190px !important;
  max-height: 48px !important;
  object-fit: contain;
}

.o3d-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 750;
}

.o3d-nav a {
  color: var(--o3d-text);
  text-decoration: none;
  white-space: nowrap;
}

.o3d-nav a:hover {
  color: var(--o3d-accent);
}

.o3d-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--o3d-text);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 850;
}

.o3d-nav__cta:hover {
  background: #000;
  color: #fff !important;
}

.o3d-nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--o3d-border);
  border-radius: 999px;
  padding: 0.68rem 0.95rem;
  background: rgba(255, 255, 255, 0.55);
}

.o3d-nav__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--o3d-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.o3d-menu-toggle {
  display: none;
}

/* Buttons */
.o3d-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: var(--o3d-accent);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.o3d-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.single_add_to_cart_button:hover {
  background: var(--o3d-accent-dark);
  color: #fff;
}

.o3d-button--secondary {
  background: var(--o3d-text);
}

.o3d-button--secondary:hover {
  background: #000;
}

/* Layout */
.o3d-main {
  padding: clamp(12px, 2vw, 16px) 0 48px;
}

.o3d-kicker {
  margin: 0 0 8px;
  color: var(--o3d-accent-dark) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.o3d-hero .o3d-kicker,
.o3d-section__header .o3d-kicker,
.o3d-page-hero .o3d-kicker {
  margin-bottom: 10px;
}

/* Home */
.o3d-hero {
  position: relative;
  min-height: clamp(460px, 62vh, 720px);
  display: grid;
  align-content: center;
  padding: clamp(40px, 7vw, 88px) 0 clamp(44px, 7vw, 92px);
  isolation: isolate;
}

.o3d-hero::before {
  content: "";
  position: absolute;
  inset: clamp(-16px, -2vw, -8px) calc(50% - 50vw);
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(247, 242, 234, 0.95) 0%,
      rgba(247, 242, 234, 0.82) 34%,
      rgba(247, 242, 234, 0.62) 58%,
      rgba(247, 242, 234, 0.82) 100%
    ),
    url("/wp-content/themes/obrador3d/assets/images/hero/hero-bg-obrador3d.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.o3d-hero::after {
  content: "";
  position: absolute;
  inset: auto calc(50% - 50vw) -1px;
  z-index: -1;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(247, 242, 234, 0),
    var(--o3d-bg)
  );
}

.o3d-hero__content {
  max-width: 960px;
}

.o3d-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.o3d-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--o3d-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.o3d-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .o3d-hero {
    position: relative !important;
    min-height: auto !important;
    padding: 34px 0 52px !important;
    align-content: start !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  .o3d-hero::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 calc(50% - 50vw) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background:
      linear-gradient(
        to bottom,
        rgba(247, 242, 234, 0.42) 0%,
        rgba(247, 242, 234, 0.72) 48%,
        rgba(247, 242, 234, 0.96) 100%
      ),
      url("/wp-content/themes/obrador3d/assets/images/hero/hero-bg-obrador3d.png") !important;
    background-size: auto 115% !important;
    background-position: left top !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  .o3d-hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: auto calc(50% - 50vw) 0 !important;
    z-index: 0 !important;
    height: 90px !important;
    pointer-events: none !important;
    background: linear-gradient(
      to bottom,
      rgba(247, 242, 234, 0),
      var(--o3d-bg)
    ) !important;
  }

  .o3d-hero__content {
    position: relative !important;
    z-index: 1 !important;
  }
}

/* Shared sections and cards */
.o3d-section {
  margin-top: clamp(32px, 5vw, 64px);
}

.o3d-section__header {
  max-width: 820px;
  margin-bottom: 28px;
}

.o3d-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.o3d-section h2.o3d-section__title--medium {
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.o3d-section p {
  color: var(--o3d-muted);
  line-height: 1.7;
}

.o3d-feature-grid,
.o3d-content-grid,
.o3d-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.o3d-feature-card,
.o3d-content-card,
.o3d-contact-card {
  background: var(--o3d-surface);
  border: 1px solid var(--o3d-border);
  border-radius: var(--o3d-radius);
  box-shadow: var(--o3d-shadow);
}

.o3d-feature-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.o3d-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(227, 178, 65, 0.12), transparent 36%);
  pointer-events: none;
}

.o3d-feature-card h3,
.o3d-feature-card p {
  position: relative;
}

.o3d-feature-card h3,
.o3d-process__step h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.04em;
}

.o3d-feature-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.o3d-feature-card p,
.o3d-process__step p,
.o3d-content-card p {
  margin: 0;
  color: var(--o3d-muted);
  line-height: 1.65;
}

.o3d-services,
.o3d-process,
.o3d-portfolio-teaser,
.o3d-page-cta,
.o3d-legal-content {
  background: var(--o3d-surface);
  border: 1px solid var(--o3d-border);
  border-radius: 32px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--o3d-shadow);
}

.o3d-services .o3d-section__header {
  margin-bottom: 28px;
}

.o3d-services .o3d-feature-card {
  box-shadow: none;
  background: rgba(247, 242, 234, 0.52);
}

.o3d-services .o3d-feature-card::before {
  background: radial-gradient(circle at top right, rgba(227, 178, 65, 0.12), transparent 36%);
}

.o3d-process__grid {
  margin-top: 28px;
}

.o3d-process__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.o3d-process__step {
  padding: 22px 0 0;
  border-top: 1px solid var(--o3d-border);
}

.o3d-portfolio-teaser,
.o3d-page-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(227, 178, 65, 0.18), transparent 34%),
    var(--o3d-surface);
}

.o3d-portfolio-teaser__content p,
.o3d-page-cta p {
  max-width: 720px;
  color: var(--o3d-muted);
  line-height: 1.7;
}

.o3d-portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.o3d-portfolio-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(227, 178, 65, 0.42);
  background: rgba(227, 178, 65, 0.1);
  color: var(--o3d-text);
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  font-size: 0.88rem;
  font-weight: 750;
}

.o3d-portfolio-teaser__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

.o3d-portfolio-teaser__actions .o3d-button {
  width: 100%;
}

/* Generic pages */
.o3d-page {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.o3d-page__header h1,
.o3d-shop h1,
.woocommerce-products-header__title {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.o3d-page__content {
  color: var(--o3d-text);
  line-height: 1.7;
}

.o3d-page__content p {
  max-width: 760px;
}

.o3d-page__content > section + section {
  margin-top: clamp(34px, 6vw, 72px);
}

.o3d-page-hero {
  margin-bottom: clamp(28px, 5vw, 52px);
  padding-top: clamp(6px, 2vw, 18px);
}

.o3d-page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.7rem, 6.6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.o3d-page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--o3d-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.o3d-content-card {
  min-height: 100%;
  padding: 26px;
}

.o3d-content-card h2,
.o3d-contact-card h2 {
  margin: 0 0 12px;
  color: var(--o3d-text);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.o3d-content-card p,
.o3d-contact-card p {
  max-width: 62ch;
}

.o3d-page-cta {
  margin-top: clamp(34px, 6vw, 72px);
}

.o3d-page-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.o3d-page-cta p {
  margin-bottom: 0;
}

/* Contact */
.o3d-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.o3d-contact-card {
  min-height: 100%;
  padding: clamp(24px, 4vw, 36px);
}

.o3d-contact-card--highlight {
  background:
    radial-gradient(circle at top right, rgba(227, 178, 65, 0.18), transparent 36%),
    var(--o3d-surface);
}

.o3d-contact-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.o3d-contact-card p {
  color: var(--o3d-muted);
  line-height: 1.7;
}

.o3d-check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.o3d-check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--o3d-text);
  font-weight: 650;
  line-height: 1.5;
}

.o3d-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--o3d-accent-dark);
  font-weight: 900;
}

.o3d-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Legal pages */
.o3d-legal-content {
  color: var(--o3d-text);
}

.o3d-legal-content h2 {
  margin: 2.2rem 0 0.85rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.o3d-legal-content h2:first-child {
  margin-top: 0;
}

.o3d-legal-content h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.o3d-legal-content p,
.o3d-legal-content li {
  color: var(--o3d-muted);
  line-height: 1.75;
}

.o3d-legal-content ul {
  padding-left: 1.25rem;
}

.o3d-legal-content a {
  color: var(--o3d-accent-dark);
  font-weight: 750;
}

/* Footer */
.o3d-footer {
  margin-top: clamp(32px, 5vw, 56px);
  padding: 22px 0;
  border-top: 1px solid var(--o3d-border);
  color: var(--o3d-muted);
}

.o3d-footer__minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.o3d-footer__copy {
  margin: 0;
  color: var(--o3d-muted);
  font-size: 0.82rem;
}

.o3d-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.o3d-footer__legal a {
  color: var(--o3d-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.o3d-footer__legal a:hover {
  color: var(--o3d-accent);
}

/* WooCommerce catalog and classic components */
.woocommerce,
.woocommerce-page {
  overflow-wrap: anywhere;
  word-break: normal;
}

.o3d-shop,
.woocommerce div.product {
  background: var(--o3d-surface);
  border: 1px solid var(--o3d-border);
  border-radius: 32px;
  box-shadow: var(--o3d-shadow);
}

.o3d-shop {
  padding: clamp(24px, 4vw, 48px);
}

.woocommerce ul.products {
  margin-top: 32px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--o3d-surface);
  border: 1px solid var(--o3d-border);
  border-radius: var(--o3d-radius);
  padding: 18px;
  box-shadow: var(--o3d-shadow);
  overflow: hidden;
}

.woocommerce ul.products li.product img {
  border-radius: 18px;
  background: #efe7dc;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--o3d-text);
  font-weight: 850;
}

.woocommerce ul.products li.product .price {
  color: var(--o3d-text);
  font-weight: 800;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 24px;
}

/* Shop archive: ordering is removed in archive-product.php; this is a safe fallback. */
.woocommerce .woocommerce-ordering {
  display: none;
}

.widget,
.wp-block-search,
.wp-block-categories,
.wp-block-archives,
.wp-block-latest-posts {
  display: none;
}

.woocommerce div.product {
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 28px;
}

.woocommerce div.product .product_title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--o3d-text);
  font-size: 1.5rem;
  font-weight: 900;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  min-width: 0 !important;
  max-width: 100% !important;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.woocommerce .quantity .qty {
  width: 76px;
  min-height: 44px;
  border: 1px solid var(--o3d-border);
  border-radius: 999px;
  padding: 0.65rem 0.8rem;
  text-align: center;
  font: inherit;
  background: #fff;
}

.woocommerce div.product .summary,
.woocommerce div.product .entry-summary,
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-Tabs-panel--description,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li,
.woocommerce div.product .woocommerce-product-details__short-description p,
.woocommerce div.product .woocommerce-product-details__short-description *,
.woocommerce div.product .summary * {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  font-family: inherit !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  display: block !important;
  width: 100% !important;
  margin: 18px 0 24px !important;
  padding: 18px 20px !important;
  background: rgba(247, 242, 234, 0.58) !important;
  border: 1px solid var(--o3d-border) !important;
  border-radius: 20px !important;
  color: var(--o3d-muted) !important;
  line-height: 1.7 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description p {
  margin: 0 0 0.9rem !important;
  color: var(--o3d-muted) !important;
  line-height: 1.7 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 36px 0 18px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom-color: var(--o3d-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--o3d-border);
  border-radius: 999px;
  background: #fff;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.7rem 1rem;
  font-weight: 800;
  color: var(--o3d-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: rgba(227, 178, 65, 0.12);
  border-color: rgba(227, 178, 65, 0.42);
}

@media (min-width: 861px) {
  .woocommerce div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: start;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    float: none !important;
    width: auto !important;
  }

  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells {
    grid-column: 1 / -1;
  }
}

/* WooCommerce buttons, notices, forms and tables */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--o3d-accent) !important;
  color: #fff !important;
  padding: 0.85rem 1.25rem !important;
  font-family: inherit !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover {
  background: var(--o3d-accent-dark) !important;
  color: #fff !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative;
  display: block;
  border: 1px solid var(--o3d-border);
  border-top: 4px solid var(--o3d-accent-dark);
  border-radius: 18px;
  background: #fff;
  color: var(--o3d-text);
  padding: 1rem 1.25rem 1rem 3rem !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  top: 1rem;
  left: 1.15rem;
  color: var(--o3d-accent-dark);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: 12px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection {
  min-height: 46px;
  border: 1px solid var(--o3d-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--o3d-text);
  font-family: inherit;
}

.woocommerce table.shop_table {
  width: 100%;
  border: 1px solid var(--o3d-border);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--o3d-border);
  color: var(--o3d-text);
  line-height: 1.5;
  vertical-align: middle;
}

.woocommerce table.shop_table .product-name,
.woocommerce table.shop_table .product-total,
.woocommerce table.shop_table .cart-subtotal,
.woocommerce table.shop_table .order-total {
  overflow-wrap: anywhere;
}

.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text {
  color: var(--o3d-muted);
  line-height: 1.6;
}

.woocommerce-terms-and-conditions-wrapper a,
.woocommerce-privacy-policy-text a {
  color: var(--o3d-accent-dark);
  font-weight: 750;
}

.woocommerce-checkout #payment {
  background: #fff;
  border: 1px solid var(--o3d-border);
  border-radius: 24px;
}

.woocommerce-checkout #payment div.payment_box {
  background: rgba(227, 178, 65, 0.1);
  color: var(--o3d-text);
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(227, 178, 65, 0.1);
}

/* WooCommerce Blocks hardening */
.woocommerce *,
.woocommerce-page *,
.wc-block-cart *,
.wc-block-checkout *,
.wc-block-components-main *,
.wc-block-components-sidebar *,
.wc-block-components-order-summary * {
  box-sizing: border-box;
  min-width: 0;
}

.woocommerce [class~="overflow-visible!"],
.woocommerce-page [class~="overflow-visible!"],
.wc-block-cart [class~="overflow-visible!"],
.wc-block-checkout [class~="overflow-visible!"],
.wc-block-components-main [class~="overflow-visible!"],
.wc-block-components-sidebar [class~="overflow-visible!"],
.wc-block-components-order-summary [class~="overflow-visible!"] {
  overflow: hidden !important;
}

.woocommerce [class~="px-0!"],
.woocommerce-page [class~="px-0!"],
.wc-block-cart [class~="px-0!"],
.wc-block-checkout [class~="px-0!"],
.wc-block-components-main [class~="px-0!"],
.wc-block-components-sidebar [class~="px-0!"],
.wc-block-components-order-summary [class~="px-0!"] {
  padding-left: clamp(14px, 4vw, 28px) !important;
  padding-right: clamp(14px, 4vw, 28px) !important;
}

.wc-block-cart,
.wc-block-checkout,
.wc-block-components-main,
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wc-block-components-order-summary__content,
.wc-block-components-order-summary-item,
.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__total-price,
.wc-block-components-product-name,
.wc-block-components-product-name a,
.wc-block-components-product-metadata,
.wc-block-components-product-metadata *,
.wc-block-cart-item,
.wc-block-cart-item__wrap,
.wc-block-cart-item__product,
.wc-block-cart-item__product *,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.wc-block-components-product-name,
.wc-block-components-product-name a {
  display: block;
  line-height: 1.35 !important;
}

.wc-block-components-product-metadata {
  display: block !important;
  margin-top: 8px !important;
  color: var(--o3d-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

/* Checkout block order summary */
.wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto) !important;
  gap: 12px !important;
  align-items: start !important;
}

.wc-block-components-order-summary-item__description {
  min-width: 0 !important;
  max-width: 100% !important;
}

.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item__total-price *,
.wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__value,
.wc-block-components-totals-item__value * {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.wc-block-components-order-summary-item__total-price {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: max-content !important;
  justify-self: end !important;
  align-self: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  padding: 0.34rem 0.58rem !important;
  border-radius: 999px !important;
  background: rgba(227, 178, 65, 0.12) !important;
  border: 1px solid rgba(227, 178, 65, 0.32) !important;
  color: var(--o3d-text) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: right !important;
}

.wc-block-components-order-summary-item__total-price * {
  color: var(--o3d-text) !important;
  font-weight: 850 !important;
}

.wc-block-components-order-summary-item__quantity,
.wc-block-components-order-summary-item__quantity-badge,
.wc-block-components-product-image .wc-block-components-product-image__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 26px !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: var(--o3d-accent-dark) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.wc-block-components-order-summary-item__quantity span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  position: relative !important;
  top: 3px !important;
  right: -4px !important;
  transform: none !important;
}

/* Checkout block place order button */
.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button[type="button"],
.wc-block-components-checkout-place-order-button[type="submit"],
.wc-block-components-button.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions .wc-block-components-button,
.wc-block-components-checkout-place-order-button.contained,
.wc-block-components-button.contained,
.woocommerce-checkout #place_order,
.woocommerce button#place_order,
.woocommerce-page button#place_order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--o3d-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions .wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button.contained:hover,
.wc-block-components-button.contained:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce button#place_order:hover,
.woocommerce-page button#place_order:hover {
  background: var(--o3d-accent-dark) !important;
  color: #fff !important;
}

.wc-block-components-checkout-place-order-button:disabled,
.wc-block-components-button:disabled,
.woocommerce-checkout #place_order:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* WooCommerce Blocks quantity selector */
.wc-block-components-quantity-selector {
  display: inline-grid !important;
  grid-template-columns: 30px 42px 30px !important;
  align-items: center !important;
  width: auto !important;
  max-width: 104px !important;
  min-height: 34px !important;
  border: 1px solid var(--o3d-border) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.wc-block-components-quantity-selector__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 34px !important;
  min-width: 30px !important;
  min-height: 34px !important;
  max-width: 30px !important;
  max-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--o3d-text) !important;
  font-family: inherit !important;
  font-size: 0 !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
}

.wc-block-components-quantity-selector__button--minus::before,
.wc-block-components-quantity-selector__button--plus::before {
  display: block !important;
  font-size: 0.95rem !important;
  line-height: 34px !important;
  font-weight: 800 !important;
  color: var(--o3d-text) !important;
  text-align: center !important;
}

.wc-block-components-quantity-selector__button--minus::before {
  content: "−";
}

.wc-block-components-quantity-selector__button--plus::before {
  content: "+";
}

.wc-block-components-quantity-selector__button:hover {
  background: rgba(227, 178, 65, 0.12) !important;
  color: var(--o3d-accent-dark) !important;
}

.wc-block-components-quantity-selector__button svg,
.wc-block-components-quantity-selector__button span {
  display: none !important;
}

.wc-block-components-quantity-selector__input {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--o3d-border) !important;
  border-right: 1px solid var(--o3d-border) !important;
  background: #fff !important;
  text-align: center !important;
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  line-height: 34px !important;
  color: var(--o3d-text) !important;
}

/* Responsive */
@media (max-width: 960px) {
  .o3d-header {
    padding: 12px 0;
  }

  .o3d-header__inner {
    align-items: center;
  }

  .o3d-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--o3d-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .o3d-menu-toggle__line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--o3d-text);
  }

  .o3d-nav {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: rgba(247, 242, 234, 0.97);
    border: 1px solid var(--o3d-border);
    border-radius: 24px;
    box-shadow: var(--o3d-shadow);
  }

  .o3d-menu-open .o3d-nav {
    display: flex;
  }

  .o3d-nav a,
  .o3d-nav__cta,
  .o3d-nav__cart {
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .o3d-header .o3d-logo img.o3d-logo__image {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 168px !important;
  }
}

@media (max-width: 1100px) {
  .o3d-process__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .o3d-feature-grid,
  .o3d-content-grid,
  .o3d-process__grid,
  .o3d-contact-layout {
    grid-template-columns: 1fr;
  }

  .o3d-portfolio-teaser,
  .o3d-page-cta {
    grid-template-columns: 1fr;
  }

  .o3d-page-cta .o3d-button {
    width: fit-content;
  }

  .o3d-portfolio-teaser__actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .o3d-portfolio-teaser__actions .o3d-button {
    width: auto;
  }

  .woocommerce div.product {
    display: block !important;
    padding: 22px;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce div.product .entry-summary,
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .woocommerce-Tabs-panel,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    clear: both !important;
  }

  .woocommerce div.product form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce .quantity .qty,
  .woocommerce div.product form.cart .button {
    width: 100%;
  }

  .woocommerce div.product .woocommerce-product-details__short-description {
    padding: 16px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 760px) {
  .o3d-header {
    padding: 8px 0;
  }

  .o3d-main {
    padding-top: 2px;
  }

  .o3d-hero {
    padding-top: 6px;
  }

  .o3d-kicker {
    margin-bottom: 7px;
  }

  .o3d-services {
    padding: 24px;
  }

  .o3d-services .o3d-section__header {
    margin-bottom: 22px;
  }

  .o3d-page-hero {
    padding-top: 4px;
    margin-bottom: 28px;
  }

  .o3d-page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 4.1rem);
    line-height: 0.92;
  }

  .o3d-page-hero p {
    margin-top: 14px;
    font-size: 1.02rem;
  }

  .o3d-page__content > section + section {
    margin-top: 36px;
  }

  .o3d-content-card,
  .o3d-contact-card,
  .o3d-process,
  .o3d-page-cta,
  .o3d-services,
  .o3d-portfolio-teaser,
  .o3d-legal-content {
    border-radius: 24px;
  }

  .o3d-footer {
    margin-top: 28px;
    padding: 20px 0;
  }

  .o3d-footer__minimal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .o3d-footer__legal {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    padding: 1rem 1rem 1rem 2.75rem !important;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button {
    display: flex;
    width: 100%;
    margin: 12px 0 0;
  }

  .wc-block-components-order-summary-item {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .wc-block-components-order-summary-item__total-price {
    width: fit-content !important;
    max-width: max-content !important;
    min-width: 0 !important;
    justify-self: start !important;
    text-align: left !important;
  }
}

@media (max-width: 480px) {
  .o3d-nav {
    top: 68px;
  }

  .o3d-header .o3d-logo img.o3d-logo__image {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 150px !important;
  }

  .o3d-portfolio-teaser__actions,
  .o3d-contact-actions {
    flex-direction: column;
  }

  .o3d-portfolio-teaser__actions .o3d-button,
  .o3d-page-cta .o3d-button,
  .o3d-contact-actions .o3d-button {
    width: 100%;
  }
}

/* Checkout summary: imagen, badge y texto mejor alineados */
.wc-block-components-order-summary .wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) max-content !important;
  gap: 14px !important;
  align-items: center !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image {
  position: relative !important;
  width: 72px !important;
  min-width: 72px !important;
  align-self: center !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image img {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  margin: 0 auto !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  position: absolute !important;
  top: -8px !important;
  right: -2px !important;
  z-index: 2 !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  min-width: 0 !important;
  max-width: 100% !important;
  align-self: center !important;
  padding-left: 2px !important;
}

.wc-block-components-order-summary .wc-block-components-product-name {
  display: block !important;
  line-height: 1.35 !important;
}

.wc-block-components-order-summary .wc-block-components-product-metadata {
  margin-top: 6px !important;
  line-height: 1.45 !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
  align-self: center !important;
  justify-self: end !important;
}

/* Portfolio gallery */
.o3d-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.o3d-gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--o3d-surface);
  border: 1px solid var(--o3d-border);
  border-radius: var(--o3d-radius);
  box-shadow: var(--o3d-shadow);
}

.o3d-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(227, 178, 65, 0.08);
}

.o3d-gallery-card div {
  padding: 20px;
}

.o3d-gallery-card h2 {
  margin: 0 0 8px;
  color: var(--o3d-text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.o3d-gallery-card p {
  margin: 0;
  color: var(--o3d-muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .o3d-process__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .o3d-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .o3d-gallery-grid {
    grid-template-columns: 1fr;
  }

  .o3d-gallery-card img {
    aspect-ratio: 16 / 10;
  }
}

/* Portfolio spacing between gallery and content cards */
.o3d-gallery-grid + .o3d-content-grid {
  margin-top: clamp(34px, 6vw, 72px);
}

/* Trust blocks */
.o3d-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(227, 178, 65, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(227, 178, 65, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.o3d-trust-strip__item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.o3d-trust-strip__item strong {
  color: var(--o3d-text);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.25;
}

.o3d-trust-strip__item span {
  color: var(--o3d-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.o3d-product-trust {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(227, 178, 65, 0.34);
  border-radius: 20px;
  background: rgba(247, 242, 234, 0.58);
}

.o3d-product-trust p {
  margin: 0;
  color: var(--o3d-muted);
  line-height: 1.55;
}

.o3d-product-trust strong {
  color: var(--o3d-text);
}

@media (max-width: 1100px) {
  .o3d-process__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .o3d-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .o3d-trust-strip {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.o3d-free-shipping-notice {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    font-size: 0.98rem;
    line-height: 1.45;
    border: 1px solid rgba(227, 178, 65, 0.38);
    background: rgba(227, 178, 65, 0.10);
    color: #2d2412;
}

.o3d-free-shipping-notice__main {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.o3d-free-shipping-notice strong {
    font-weight: 700;
}

.o3d-free-shipping-notice__icon {
    font-size: 1.25rem;
    line-height: 1;
    flex: 0 0 auto;
}

.o3d-free-shipping-notice--success {
    border-color: rgba(201, 154, 46, 0.55);
    background: linear-gradient(
        135deg,
        rgba(227, 178, 65, 0.18),
        rgba(201, 154, 46, 0.10)
    );
    color: #2d2412;
}

.o3d-free-shipping-notice__zones {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.o3d-free-shipping-notice__zones-label {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.78;
    margin-right: 0.15rem;
}

.o3d-free-shipping-notice__zones button {
    appearance: none;
    border: 1px solid rgba(201, 154, 46, 0.42);
    background: rgba(255, 255, 255, 0.68);
    color: #2d2412;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.o3d-free-shipping-notice__zones button:hover {
    border-color: rgba(201, 154, 46, 0.75);
    background: rgba(227, 178, 65, 0.16);
    transform: translateY(-1px);
}

.o3d-free-shipping-notice__zones button.is-active {
    border-color: rgba(201, 154, 46, 0.92);
    background: rgba(227, 178, 65, 0.26);
    font-weight: 700;
}

.o3d-free-shipping-notice::after {
    content: attr(data-o3d-helper);
    display: block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .o3d-free-shipping-notice {
        font-size: 0.92rem;
        padding: 0.85rem 0.95rem;
        border-radius: 15px;
    }

    .o3d-free-shipping-notice__zones {
        gap: 0.4rem;
    }

    .o3d-free-shipping-notice__zones-label {
        width: 100%;
    }

    .o3d-free-shipping-notice__zones button {
        font-size: 0.78rem;
        padding: 0.42rem 0.62rem;
    }
}

.added_to_cart.wc-forward {
    display: none !important;
}

.ajax_add_to_cart.added {
    position: relative;
}

.ajax_add_to_cart.added::after {
    content: " ✓ Añadido";
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.85em;
    font-weight: 600;
}

.o3d-infographic-block {
  background: var(--o3d-surface);
  border: 1px solid var(--o3d-border);
  border-radius: 32px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--o3d-shadow);
}

.o3d-infographic-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--o3d-border);
  background: #fff;
}

.o3d-infographic-card img {
  display: block;
  width: 100%;
  height: auto;
}
