.servicio-page {
  background: #ffffff;
  color: #171717;
}

.servicio-hero {
  position: relative;
  min-height: 230px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.servicio-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.servicio-hero-inner {
  position: relative;
  z-index: 2;
  padding: 18px 0 22px;
  text-align: center;
}

.servicio-hero .ink-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.servicio-hero .ink-breadcrumb a {
  color: #f7d26f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.servicio-hero .ink-breadcrumb a:hover {
  color: #fff0bf;
  border-color: currentColor;
}

.servicio-hero .ink-breadcrumb span {
  color: #fff;
}

.servicio-hero .ink-breadcrumb .sep {
  opacity: 0.95;
}

.servicio-hero .ink-breadcrumb .sep-icon {
  display: inline-block;
  color: #ffd977;
  font-weight: 900;
  font-size: 14px;
  transform: translateY(-1px);
}

.servicio-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
}

.servicio-gallery-section {
  padding: 20px 0 14px;
}

.servicio-gallery-wrap {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
}

.servicio-gallery-main-box {
  border-radius: 22px;
  overflow: hidden;
  height: 50vh;
  max-height: 50vh;
  min-height: 300px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.servicio-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-gallery-thumbs {
  display: grid;
  gap: 8px;
}

.servicio-gallery-thumb {
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.6;
  cursor: pointer;
  background: transparent;
}

.servicio-gallery-thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--accent);
}

.servicio-gallery-thumb img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  display: block;
}

.servicio-info-section {
  padding: 18px 0 30px;
}

.servicio-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.servicio-info-main h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 900;
}

.servicio-info-main :is(h1, h2, h3, h4, h5, h6, .wp-block-heading) {
  margin: 0 0 10px;
  color: #1a1a1a;
  font-weight: 800;
  line-height: 1.18;
}

.servicio-info-main h1 {
  font-size: clamp(30px, 3vw, 40px);
}

.servicio-info-main h2 {
  font-size: clamp(26px, 2.5vw, 34px);
}

.servicio-info-main h3 {
  font-size: clamp(22px, 2.1vw, 30px);
}

.servicio-info-main h4 {
  font-size: clamp(20px, 1.8vw, 25px);
}

.servicio-info-main h5 {
  font-size: clamp(18px, 1.5vw, 22px);
}

.servicio-info-main h6 {
  font-size: clamp(16px, 1.3vw, 18px);
}

.servicio-info-main :is(p, li, blockquote, figcaption) {
  margin: 0 0 12px;
  color: #2b2b2b;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  text-align: justify;
}

.servicio-info-main :is(ul, ol) {
  margin: 0 0 14px 22px;
  padding: 0;
}

.servicio-info-main blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

.servicio-info-main {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.servicio-info-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
}

.servicio-side-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.servicio-side-card h4 {
  margin: 0 0 8px;
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 800;
}

.servicio-side-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #525252;
}

.servicio-side-card-featured {
  text-align: left;
  background:
    radial-gradient(circle at 95% 8%, rgba(239, 146, 33, 0.2), transparent 33%),
    linear-gradient(180deg, #171717 0%, #232323 100%);
  border-color: rgba(239, 146, 33, 0.35);
}

.servicio-side-card-featured h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

/* Gutenberg content sizing override (single servicio) */
.servicio-info-main :is(.wp-block-heading, h1, h2, h3, h4, h5, h6) {
  font-weight: 700 !important;
  line-height: 1.22 !important;
  margin: 0 0 10px !important;
}

.servicio-info-main h1 {
  font-size: 26px !important;
}

.servicio-info-main h2 {
  font-size: 22px !important;
}

.servicio-info-main h3 {
  font-size: 20px !important;
}

.servicio-info-main h4 {
  font-size: 18px !important;
}

.servicio-info-main h5 {
  font-size: 16px !important;
}

.servicio-info-main h6 {
  font-size: 15px !important;
}

.servicio-info-main :is(p, li, blockquote, figcaption) {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.servicio-side-card-featured p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.servicio-side-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd769 0%, #ef9221 100%);
  border: 1px solid rgba(255, 201, 84, 0.95);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.servicio-side-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.servicio-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.servicio-side-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 8px 10px;
  text-decoration: none;
  color: #1f1f1f;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio-side-list li a:hover {
  border-color: rgba(239, 146, 33, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(239, 146, 33, 0.2);
}

.servicio-side-list li a span {
  font-size: 13px;
  font-weight: 700;
}

.servicio-side-list li a em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #7b7b7b;
}

.servicio-side-similar-list {
  display: grid;
  gap: 8px;
}

.servicio-side-similar-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.servicio-side-similar-item:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 146, 33, 0.75);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.servicio-side-similar-item img {
  width: 68px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.servicio-side-similar-copy {
  display: grid;
  gap: 3px;
}

.servicio-side-similar-copy strong {
  color: #1a1a1a;
  font-size: 13px;
  line-height: 1.3;
}

.servicio-side-similar-copy small {
  color: #666;
  font-size: 11px;
  line-height: 1.3;
}

.servicio-side-empty {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.servicio-side-card-cta p {
  margin: 0 0 10px;
}

.servicio-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(239, 146, 33, 0.95);
  padding: 11px 14px;
  text-decoration: none;
  color: #171717;
  background: linear-gradient(180deg, #ffc85b 0%, #ef9221 100%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.servicio-side-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 12px 22px rgba(239, 146, 33, 0.35);
}

.servicio-side-btn:visited,
.servicio-side-btn:link,
.servicio-side-btn:active {
  color: #171717;
}

.servicio-other-section {
  padding: 12px 0 42px;
}

.servicio-other-section h2 {
  margin: 0;
  color: #222;
  font-size: 30px;
}

.servicio-other-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.servicio-other-empty {
  margin: 10px 0 0;
  color: #555;
  font-size: 13px;
}

.servicio-other-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 170px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.servicio-other-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-other-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.88);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.section-signs {
  margin: 4px 0 10px;
}

.services-signs {
  display: inline-flex;
  gap: 6px;
}

.services-mark {
  width: 14px;
  height: 10px;
  background: var(--accent);
  transform: skewX(-28deg);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .servicio-hero {
    min-height: 180px;
  }

  .servicio-gallery-wrap {
    grid-template-columns: 1fr;
  }

  .servicio-gallery-main-box {
    height: 280px;
    max-height: none;
    min-height: 280px;
  }

  .servicio-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .servicio-info-grid {
    grid-template-columns: 1fr;
  }

  .servicio-info-sidebar {
    position: static;
  }

  .servicio-info-main {
    padding: 16px;
  }

  .servicio-info-main h1 {
    font-size: 24px !important;
  }

  .servicio-info-main h2 {
    font-size: 21px !important;
  }

  .servicio-info-main h3 {
    font-size: 19px !important;
  }

  .servicio-info-main h4 {
    font-size: 17px !important;
  }

  .servicio-info-main h5 {
    font-size: 16px !important;
  }

  .servicio-info-main h6 {
    font-size: 15px !important;
  }

  .servicio-info-main :is(p, li, blockquote, figcaption) {
    font-size: 14px !important;
    line-height: 1.62 !important;
  }

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