/*
Theme Name: MicroSmart Nova
Theme URI: https://microsmart.es
Author: MicroSmart
Description: Futuristic WooCommerce theme for MicroSmart IA, repairs and store.
Version: 1.0.0
Text Domain: microsmart-nova
*/

:root {
  --ms-ink: #071a33;
  --ms-ink-soft: #294466;
  --ms-muted: #6b7f99;
  --ms-blue: #155aa8;
  --ms-blue-bright: #1f7cff;
  --ms-green: #67df00;
  --ms-green-deep: #35af2f;
  --ms-surface: rgba(255, 255, 255, 0.78);
  --ms-surface-solid: #ffffff;
  --ms-line: rgba(12, 36, 68, 0.12);
  --ms-shadow: 0 24px 80px rgba(12, 36, 68, 0.12);
  --ms-radius-xl: 34px;
  --ms-radius-lg: 24px;
  --ms-radius-md: 18px;
  --ms-shell: min(1180px, calc(100% - 40px));
  --ms-font-display: "Space Grotesk", "Sora", sans-serif;
  --ms-font-body: "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ms-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(103, 223, 0, 0.18), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(31, 124, 255, 0.18), transparent 26rem),
    linear-gradient(180deg, #f5fbff 0%, #ffffff 48%, #f6fff6 100%);
  font-family: var(--ms-font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.ms-shell {
  width: var(--ms-shell);
  margin: 0 auto;
}

.ms-site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.ms-neural-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.58;
}

.ms-page-haze {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 90, 168, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 90, 168, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 86%);
  pointer-events: none;
  z-index: -1;
}

.ms-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(248, 252, 255, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 34px rgba(12, 36, 68, 0.06);
}

.ms-header-inner {
  width: min(1360px, calc(100% - 34px));
  min-height: 94px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr 188px;
  gap: 22px;
  align-items: center;
}

.ms-logo {
  display: inline-flex;
  align-items: center;
  width: 320px;
}

.ms-logo img {
  display: block;
  width: 100%;
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
}

.ms-nav {
  justify-self: center;
}

.ms-nav ul,
.ms-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.ms-nav a {
  position: relative;
  display: inline-flex;
  padding: 12px 0;
  color: rgba(7, 26, 51, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.ms-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.ms-nav a:hover,
.ms-nav .current-menu-item > a {
  color: var(--ms-ink);
}

.ms-nav a:hover::after,
.ms-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.ms-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.ms-icon-link,
.ms-menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ms-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(12, 36, 68, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ms-icon-link:hover,
.ms-menu-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 124, 255, 0.4);
  box-shadow: 0 16px 36px rgba(31, 124, 255, 0.16);
}

.ms-menu-toggle {
  display: none;
  cursor: pointer;
}

.ms-main {
  min-height: 60vh;
}

.ms-hero {
  position: relative;
  padding: clamp(68px, 8vw, 112px) 0 clamp(54px, 7vw, 92px);
}

.ms-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.ms-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ms-green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ms-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--ms-green), var(--ms-blue-bright));
}

.ms-hero h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.ms-hero h1 span {
  display: block;
  padding-bottom: 0.08em;
  transform-origin: left bottom;
  animation: msWordIn 520ms cubic-bezier(0.2, 0.95, 0.18, 1) both;
}

.ms-hero h1 span:nth-child(2) {
  animation-delay: 70ms;
}

.ms-hero h1 span:nth-child(3) {
  animation-delay: 140ms;
}

.ms-hero h1 span:nth-child(4) {
  animation-delay: 210ms;
}

.ms-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(7, 26, 51, 0.72);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.75;
}

.ms-hero-actions,
.ms-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ms-button {
  --button-a: var(--ms-green);
  --button-b: var(--ms-green-deep);
  position: relative;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--button-a), var(--button-b));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(53, 175, 47, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ms-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.ms-button span {
  position: relative;
  z-index: 1;
}

.ms-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(53, 175, 47, 0.32);
}

.ms-button:hover::before {
  transform: translateX(120%);
}

.ms-button-blue {
  --button-a: var(--ms-blue-bright);
  --button-b: var(--ms-blue);
  box-shadow: 0 18px 38px rgba(31, 124, 255, 0.22);
}

.ms-button-blue:hover {
  box-shadow: 0 22px 46px rgba(31, 124, 255, 0.31);
}

.ms-platform-strip {
  margin-top: 30px;
  width: min(760px, 100%);
  padding: 14px 18px;
  border: 1px solid rgba(31, 124, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ms-ink-soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 42px rgba(12, 36, 68, 0.08);
}

.ms-orbital-card {
  position: relative;
  min-height: 628px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 255, 0.66)),
    radial-gradient(circle at 20% 10%, rgba(103, 223, 0, 0.18), transparent 20rem);
  box-shadow: var(--ms-shadow);
  overflow: hidden;
}

.ms-orbital-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: 30px;
  pointer-events: none;
}

.ms-ai-panel {
  position: relative;
  display: grid;
  gap: 16px;
  z-index: 1;
}

.ms-call-card,
.ms-whatsapp-card,
.ms-stat-card,
.ms-benefit-card,
.ms-feature-card,
.ms-product-mini {
  border: 1px solid rgba(21, 90, 168, 0.12);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--ms-radius-lg);
  box-shadow: 0 18px 44px rgba(12, 36, 68, 0.1);
  backdrop-filter: blur(14px);
}

.ms-call-card,
.ms-whatsapp-card {
  padding: 20px;
}

.ms-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ms-card-title {
  margin: 0;
  font-family: var(--ms-font-display);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.ms-card-subtitle {
  margin: 6px 0 0;
  color: var(--ms-muted);
  font-size: 13px;
  font-weight: 700;
}

.ms-timer {
  color: var(--ms-blue);
  font-family: var(--ms-font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ms-wave {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  height: 34px;
}

.ms-wave i {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ms-green), var(--ms-blue-bright));
  animation: msWave 860ms ease-in-out infinite;
}

.ms-wave i:nth-child(2) {
  animation-delay: 90ms;
}

.ms-wave i:nth-child(3) {
  animation-delay: 180ms;
}

.ms-wave i:nth-child(4) {
  animation-delay: 270ms;
}

.ms-wave i:nth-child(5) {
  animation-delay: 360ms;
}

.ms-call-lines {
  display: grid;
  gap: 10px;
}

.ms-call-line {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 249, 255, 0.88);
  color: rgba(7, 26, 51, 0.8);
  font-size: 14px;
  line-height: 1.45;
  animation: msPulseLine 5.8s ease-in-out infinite;
}

.ms-call-line strong {
  display: block;
  color: var(--ms-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-call-line:nth-child(2) {
  animation-delay: 1.2s;
}

.ms-call-line:nth-child(3) {
  animation-delay: 2.4s;
}

.ms-whatsapp-card {
  background:
    linear-gradient(180deg, rgba(234, 255, 242, 0.86), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 18% 8%, rgba(103, 223, 0, 0.16), transparent 16rem);
}

.ms-chat-screen {
  height: 262px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
}

.ms-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 16px;
  color: rgba(7, 26, 51, 0.84);
  background: #ffffff;
  font-size: 14px;
  line-height: 1.42;
  box-shadow: 0 8px 18px rgba(12, 36, 68, 0.08);
  animation: msBubbleFlow 9s linear infinite;
}

.ms-bubble-ai {
  align-self: flex-end;
  background: linear-gradient(135deg, #d9ffd0, #c2ffb5);
}

.ms-bubble:nth-child(2) {
  animation-delay: -1.5s;
}

.ms-bubble:nth-child(3) {
  animation-delay: -3s;
}

.ms-bubble:nth-child(4) {
  animation-delay: -4.5s;
}

.ms-bubble:nth-child(5) {
  animation-delay: -6s;
}

.ms-bubble:nth-child(6) {
  animation-delay: -7.5s;
}

.ms-section {
  padding: clamp(54px, 7vw, 96px) 0;
}

.ms-section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.ms-section-head-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ms-section h2,
.ms-page-title {
  margin: 0;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.ms-section-copy,
.ms-page-copy {
  margin: 18px 0 0;
  color: rgba(7, 26, 51, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.ms-benefit-band {
  position: relative;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--ms-radius-xl);
  background:
    radial-gradient(circle at 8% 20%, rgba(103, 223, 0, 0.2), transparent 20rem),
    radial-gradient(circle at 90% 10%, rgba(31, 124, 255, 0.2), transparent 22rem),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--ms-shadow);
  overflow: hidden;
}

.ms-benefit-band h2 {
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.98;
}

.ms-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ms-benefit-card,
.ms-feature-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ms-benefit-card::before,
.ms-feature-card::before,
.ms-product-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transform: translateX(-120%);
  transition: transform 560ms ease;
}

.ms-benefit-card:hover,
.ms-feature-card:hover,
.ms-product-mini:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(31, 124, 255, 0.14);
}

.ms-benefit-card:hover::before,
.ms-feature-card:hover::before,
.ms-product-mini:hover::before {
  transform: translateX(120%);
}

.ms-benefit-card strong,
.ms-feature-card strong {
  position: relative;
  display: block;
  margin-bottom: 10px;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: 18px;
  letter-spacing: -0.04em;
}

.ms-benefit-card p,
.ms-feature-card p {
  position: relative;
  margin: 0;
  color: var(--ms-ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

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

.ms-system-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: var(--ms-radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 255, 0.72)),
    radial-gradient(circle at 86% 12%, rgba(31, 124, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 12% 80%, rgba(103, 223, 0, 0.16), transparent 16rem);
  box-shadow: var(--ms-shadow);
  overflow: hidden;
}

.ms-flow-copy p:last-child {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--ms-ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.ms-flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ms-flow-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--ms-green), var(--ms-blue-bright));
  box-shadow: 0 0 24px rgba(31, 124, 255, 0.26);
}

.ms-flow-steps span {
  position: relative;
  min-height: 92px;
  border: 1px solid rgba(21, 90, 168, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ms-ink);
  display: grid;
  place-items: center;
  font-family: var(--ms-font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 16px 34px rgba(12, 36, 68, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ms-flow-steps span:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(31, 124, 255, 0.16);
}

.ms-feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(103, 223, 0, 0.2), rgba(31, 124, 255, 0.16));
  display: grid;
  place-items: center;
  color: var(--ms-blue);
}

.ms-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
}

.ms-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ms-product-mini {
  position: relative;
  padding: 14px;
  overflow: hidden;
  text-decoration: none;
}

.ms-product-mini img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  background: #f4f8fc;
}

.ms-product-mini strong,
.ms-product-mini span {
  position: relative;
  display: block;
}

.ms-product-mini strong {
  margin-top: 12px;
  color: var(--ms-ink);
  font-size: 14px;
  line-height: 1.35;
}

.ms-product-mini span {
  margin-top: 6px;
  color: var(--ms-blue);
  font-weight: 900;
}

.ms-footer {
  margin-top: 50px;
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 223, 0, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(31, 124, 255, 0.2), transparent 26rem),
    #061426;
  color: #dcecff;
}

.ms-footer-inner {
  width: var(--ms-shell);
  margin: 0 auto;
  padding: 52px 0 26px;
}

.ms-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.7fr));
  gap: 34px;
  align-items: start;
}

.ms-footer-logo {
  display: inline-flex;
  width: min(430px, 100%);
}

.ms-footer-logo img {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  object-position: left center;
}

.ms-footer p {
  margin: 16px 0 0;
  max-width: 420px;
  color: rgba(220, 236, 255, 0.72);
  line-height: 1.7;
}

.ms-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: var(--ms-font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.ms-footer-links li + li {
  margin-top: 10px;
}

.ms-footer-links a {
  color: rgba(220, 236, 255, 0.72);
  text-decoration: none;
  transition: color 180ms ease;
}

.ms-footer-links a:hover {
  color: #ffffff;
}

.ms-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ms-social a {
  width: 48px;
  height: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 236, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px rgba(0, 0, 0, 0.2);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.ms-social a::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(22deg);
  transition: left 420ms ease;
}

.ms-social a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 42px rgba(0, 0, 0, 0.28);
}

.ms-social a:hover::after {
  left: 118%;
}

.ms-social svg {
  width: 23px;
  height: 23px;
  position: relative;
  z-index: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ms-social-link--tiktok svg,
.ms-social-link--facebook svg {
  fill: currentColor;
  stroke: none;
}

.ms-social-link--instagram:hover {
  background:
    radial-gradient(circle at 25% 110%, rgba(255, 215, 85, 0.9), transparent 38%),
    radial-gradient(circle at 12% 12%, rgba(255, 61, 122, 0.78), transparent 45%),
    linear-gradient(135deg, rgba(121, 77, 255, 0.72), rgba(255, 66, 126, 0.62));
}

.ms-social-link--tiktok:hover {
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 244, 238, 0.55), transparent 34%),
    radial-gradient(circle at 76% 72%, rgba(254, 44, 85, 0.62), transparent 38%),
    #07101d;
}

.ms-social-link--youtube:hover {
  background: linear-gradient(135deg, #ff2f2f, #bf1010);
}

.ms-social-link--facebook:hover {
  background: linear-gradient(135deg, #1877f2, #0c4fad);
}

.ms-footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(220, 236, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  color: rgba(220, 236, 255, 0.62);
  font-size: 13px;
}

.ms-page-hero,
.ms-woo-shell {
  width: var(--ms-shell);
  margin: 0 auto;
}

.ms-page-hero {
  padding: clamp(54px, 7vw, 92px) 0 26px;
}

.ms-page-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ms-radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ms-shadow);
  padding: clamp(24px, 4vw, 44px);
}

.ms-content {
  color: var(--ms-ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.ms-content h2,
.ms-content h3,
.ms-content h4 {
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  letter-spacing: -0.04em;
}

.ms-woo-shell {
  padding: clamp(44px, 6vw, 78px) 0;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(12, 36, 68, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(31, 124, 255, 0.14);
}

.woocommerce ul.products li.product a img {
  border-radius: 18px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.woocommerce-loop-product__title {
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  letter-spacing: -0.03em;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

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

.woocommerce div.product div.summary {
  padding: 28px;
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: var(--ms-radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--ms-shadow);
}

.woocommerce div.product .product_title {
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ms-green), var(--ms-green-deep));
  color: #fff;
  font-weight: 900;
  border: 0;
  box-shadow: 0 16px 34px rgba(53, 175, 47, 0.22);
}

.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ms-blue);
  font-weight: 900;
}

@keyframes msWordIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(3px);
  }

  62% {
    transform: translateY(-4px) scale(1.012);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes msWave {
  0%,
  100% {
    height: 10px;
  }

  50% {
    height: 32px;
  }
}

@keyframes msPulseLine {
  0%,
  100% {
    transform: translateX(0);
    background: rgba(245, 249, 255, 0.88);
  }

  50% {
    transform: translateX(4px);
    background: rgba(225, 246, 255, 0.92);
  }
}

@keyframes msBubbleFlow {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  8%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-38px);
  }
}

@media (max-width: 980px) {
  .ms-header-inner {
    min-height: 88px;
    grid-template-columns: 250px 1fr auto;
  }

  .ms-logo {
    width: 240px;
  }

  .ms-menu-toggle {
    display: inline-flex;
  }

  .ms-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    padding: 18px;
    border: 1px solid rgba(21, 90, 168, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ms-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  body.ms-menu-open .ms-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ms-nav ul {
    display: grid;
    justify-content: stretch;
    gap: 2px;
  }

  .ms-nav a {
    justify-content: center;
    padding: 14px;
  }

  .ms-hero-grid,
  .ms-split,
  .ms-system-flow,
  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .ms-orbital-card {
    min-height: auto;
  }

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

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

@media (max-width: 640px) {
  :root {
    --ms-shell: min(100% - 28px, 1180px);
  }

  .ms-header-inner {
    min-height: 76px;
    grid-template-columns: 210px 1fr auto;
  }

  .ms-logo {
    width: 204px;
  }

  .ms-header-actions .ms-icon-link:nth-child(1),
  .ms-header-actions .ms-icon-link:nth-child(2) {
    display: none;
  }

  .ms-hero h1 {
    font-size: clamp(50px, 17vw, 72px);
  }

  .ms-platform-strip {
    border-radius: 24px;
  }

  .ms-benefit-grid,
  .ms-feature-grid,
  .ms-flow-steps,
  .ms-shop-collections,
  .ms-product-grid,
  .woocommerce ul.products,
  .ms-footer-grid {
    grid-template-columns: 1fr;
  }

  .ms-flow-steps::before {
    display: none;
  }

  .ms-footer-bottom {
    display: grid;
  }
}

/* Shopify legacy fidelity layer.
   Imported Shopify pages already contain their own HTML/CSS. These rules keep
   the WordPress theme from wrapping them in an extra "dashboard" layout. */
.ms-shopify-legacy .ms-page-haze {
  opacity: 0.45;
}

.ms-shopify-page {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) 0 clamp(54px, 6vw, 86px);
}

body.ms-shopify-legacy {
  background: #fff;
}

body.ms-shopify-legacy .ms-site-bg,
body.ms-shopify-legacy .ms-page-haze {
  display: none;
}

.ms-shopify-page body,
.ms-shopify-page main,
.ms-shopify-page section,
.ms-shopify-page article {
  max-width: 100%;
}

.ms-shopify-page .banner-wrapper {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto clamp(24px, 4vw, 44px);
  box-sizing: border-box;
}

.ms-shopify-page .banner-item {
  box-sizing: border-box;
  text-decoration: none;
}

.ms-shopify-page .banner-item img {
  max-width: 100%;
  object-fit: contain;
}

.ms-shopify-page .carousel-wrapper {
  max-width: 100%;
}

.ms-shopify-page h1,
.ms-shopify-page h2,
.ms-shopify-page h3,
.ms-shopify-page h4 {
  text-wrap: balance;
}

.ms-shopify-page a {
  color: inherit;
}

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

.ms-shop-hero {
  width: var(--ms-shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 70px) 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.ms-shop-collections {
  width: var(--ms-shell);
  margin: 8px auto 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ms-shop-collections a {
  position: relative;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 251, 255, 0.78)),
    radial-gradient(circle at 16% 16%, rgba(103, 223, 0, 0.14), transparent 8rem);
  color: var(--ms-ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(12, 36, 68, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ms-shop-collections a::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--ms-green), var(--ms-blue-bright));
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 180ms ease;
}

.ms-shop-collections a:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 124, 255, 0.28);
  box-shadow: 0 22px 44px rgba(31, 124, 255, 0.14);
}

.ms-shop-collections a:hover::after {
  transform: scaleX(1);
}

.ms-shop-collections strong,
.ms-shop-collections span {
  position: relative;
  display: block;
}

.ms-shop-collections strong {
  font-family: var(--ms-font-display);
  font-size: 16px;
  letter-spacing: -0.04em;
}

.ms-shop-collections span {
  margin-top: 8px;
  color: var(--ms-ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ms-shop-search {
  flex: 0 1 390px;
}

.ms-shop-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(21, 90, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(7, 26, 51, 0.08);
}

.ms-shop-search input[type="search"] {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 12px 12px 16px;
  color: var(--ms-ink);
  font: 600 14px var(--ms-font-body);
}

.ms-shop-search button,
.ms-shop-search input[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--ms-green), var(--ms-green-deep));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(84, 214, 0, 0.22);
}

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

.woocommerce-ordering select {
  border: 1px solid rgba(21, 90, 168, 0.16);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ms-ink);
  font-weight: 700;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  min-height: 100%;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.2em;
}

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

.woocommerce div.product .woocommerce-product-gallery {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: var(--ms-radius-xl);
  padding: 18px;
  box-shadow: 0 22px 52px rgba(7, 26, 51, 0.08);
}

.woocommerce div.product div.images img {
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 860px) {
  .ms-shop-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ms-shop-search {
    flex-basis: auto;
  }
}

.ms-contact-page {
  width: var(--ms-shell);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) 0 clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.ms-contact-copy,
.ms-contact-form {
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: var(--ms-radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(7, 26, 51, 0.09);
}

.ms-contact-copy {
  padding: clamp(28px, 5vw, 54px);
}

.ms-contact-copy h1 {
  margin: 0;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.ms-contact-copy p {
  max-width: 52ch;
  margin: 24px 0 0;
  color: rgba(7, 26, 51, 0.7);
  font-size: 18px;
  line-height: 1.7;
}

.ms-contact-actions {
  margin-top: 28px;
}

.ms-contact-form {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  gap: 18px;
}

.ms-contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ms-ink);
  font-weight: 800;
}

.ms-contact-form input,
.ms-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(21, 90, 168, 0.14);
  border-radius: 20px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ms-ink);
  font: 600 15px var(--ms-font-body);
  outline: none;
}

.ms-contact-form input:focus,
.ms-contact-form textarea:focus {
  border-color: rgba(21, 90, 168, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 124, 255, 0.1);
}

.ms-contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--ms-green), var(--ms-green-deep));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(84, 214, 0, 0.24);
}

@media (max-width: 860px) {
  .ms-contact-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ms-shop-collections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ms-shop-collections,
  .ms-flow-steps {
    grid-template-columns: 1fr;
  }

  .ms-flow-steps::before {
    display: none;
  }
}

/* Repair catalog polish: turns the imported Shopify repair pages into compact,
   modern model grids instead of oversized legacy image blocks. */
.ms-shopify-page {
  width: min(1240px, calc(100% - 32px));
  padding: clamp(34px, 5vw, 72px) 0 clamp(58px, 7vw, 96px);
}

.ms-legacy-catalog {
  position: relative;
}

.ms-legacy-catalog__head {
  max-width: 780px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.ms-legacy-catalog__head h1 {
  margin: 10px 0 12px;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.ms-legacy-catalog__head p:last-child {
  margin: 0;
  color: rgba(7, 26, 51, 0.68);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  font-weight: 650;
}

.ms-legacy-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.ms-legacy-card {
  position: relative;
  min-width: 0;
  min-height: 214px;
  padding: 14px;
  border: 1px solid rgba(21, 90, 168, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 250, 255, 0.82)),
    radial-gradient(circle at 18% 10%, rgba(103, 223, 0, 0.16), transparent 9rem);
  color: var(--ms-ink);
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(12, 36, 68, 0.09);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ms-legacy-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 13px 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--ms-green), var(--ms-blue-bright));
  transform: scaleX(0.26);
  transform-origin: left;
  transition: transform 180ms ease;
}

.ms-legacy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 124, 255, 0.3);
  box-shadow: 0 24px 52px rgba(31, 124, 255, 0.15);
}

.ms-legacy-card:hover::after {
  transform: scaleX(1);
}

.ms-legacy-card__media {
  min-height: 126px;
  display: grid;
  place-items: center;
}

.ms-legacy-card__media img {
  width: 100%;
  max-width: 138px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(7, 26, 51, 0.1));
  transition: transform 180ms ease;
}

.ms-legacy-card:hover .ms-legacy-card__media img {
  transform: scale(1.04);
}

.ms-legacy-card__label {
  position: relative;
  z-index: 1;
  min-height: 2.5em;
  padding-bottom: 10px;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.ms-repair-focus {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(21, 90, 168, 0.13);
  border-radius: var(--ms-radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 255, 0.78)),
    radial-gradient(circle at 10% 16%, rgba(103, 223, 0, 0.16), transparent 18rem);
  box-shadow: var(--ms-shadow);
}

.ms-repair-focus__copy h1 {
  margin: 10px 0 16px;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.ms-repair-focus__copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(7, 26, 51, 0.72);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
  font-weight: 650;
}

.ms-repair-focus__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ms-repair-focus__steps {
  display: grid;
  gap: 12px;
}

.ms-repair-focus__steps article {
  padding: 18px;
  border: 1px solid rgba(21, 90, 168, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(12, 36, 68, 0.08);
}

.ms-repair-focus__steps strong {
  color: var(--ms-green-deep);
  font-family: var(--ms-font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.ms-repair-focus__steps h2 {
  margin: 7px 0 8px;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-size: 18px;
  letter-spacing: -0.045em;
}

.ms-repair-focus__steps p {
  margin: 0;
  color: rgba(7, 26, 51, 0.66);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

/* WooCommerce catalog polish: smaller cards, controlled images and less scroll. */
.woocommerce ul.products {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 1180px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  min-height: 0;
  width: 100% !important;
  max-width: 100%;
  padding: 12px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  text-decoration: none;
}

.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: clamp(128px, 14vw, 168px) !important;
  margin: 0 0 12px !important;
  padding: 12px;
  border-radius: 18px;
  object-fit: contain;
  background:
    linear-gradient(180deg, #fff, rgba(247, 252, 255, 0.92));
  box-sizing: border-box;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.55em;
  margin: 0 0 8px !important;
  color: var(--ms-ink);
  font-size: clamp(13px, 1vw, 15px) !important;
  line-height: 1.25;
  letter-spacing: -0.045em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 14px;
}

.woocommerce ul.products li.product .button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.1;
}

.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block {
  margin-top: 22px;
}

.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a,
.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-cart .ms-card-checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 15px 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ms-green), var(--ms-green-deep)) !important;
  color: #071a33 !important;
  box-shadow: 0 18px 38px rgba(103, 223, 0, 0.24);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a:hover,
.woocommerce-cart .wc-block-cart__submit-button:hover,
.woocommerce-cart .ms-card-checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(103, 223, 0, 0.32);
}

.woocommerce-checkout .wc-block-components-shipping-rates-control .ms-local-pickup-row .pl-image-wrapper {
  display: none !important;
}

.woocommerce-checkout .wc-block-components-shipping-rates-control .ms-correos-shipping-row {
  align-items: center;
  gap: 12px;
}

.woocommerce-checkout .wc-block-components-shipping-rates-control .ms-correos-shipping-row .pl-image-wrapper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 110px;
  min-width: 110px;
  height: 38px;
  margin: 0 10px 0 0;
  padding: 4px 10px;
  border: 1px solid rgba(21, 87, 168, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.woocommerce-checkout .wc-block-components-shipping-rates-control .ms-correos-shipping-row .pl-image-wrapper img {
  display: block;
  max-width: 76px;
  max-height: 26px;
  object-fit: contain;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
  display: flex;
  flex-direction: column;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block {
  order: 1;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-method-block {
  order: 2;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-pickup-options-block {
  order: 3;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block {
  order: 4;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block {
  order: 5;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-methods-block {
  order: 6;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block {
  order: 7;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-payment-block {
  order: 8;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-additional-information-block {
  order: 9;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block {
  order: 10;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-terms-block {
  order: 11;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block {
  order: 12;
}

.woocommerce-checkout .wc-block-checkout__form {
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce-checkout .wc-block-checkout__contact-fields {
  order: 1;
}

.woocommerce-checkout .wc-block-checkout__shipping-method {
  order: 2;
}

.woocommerce-checkout .wc-block-checkout__shipping-fields {
  order: 3;
}

.woocommerce-checkout .wc-block-checkout__billing-fields {
  order: 4;
}

.woocommerce-checkout .wc-block-checkout__shipping-option {
  order: 5;
}

.woocommerce-checkout .wc-block-checkout__form > .wp-block-woocommerce-checkout-express-payment-block,
.woocommerce-checkout .wc-block-checkout__form > .wc-block-components-express-payment {
  order: 6;
}

.woocommerce-checkout .wc-block-checkout__payment-method {
  order: 7;
}

.woocommerce-checkout .wc-block-checkout__additional-information-fields {
  order: 8;
}

.woocommerce-checkout .wc-block-checkout__order-notes {
  order: 9;
}

.woocommerce-checkout .wc-block-checkout__terms {
  order: 10;
}

.woocommerce-checkout .wc-block-checkout__actions {
  order: 11;
}

.woocommerce-checkout .wc-block-components-express-payment-continue-rule {
  display: none !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block {
  margin: 30px 0 18px !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block::before {
  content: "Opciones de pago";
  display: block;
  margin: 0 0 14px;
  color: #0a2540;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.woocommerce-checkout .wc-block-checkout__form > .wc-block-components-express-payment::before {
  content: "Opciones de pago";
  display: block;
  margin: 0 0 14px;
  color: #0a2540;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.woocommerce-checkout.ms-checkout-has-express .wp-block-woocommerce-checkout-payment-block .wc-block-components-title,
.woocommerce-checkout.ms-checkout-has-express .wc-block-checkout__payment-method .wc-block-components-checkout-step__title {
  display: none !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block .wc-block-components-express-payment {
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(21, 87, 168, 0.16) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.88)) !important;
  box-shadow: 0 16px 38px rgba(10, 37, 64, 0.08);
}

.woocommerce-checkout .wc-block-checkout__form > .wc-block-components-express-payment {
  margin: 30px 0 18px !important;
  padding: 16px !important;
  border: 1px solid rgba(21, 87, 168, 0.16) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.88)) !important;
  box-shadow: 0 16px 38px rgba(10, 37, 64, 0.08);
}

.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block legend,
.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block .wc-block-components-express-payment__title,
.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block .wc-block-components-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #0a2540 !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block .wc-block-components-express-payment__content {
  padding: 0 !important;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-checkout button.wc-block-components-checkout-place-order-button {
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ms-green), var(--ms-green-deep)) !important;
  color: #071a33 !important;
  box-shadow: 0 22px 48px rgba(103, 223, 0, 0.3);
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout button.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 58px rgba(103, 223, 0, 0.38);
  filter: saturate(1.08);
}

.woocommerce-result-count {
  color: rgba(7, 26, 51, 0.74);
  font-weight: 650;
}

@media (max-width: 980px) {
  .ms-legacy-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ms-repair-focus {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  body.ms-nova {
    overflow-x: hidden;
  }

  .ms-shopify-page,
  .ms-woo-shell,
  .ms-shop-hero,
  .ms-shop-collections {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    box-sizing: border-box;
  }

  .ms-shop-hero {
    gap: 18px;
  }

  .ms-shop-search {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .ms-shop-search form {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 7px;
  }

  .ms-shop-search input[type="search"] {
    width: 100%;
    min-width: 0;
    padding-left: 14px;
  }

  .ms-shop-search button,
  .ms-shop-search input[type="submit"] {
    flex: 0 0 54px;
    width: 54px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
  }

  .ms-shop-search button::after,
  .ms-shop-search input[type="submit"]::after {
    content: "Ir";
    font-size: 13px;
  }

  .ms-shop-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ms-shop-collections a {
    min-width: 0;
    min-height: 86px;
    padding: 15px;
  }

  .ms-shop-collections strong,
  .ms-shop-collections span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ms-legacy-card-grid,
  .woocommerce ul.products {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ms-legacy-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 178px;
    padding: 12px;
    border-radius: 20px;
  }

  .ms-legacy-card__media {
    min-height: 102px;
  }

  .ms-legacy-card__media img {
    max-width: 108px;
    height: 102px;
  }

  .ms-legacy-card__label {
    font-size: 13px;
  }

  .ms-repair-focus {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .ms-repair-focus__copy h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .ms-repair-focus__actions {
    display: grid;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    padding: 10px;
    border-radius: 18px;
  }

  .woocommerce ul.products li.product a img {
    height: 118px !important;
    padding: 8px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.5em;
    font-size: 12px !important;
  }

  .woocommerce ul.products li.product .button {
    min-height: 36px;
    padding: 9px 10px;
    font-size: 12px;
  }
}
