:root {
  --domoprotec-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --domoprotec-header-offset: 0px;
}

body.domoprotec-page-domotica .domoprotec-section--alt {
  background: transparent;
}

body.domoprotec-page-domotica .domoprotec-domotica {
  --wp--style--block-gap: 0;
}

body.domoprotec-page-demo .domoprotec-demo-page {
  --wp--style--block-gap: 0;
}

body.domoprotec-page-demo .domoprotec-demo-hero .wp-block-cover__inner-container {
  max-width: 1080px;
  margin: 0 auto;
}

body.domoprotec-page-demo .domoprotec-demo-cards .domoprotec-card {
  height: 100%;
}

body.domoprotec-page-demo .domoprotec-demo-video-main {
  max-width: 1120px;
  margin: 0 auto;
}

body.domoprotec-page-demo .domoprotec-video-slot {
  min-height: 240px;
  border: 2px dashed rgba(31, 193, 177, 0.55);
  border-radius: 18px;
  padding: var(--wp--preset--spacing--m);
  background: linear-gradient(165deg, rgba(248, 251, 251, 0.94), rgba(239, 246, 247, 0.96));
}

body.domoprotec-page-demo .domoprotec-video-slot-main {
  min-height: 360px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

body.domoprotec-page-demo .domoprotec-video-slot__badge {
  margin-top: 0;
  margin-bottom: var(--wp--preset--spacing--xs);
  font: 800 0.78rem/1 var(--wp--preset--font-family--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}

body.domoprotec-page-demo .domoprotec-demo-cta-primary .wp-block-button__link,
body.domoprotec-page-demo .domoprotec-demo-cta-secondary .wp-block-button__link {
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.domoprotec-page-demo .domoprotec-demo-trust {
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}

.domoprotec-advantages-band {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}

.domoprotec-advantages-band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--wp--preset--color--surface);
  border-radius: 15vw 0 0 0;
  box-shadow:
    0 22px 60px rgba(2, 6, 23, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.03);
  z-index: -1;
  pointer-events: none;
}

.domoprotec-features-band {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Home experiments: allow features band to breathe without changing other pages */
.domoprotec-home-experiment--03 .domoprotec-features-band {
  padding-top: var(--wp--preset--spacing--xl) !important;
  padding-bottom: var(--wp--preset--spacing--xl) !important;
}

/* Home experiment 06: make "Cómo trabajamos" readable (3 cards visible on desktop) */
.domoprotec-home-experiment--06 .domoprotec-steps-carousel .domoprotec-carousel__track {
  align-items: stretch;
}

.domoprotec-home-experiment--06 .domoprotec-steps-carousel .domoprotec-carousel__card {
  padding: 0;
  width: clamp(260px, 30vw, 340px);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.domoprotec-home-experiment--06 .domoprotec-step-slide > .wp-block-image {
  margin: 0;
}

.domoprotec-home-experiment--06 .domoprotec-step-slide > .domoprotec-advantage__card {
  flex: 1 1 auto;
}

.domoprotec-site-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 240ms ease,
    box-shadow 180ms ease;
  will-change: transform, opacity;
}

.domoprotec-site-header.is-hidden {
  transform: none;
  opacity: 1;
}

.wp-site-blocks {
  padding-top: calc(
    var(--domoprotec-header-offset) + var(--wp-admin--admin-bar--height, 0px)
  );
}

.domoprotec-site-header {
  padding: 1.15rem var(--wp--preset--spacing--m) !important;
}

.domoprotec-site-header.is-compact {
  padding: 0.5rem var(--wp--preset--spacing--m) !important;
}

.domoprotec-logo {
  height: 72px;
  transition: height 220ms ease;
}

.domoprotec-site-header.is-compact .domoprotec-logo {
  height: 42px;
}

.domoprotec-site-header.is-raised {
  box-shadow: var(--domoprotec-shadow);
}

.domoprotec-nav {
  --domoprotec-nav-gap: 1.25rem;
}

.domoprotec-nav-toggle {
  display: none;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: var(--wp--preset--color--base);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: 700 0.85rem/1 var(--wp--preset--font-family--heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text);
}

.domoprotec-nav-toggle:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

.domoprotec-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--domoprotec-nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.domoprotec-nav-menu a {
  color: var(--wp--preset--color--text);
  position: relative;
  display: inline-block;
  padding: 0.25rem 0;
  text-decoration: none;
  font: 700 0.98rem/1.1 var(--wp--preset--font-family--heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.domoprotec-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--wp--preset--color--primary);
  transition: width 180ms ease;
}

.domoprotec-nav-menu a:hover {
  color: var(--wp--preset--color--primary);
}

.domoprotec-nav-menu a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
  color: var(--wp--preset--color--primary);
}

.domoprotec-nav-menu a:focus-visible::after {
  width: 100%;
}

.domoprotec-nav-menu a:hover::after {
  width: 100%;
}

.domoprotec-nav-menu .current-menu-item > a::after,
.domoprotec-nav-menu .current-menu-ancestor > a::after,
.domoprotec-nav-menu .current_page_item > a::after {
  width: 100%;
}

.domoprotec-nav-menu .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: var(--wp--preset--color--base);
  box-shadow: var(--domoprotec-shadow);
  padding: 0.4rem 0.6rem;
  list-style: none;
  margin: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.domoprotec-nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.domoprotec-nav-menu li {
  position: relative;
}

.domoprotec-nav-menu li:hover > .sub-menu,
.domoprotec-nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

.domoprotec-nav-menu .sub-menu li {
  position: relative;
}

.domoprotec-nav-menu .sub-menu a {
  font: 700 0.85rem/1.1 var(--wp--preset--font-family--heading);
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 0.45rem 0.25rem;
  width: 100%;
}

@media (max-width: 860px) {
  .domoprotec-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .domoprotec-nav {
    display: none;
    width: 100%;
  }

  .domoprotec-site-header.is-open .domoprotec-nav {
    display: block;
  }

  .domoprotec-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .domoprotec-nav-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.25rem 1rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .domoprotec-nav-menu .sub-menu::before {
    display: none;
  }
}

.domoprotec-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: var(--domoprotec-shadow);
}

.domoprotec-hero-cover {
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Ensure Gutenberg full-width blocks actually break out of constrained layouts */
.wp-block-post-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Home experiment 08: force the hero cover to behave as full-width even if the block isn't set to alignfull */
.domoprotec-home-experiment--08 .domoprotec-hero-cover {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.domoprotec-hero-cover.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.domoprotec-hero-cover .wp-block-cover__inner-container {
  color: rgba(255, 255, 255, 0.96) !important;
}

.domoprotec-hero-cover .wp-block-cover__inner-container :where(h1, h2, h3, h4, h5, h6, p) {
  color: rgba(255, 255, 255, 0.96) !important;
}

.domoprotec-hero-cover :where(a) {
  color: inherit;
}

.domoprotec-hero-cover .wp-block-cover__image-background {
  /* Avoid "double darkening": rely on Gutenberg overlay opacity for dimming */
  filter: contrast(1.06) saturate(0.92) sepia(0.18);
  transform: scale(1.02);
}

.domoprotec-hero-cover .wp-block-cover__background {
  /* Let Gutenberg's "Overlay opacity" control the dimming (has-background-dim-*) */
}

/* Theme default overlay (only when the block isn't using a user-selected overlay color) */
.domoprotec-hero-cover .wp-block-cover__background:not([class*="-background-color"]):not([style*="background-color"]) {
  background-image:
    linear-gradient(90deg, rgba(11, 15, 26, 0.86) 0%, rgba(11, 15, 26, 0.58) 46%, rgba(11, 15, 26, 0.22) 78%, rgba(11, 15, 26, 0) 100%),
    linear-gradient(180deg, rgba(11, 15, 26, 0.26) 0%, rgba(11, 15, 26, 0) 48%, rgba(11, 15, 26, 0.56) 100%);
  background-color: transparent;
}

/* If the user picks an overlay color in the block settings, don't force the theme gradient */
.domoprotec-hero-cover .wp-block-cover__background[class*="-background-color"],
.domoprotec-hero-cover .wp-block-cover__background[style*="background-color"] {
  background-image: none;
}

/* Home experiment 08: let Gutenberg's "Overlay opacity" control the cover dimming */
.domoprotec-home-experiment--08 .domoprotec-hero-cover .wp-block-cover__image-background {
  filter: none;
}

.domoprotec-home-experiment--08 .domoprotec-hero-cover .wp-block-cover__background {
  background-image: none;
  opacity: unset;
}

.domoprotec-hero-cover .wp-block-heading,
.domoprotec-hero-cover p {
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.domoprotec-hero-cover .wp-block-group {
  max-width: 1140px;
}

.domoprotec-carousel {
  position: relative;
  margin-top: var(--wp--preset--spacing--m);
}

.domoprotec-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--wp--preset--spacing--m);
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

/* Partners page: slightly tighter carousel spacing to match /soluciones perception. */
.domoprotec-partners .domoprotec-process-band .domoprotec-carousel__track {
  gap: var(--wp--preset--spacing--s);
}

/* The base carousel adds padding inside each slide; reduce it on partners so the content area is wider. */
.domoprotec-partners .domoprotec-process-band .domoprotec-carousel__card {
  padding: var(--wp--preset--spacing--s);
}

.domoprotec-carousel__track::-webkit-scrollbar {
  height: 10px;
}

.domoprotec-carousel__track::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

.domoprotec-carousel__track::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}

.domoprotec-carousel__card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(420px, calc(100vw - 2 * var(--wp--preset--spacing--m)));
  padding: var(--wp--preset--spacing--m);
}

.domoprotec-carousel__card .wp-block-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.domoprotec-carousel__card p {
  margin-top: 0;
}

@media (min-width: 860px) {
  .domoprotec-carousel__card {
    width: 360px;
  }
}

.domoprotec-project-card {
  padding: 0;
  overflow: hidden;
}

.domoprotec-queryloop--casos .domoprotec-project-card .wp-block-post-featured-image {
  margin: 0;
}

.domoprotec-queryloop--casos .domoprotec-project-card .wp-block-post-featured-image a {
  display: block;
}

.domoprotec-queryloop--casos .domoprotec-project-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 !important;
}

/* Query Loop (Casos): equal-height cards even with long titles */
.domoprotec-queryloop--casos .wp-block-post-template {
  align-items: stretch;
}

.domoprotec-queryloop--casos .wp-block-post-template {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--wp--preset--spacing--m);
  overflow-x: auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0.25rem;
  list-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

@media (min-width: 860px) {
  .domoprotec-home-experiment--08 .domoprotec-queryloop--casos .wp-block-post-template {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
  }
}

.domoprotec-queryloop--casos .wp-block-post-template > li.wp-block-post {
  flex: 0 0 auto;
  width: min(420px, calc(100vw - 2 * var(--wp--preset--spacing--m)));
  scroll-snap-align: start;
}

@media (min-width: 860px) {
  .domoprotec-queryloop--casos .wp-block-post-template > li.wp-block-post {
    width: 360px;
  }
}

.domoprotec-queryloop--casos .wp-block-post-template > li.wp-block-post {
  display: flex;
}

.domoprotec-queryloop--casos .domoprotec-project-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.domoprotec-queryloop--casos .domoprotec-project-card > .wp-block-group {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.domoprotec-queryloop--casos .domoprotec-project-card .wp-block-post-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.domoprotec-home-experiment--08 .domoprotec-queryloop--casos {
  position: relative;
}

/* Query Loop (Casos): place carousel nav arrows on the sides of the track */
.domoprotec-home-experiment--08 .domoprotec-queryloop--casos .domoprotec-carousel-nav {
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--wp--preset--spacing--m);
  pointer-events: none;
  z-index: 5;
}

.domoprotec-home-experiment--08 .domoprotec-queryloop--casos .domoprotec-carousel-nav > * {
  pointer-events: auto;
}

.domoprotec-home-experiment--08 .domoprotec-queryloop--casos .domoprotec-carousel-nav a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.12);
  text-decoration: none;
}

.domoprotec-home-experiment--08 .domoprotec-queryloop--casos .domoprotec-carousel-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.16);
}

@media (max-width: 782px) {
  .domoprotec-home-experiment--08 .domoprotec-queryloop--casos .domoprotec-carousel-nav {
    display: none;
  }
}

.domoprotec-project-card__image {
  margin: 0;
}

.domoprotec-project-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.domoprotec-project-card .wp-block-heading {
  padding: var(--wp--preset--spacing--m);
  margin: 0;
  font-size: 1.15rem;
}

.domoprotec-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: 800 0.78rem/1 var(--wp--preset--font-family--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text);
}

.domoprotec-feature {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.domoprotec-feature__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.domoprotec-feature__num {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  margin: 0;
  font-weight: 300;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  color: rgba(15, 23, 42, 0.4);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Domotica: numbers animate in softly like noops */
.domoprotec-domotica .domoprotec-feature__meta.domoprotec-reveal-step-1 .domoprotec-feature__num {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 1000ms ease, opacity 800ms ease;
  transition-delay: 80ms;
}

.domoprotec-domotica
  .domoprotec-reveal-group.is-visible
  .domoprotec-feature__meta.domoprotec-reveal-step-1
  .domoprotec-feature__num {
  opacity: 1;
  transform: none;
}

.domoprotec-domotica .domoprotec-feature__num {
  color: var(--wp--preset--color--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(64px, 6.5vw, 96px);
}

.domoprotec-feature__title {
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.5;
  letter-spacing: 2px;
  color: #353740;
}

.domoprotec-feature__text {
  margin: 0.8rem 0 0;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 300;
  color: #747d88;
  font-size: 1rem;
  line-height: 1.8;
}

.domoprotec-feature__image {
  border-radius: 24px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: var(--domoprotec-shadow);
  overflow: hidden;
}

.domoprotec-feature__image img {
  width: 100%;
  height: auto;
  display: block;
}

.domoprotec-feature-band {
  position: relative;
  z-index: 0;
  padding: clamp(72px, 9vw, 118px) 0;
  margin: 0;
}

.domoprotec-feature-band > * {
  position: relative;
  z-index: 1;
}

.domoprotec-feature.wp-block-columns {
  gap: clamp(2.75rem, 4vw, 3.75rem);
}

.domoprotec-feature-band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: var(--wp--preset--color--base);
  background-image:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0) 12px),
    linear-gradient(0deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0) 12px);
  border-radius: 0;
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.06);
  z-index: 0;
}

.domoprotec-feature-band:nth-of-type(even)::before {
  background-color: var(--wp--preset--color--surface);
  background-image: none;
  border-radius: 0;
  border: none;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.05);
}

.domoprotec-feature-band:nth-of-type(even)::before {
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.05);
}

.domoprotec-feature .domoprotec-reveal-step-2 {
  margin: 0;
}

.domoprotec-feature .domoprotec-reveal-step-2 img {
  display: block;
  width: 100%;
  height: clamp(220px, 26vw, 360px);
  border: none;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.14);
  object-fit: cover;
}

.domoprotec-feature .domoprotec-reveal-step-2.domoprotec-reveal-from-left img {
  border-radius: 0 22px 0 22px;
}

.domoprotec-feature .domoprotec-reveal-step-2.domoprotec-reveal-from-right img {
  border-radius: 22px 0 22px 0;
}

/* Domotica: only photos (step 2) slide in slower from screen edges */
.domoprotec-domotica .domoprotec-feature .domoprotec-reveal-step-2 {
  transition: transform 1600ms cubic-bezier(0.16, 0.7, 0.2, 1),
    opacity 1200ms ease;
}

.domoprotec-domotica .domoprotec-feature .domoprotec-reveal-step-2.domoprotec-reveal-from-left {
  transform: translateX(-8%);
}

.domoprotec-domotica .domoprotec-feature .domoprotec-reveal-step-2.domoprotec-reveal-from-right {
  transform: translateX(8%);
}

.domoprotec-domotica .domoprotec-reveal-group.is-visible .domoprotec-reveal-step-2 {
  transform: none;
}

.domoprotec-feature .domoprotec-reveal-step-2:not(.domoprotec-reveal-from-left):not(.domoprotec-reveal-from-right) img {
  border-radius: 22px;
}

.domoprotec-reveal-group .domoprotec-reveal-step {
  opacity: 0;
  transform: translateY(12px);
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 420ms ease;
  will-change: transform, opacity;
}

.domoprotec-reveal-group .domoprotec-reveal-step-1 {
  transition-delay: 0ms;
}

.domoprotec-reveal-group .domoprotec-reveal-step-2 {
  transition-delay: 140ms;
}

.domoprotec-reveal-group .domoprotec-reveal-step-3 {
  transition-delay: 320ms;
}

.domoprotec-reveal-group .domoprotec-reveal-step-2.domoprotec-reveal-from-left {
  transform: translateX(-36px);
}

.domoprotec-reveal-group .domoprotec-reveal-step-2.domoprotec-reveal-from-right {
  transform: translateX(36px);
}

.domoprotec-reveal-group.is-visible .domoprotec-reveal-step {
  opacity: 1;
  transform: none;
}

@media (max-width: 782px) {
  .domoprotec-feature__num {
    font-size: 52px;
  }

  .domoprotec-feature__title {
    font-size: 26px;
  }
}


.domoprotec-card {
  border-radius: 22px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: var(--wp--preset--color--base);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.domoprotec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--domoprotec-shadow);
}

/* FAQ accordion (core/details) */
.domoprotec-faq-accordion details.wp-block-details {
  border-radius: 22px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: var(--wp--preset--color--base);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
  padding: 0.9rem 1.1rem;
}

.domoprotec-faq-accordion details.wp-block-details + details.wp-block-details {
  margin-top: 0.85rem;
}

.domoprotec-faq-accordion details.wp-block-details[open] {
  background: var(--wp--preset--color--surface);
}

.domoprotec-faq-accordion details.wp-block-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.domoprotec-faq-accordion details.wp-block-details > summary br {
  display: none;
}

.domoprotec-faq-accordion details.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.domoprotec-faq-accordion details.wp-block-details > summary::marker {
  content: "";
}

.domoprotec-faq-accordion details.wp-block-details > summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.06);
  color: var(--wp--preset--color--text);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.domoprotec-faq-accordion details.wp-block-details[open] > summary::after {
  content: "–";
  background: rgba(2, 6, 23, 0.09);
  transform: rotate(180deg);
}

.domoprotec-faq-accordion details.wp-block-details > :not(summary) {
  margin-top: 0.75rem;
}

.domoprotec-faq-accordion details.wp-block-details p {
  margin-top: 0;
  color: var(--wp--preset--color--muted);
}

.domoprotec-faq-search {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.domoprotec-faq-search__label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.domoprotec-faq-search__input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.16);
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.domoprotec-faq-search__input:focus-visible {
  outline: 2px solid rgba(2, 6, 23, 0.32);
  outline-offset: 2px;
  border-color: rgba(2, 6, 23, 0.35);
  box-shadow: 0 0 0 4px rgba(2, 6, 23, 0.08);
}

.domoprotec-faq-search__meta {
  margin: 0.6rem 0 0;
  font-weight: 700;
}

/* Situaciones (reusable block styling) */
.domoprotec-situaciones .wp-block-heading {
  margin-top: 0;
  margin-bottom: var(--wp--preset--spacing--m);
}

.domoprotec-situaciones__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: domoprotec-situacion;
}

.domoprotec-situaciones__list > li {
  position: relative;
  counter-increment: domoprotec-situacion;
  padding: 1.05rem 1.15rem 1.05rem 4.35rem;
  border-radius: 22px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-left: 4px solid rgba(2, 6, 23, 0.65);
  background: var(--wp--preset--color--base);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.07);
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.domoprotec-situaciones__list > li::before {
  content: counter(domoprotec-situacion, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--wp--preset--color--text);
  opacity: 0.95;
}

.domoprotec-situaciones__list > li:hover {
  border-left-color: var(--wp--preset--color--text);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.09);
}

.domoprotec-situaciones__kicker {
  margin-top: var(--wp--preset--spacing--m);
  padding: 1.05rem 1.15rem;
  border-radius: 22px;
  background: var(--wp--preset--color--surface);
  border: 1px solid rgba(2, 6, 23, 0.08);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.domoprotec-situaciones__kicker br {
  display: none;
}

.domoprotec-situaciones__kicker strong {
  color: var(--wp--preset--color--text);
}

@media (max-width: 782px) {
  .domoprotec-situaciones__list {
    grid-template-columns: 1fr;
  }
}

/* Nosotros: align the 4 value cards and add breathing room */
body.page-id-1674 .wp-block-group.domoprotec-section.domoprotec-reveal > .wp-block-columns {
  align-items: stretch;
}

body.page-id-1674
  .wp-block-group.domoprotec-section.domoprotec-reveal
  > .wp-block-columns
  > .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--m);
}

body.page-id-1674
  .wp-block-group.domoprotec-section.domoprotec-reveal
  > .wp-block-columns
  > .wp-block-column
  > .wp-block-group.domoprotec-card {
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 0;
}

.domoprotec-divider {
  width: 84px;
  height: 3px;
  background: var(--wp--preset--color--primary);
  border: none;
  margin: 0.75rem auto 0;
  border-radius: 999px;
}

.domoprotec-advantages__grid {
  align-items: stretch;
}

.domoprotec-equal-cards {
  align-items: stretch;
}

.domoprotec-equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--m);
}

.domoprotec-equal-cards > .wp-block-column > .domoprotec-card {
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 0;
}

/* Partners page: equal-height value cards + process cards without relying on editor-added classes. */
.domoprotec-partners .domoprotec-benefits-band .wp-block-columns {
  align-items: stretch !important;
}

.domoprotec-partners .domoprotec-benefits-band .wp-block-column {
  display: flex !important;
  flex-direction: column;
  gap: var(--wp--preset--spacing--m);
}

.domoprotec-partners .domoprotec-benefits-band .wp-block-column > .domoprotec-card {
  flex: 1 1 auto;
}

.domoprotec-partners .domoprotec-process-band .domoprotec-carousel__track {
  align-items: stretch !important;
}

.domoprotec-partners .domoprotec-process-band .domoprotec-step-slide {
  height: 100%;
  display: flex !important;
  flex-direction: column;
}

.domoprotec-partners .domoprotec-process-band .domoprotec-step-slide > .domoprotec-card {
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 0;
}

/* Partners page: the "Cómo trabajamos contigo" section is nested (section inside section).
   Remove the outer padding so width/spacing matches other pages like /soluciones. */
.domoprotec-partners .domoprotec-process-band {
  padding: 0 !important;
}

/* Partners page: make the grey background span the full viewport width consistently. */
.domoprotec-partners .domoprotec-benefits-band,
.domoprotec-partners .domoprotec-process-band .domoprotec-section--alt {
  position: relative;
  background: transparent;
  z-index: 0;
}

.domoprotec-partners .domoprotec-benefits-band::before,
.domoprotec-partners .domoprotec-process-band .domoprotec-section--alt::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--wp--preset--color--surface);
  z-index: -1;
  pointer-events: none;
}

.domoprotec-advantage__image {
  margin: 0;
  border-radius: 25px 25px 0 0;
  overflow: hidden;
}

.domoprotec-advantage__image img {
  width: 100%;
  height: clamp(220px, 18vw, 300px);
  object-fit: cover;
  border: none;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.14);
  display: block;
}

.domoprotec-advantage__card {
  margin-top: 0;
  border-radius: 0 0 25px 25px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-top: none;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
}

.domoprotec-advantage__card .wp-block-heading {
  font-size: 1.35rem;
}

.domoprotec-advantage__card p {
  font-size: 1.02rem;
  margin-top: 0.65rem;
}

.domoprotec-section {
  padding-top: var(--wp--preset--spacing--xl);
  padding-bottom: var(--wp--preset--spacing--xl);
}

.domoprotec-section--alt {
  background: var(--wp--preset--color--surface);
}

.domoprotec-reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 420ms ease;
  will-change: transform, opacity;
}

[data-reveal="left"],
.domoprotec-reveal--left {
  transform: translateX(-18px);
}

[data-reveal="right"],
.domoprotec-reveal--right {
  transform: translateX(18px);
}

[data-reveal="zoom"],
.domoprotec-reveal--zoom {
  transform: scale(0.97);
}

.domoprotec-reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Footer */
.domoprotec-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.domoprotec-footer .wp-block-heading {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.domoprotec-footer__brand img {
  margin-bottom: 1rem;
}

.domoprotec-footer__brand p {
  max-width: 32ch;
}

.domoprotec-footer__nav .wp-block-navigation {
  gap: 0.5rem;
}

.domoprotec-footer__nav .domoprotec-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.domoprotec-footer__nav .domoprotec-footer-menu a {
  display: inline-block;
}

.domoprotec-footer__nav a {
  color: var(--wp--preset--color--text);
  text-decoration: none;
  font-weight: 600;
}

.domoprotec-footer__nav a:hover {
  color: var(--wp--preset--color--primary);
}

.domoprotec-footer__nav a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.domoprotec-footer__legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.domoprotec-footer__legal a:hover {
  color: var(--wp--preset--color--primary);
}

.domoprotec-footer__legal a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wp-block-button__link:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .domoprotec-footer .wp-block-columns {
    gap: var(--wp--preset--spacing--l);
  }

  .domoprotec-footer .wp-block-group.is-layout-flex {
    justify-content: flex-start;
  }
}

/* Fluent Forms */
.fluentform .ff-btn.ff-btn-submit.wp-element-button,
.fluentform .ff-btn.ff-btn-submit {
  background: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--base) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.8rem 1.25rem !important;
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.fluentform .ff-btn.ff-btn-submit:hover {
  background: var(--wp--preset--color--primary-2) !important;
  color: var(--wp--preset--color--base) !important;
}

.fluentform .ff-btn.ff-btn-submit:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Posts: template posts-full */
body.post-template-posts-full {
  background: var(--wp--preset--color--surface);
}

body.post-template-posts-full .wp-site-blocks {
  padding-bottom: var(--wp--preset--spacing--xl);
}

body.post-template-posts-full .wp-block-post-title,
body.post-template-posts-full .wp-block-post-featured-image,
body.post-template-posts-full .wp-block-post-content,
body.post-template-posts-full .wp-block-post-date,
body.post-template-posts-full .wp-block-post-author,
body.post-template-posts-full .wp-block-post-terms,
body.post-template-posts-full .domoprotec-post-meta {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

body.post-template-posts-full .wp-block-post-title {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
  text-align: left;
}

body.post-template-posts-full .wp-block-post-date,
body.post-template-posts-full .wp-block-post-author,
body.post-template-posts-full .wp-block-post-terms {
  color: var(--wp--preset--color--muted);
  font-size: 0.95rem;
}

body.post-template-posts-full .domoprotec-post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font: 600 0.92rem/1.35 var(--wp--preset--font-family--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.58);
  text-align: left;
}

body.post-template-posts-full .domoprotec-post-meta > * {
  margin: 0;
}

body.post-template-posts-full .domoprotec-post-meta > *:not(:last-child) {
  position: relative;
  padding-right: 1.2rem;
}

body.post-template-posts-full .domoprotec-post-meta > *:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  transform: translateY(-50%);
}

body.post-template-posts-full .domoprotec-post-cover {
  min-height: clamp(320px, 45vw, 520px);
}

body.post-template-posts-full .domoprotec-post-cover .wp-block-cover__inner-container {
  text-align: left;
}

body.post-template-posts-full .domoprotec-post-cover .wp-block-cover__image-background {
  transform: none !important;
  object-position: center 30%;
}

body.post-template-posts-full .domoprotec-post-cover .wp-block-post-excerpt {
  color: var(--wp--preset--color--base);
  opacity: 0.9;
  font-size: 1.15rem;
  margin-top: 0.4rem;
  max-width: 52ch;
  text-align: left;
}

body.post-template-posts-full .domoprotec-post-cover .wp-block-post-excerpt,
body.post-template-posts-full .domoprotec-post-cover .wp-block-post-excerpt p {
  color: var(--wp--preset--color--base) !important;
}

body.post-template-posts-full .domoprotec-post-cover .wp-block-post-title {
  color: var(--wp--preset--color--base) !important;
  text-align: left;
}

body.post-template-posts-full .wp-block-post-featured-image img {
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.14);
  display: block;
}

body.post-template-posts-full .wp-block-post-content {
  font-size: 1.1rem;
  line-height: 1.75;
}

body.post-template-posts-full .wp-block-post-content > * {
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}

body.post-template-posts-full .wp-block-post-content > .alignwide {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

body.post-template-posts-full .wp-block-post-content > .alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.post-template-posts-full .wp-block-post-content .wp-block-group,
body.post-template-posts-full .wp-block-post-content .wp-block-columns,
body.post-template-posts-full .wp-block-post-content .wp-block-cover {
  border-radius: 20px;
}

body.post-template-posts-full .wp-block-post-content .wp-block-cover {
  overflow: hidden;
}

body.post-template-posts-full .wp-block-post-content .wp-block-columns {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

body.post-template-posts-full .wp-block-post-content .wp-block-quote {
  background: var(--wp--preset--color--surface);
  border-left: 4px solid var(--wp--preset--color--primary);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin-left: 0;
  margin-right: 0;
}

body.post-template-posts-full .wp-block-post-content .wp-block-pullquote {
  border-top: 1px solid rgba(2, 6, 23, 0.1);
  border-bottom: 1px solid rgba(2, 6, 23, 0.1);
  padding: 2rem 1rem;
}

body.post-template-posts-full .wp-block-post-content .wp-block-separator {
  border-color: rgba(2, 6, 23, 0.12);
  max-width: 120px;
}

body.post-template-posts-full .wp-block-post-content .wp-block-list {
  padding-left: 1.2rem;
}

body.post-template-posts-full .wp-block-post-content .wp-block-list li {
  margin-bottom: 0.6rem;
}

body.post-template-posts-full .wp-block-post-content figure,
body.post-template-posts-full .wp-block-post-content img {
  border-radius: 18px;
}

body.post-template-posts-full .wp-block-post-content figure img {
  display: block;
}

body.post-template-posts-full .wp-block-post-content .wp-block-gallery .wp-block-image img,
body.post-template-posts-full .wp-block-post-content .wp-block-image img {
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.12);
}

body.post-template-posts-full .wp-block-post-content pre,
body.post-template-posts-full .wp-block-post-content code {
  background: #0b0f1a;
  color: #f8fafc;
  border-radius: 12px;
}

body.post-template-posts-full .wp-block-post-content pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
}

body.post-template-posts-full .wp-block-post-content table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.08);
}

body.post-template-posts-full .wp-block-post-content table th,
body.post-template-posts-full .wp-block-post-content table td {
  border: 1px solid rgba(2, 6, 23, 0.08);
  padding: 0.75rem 0.9rem;
}

body.post-template-posts-full .wp-block-post-content table thead th {
  background: var(--wp--preset--color--surface);
  text-align: left;
}

body.post-template-posts-full .wp-block-post-content .wp-block-buttons .wp-block-button__link {
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
}

body.post-template-posts-full .domoprotec-reveal,
body.post-template-posts-full [data-reveal],
body.post-template-posts-full .domoprotec-reveal-group [data-reveal-step] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 960px) {
  body.post-template-posts-full .wp-block-post-title,
  body.post-template-posts-full .wp-block-post-featured-image,
  body.post-template-posts-full .wp-block-post-content,
  body.post-template-posts-full .wp-block-post-date,
  body.post-template-posts-full .wp-block-post-author,
  body.post-template-posts-full .wp-block-post-terms,
  body.post-template-posts-full .domoprotec-post-meta {
    max-width: 92vw;
  }
}
