:root {
  --bg-cases: #e8e8e8;
  --green-cases: #121212;
  --right-bg: #000000;
  --sidebar-width: 60px;
  --transition-speed: 0.3s;
}

body.dark-mode {
  --bg-cases: #121212;
  --green-cases: #b8b8b8;
  --right-bg: #000000;
}

/* || Typography */
@font-face {
  font-family: GT-Walsheim-Pro-Regular;
  src: url('../fonts/GT-Walsheim-Pro-Regular.woff2') format("woff2"), 
       url('../fonts/GT-Walsheim-Pro-Regular.woff') format("woff"), 
       url('../fonts/GT-Walsheim-Pro-Regular.ttf') format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: GT-Walsheim-Pro-Medium;
  src: url('../fonts/GT-Walsheim-Pro-Medium.woff2') format("woff2"), 
       url('../fonts/GT-Walsheim-Pro-Medium.woff') format("woff"), 
       url('../fonts/GT-Walsheim-Pro-Medium.ttf') format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* || GENERAL STYLES */
html {
  scroll-behavior: smooth;
}

body.category-cases {
  background-color: var(--bg-cases) !important;
  color: var(--green-cases) !important;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.category-cases main {
  background-color: var(--bg-cases) !important;
  margin-left: var(--sidebar-width);
  transition: background-color var(--transition-speed);
}

/* || MOBILE HEADER */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-cases);
  border-bottom: 1px solid var(--green-cases);
  z-index: 2500;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  transition: background-color var(--transition-speed);
}

.mobile-nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.mobile-nav-link {
  text-transform: uppercase;
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--green-cases);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-link .icon-hamburger,
.mobile-nav-link .icon-mail {
  display: block;
  fill: currentColor;
}

/* || VERTICAL MENU */
.vertical-menu-container {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  border-right: 1px solid var(--green-cases);
  background-color: var(--bg-cases);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 0;
  box-sizing: border-box;
  overflow: visible;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.menu-top-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.menu-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--green-cases);
  text-decoration: none;
}

.menu-home-link .icon-home {
  fill: currentColor;
}

.menu-overlay-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--green-cases);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay-trigger .icon-hamburger {
  fill: currentColor;
}

.contact-trigger.contact-link {
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-trigger .icon-mail {
  fill: currentColor;
  transform: rotate(90deg);
}

.theme-toggle {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-cases);
}

.theme-toggle svg {
  fill: currentColor;
}

body.dark-mode .theme-toggle {
  color: #e8e8e8;
}

body.dark-mode .theme-toggle svg {
  fill: #e8e8e8;
}

body.dark-mode .menu-overlay-trigger,
body.dark-mode .contact-trigger.contact-link {
  color: #e8e8e8;
}

body.dark-mode .menu-overlay-trigger .icon-hamburger,
body.dark-mode .contact-trigger .icon-mail {
  fill: #e8e8e8;
}

body.dark-mode .mobile-nav-link {
  color: #e8e8e8;
}

body.dark-mode .mobile-nav-link .icon-hamburger,
body.dark-mode .mobile-nav-link .icon-mail {
  fill: #e8e8e8;
}

/* Dark mode: sidebar siempre legible (iconos y texto claros sobre fondo oscuro) */
body.dark-mode .vertical-menu-container {
  border-color: #e8e8e8;
}

body.dark-mode .vertical-menu-container a,
body.dark-mode .vertical-menu-container .menu-bottom-text,
body.dark-mode .vertical-menu-container .menu-bottom-text .site-title,
body.dark-mode .vertical-menu-container .menu-bottom-text .site-tagline {
  color: #e8e8e8 !important;
}

body.dark-mode .vertical-menu-container a:hover {
  opacity: 0.85;
}

body.dark-mode .menu-home-link,
body.dark-mode .menu-home-link .icon-home {
  color: #e8e8e8 !important;
  fill: #e8e8e8 !important;
}

body.dark-mode .vertical-menu-container .menu-top-actions .theme-toggle,
body.dark-mode .vertical-menu-container .menu-top-actions .theme-toggle svg,
body.dark-mode .vertical-menu-container .menu-overlay-trigger,
body.dark-mode .vertical-menu-container .menu-overlay-trigger .icon-hamburger,
body.dark-mode .vertical-menu-container .contact-trigger,
body.dark-mode .vertical-menu-container .contact-trigger .icon-mail {
  color: #e8e8e8 !important;
  fill: #e8e8e8 !important;
}

.contact-link {
  transform: rotate(-90deg);
  white-space: nowrap;
  color: var(--green-cases);
  text-decoration: none;
  text-transform: uppercase;
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 0.8rem;
  letter-spacing: 2px;
  cursor: pointer;
}

.vertical-menu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.vertical-menu-container li {
  transform: rotate(-90deg);
  white-space: nowrap;
}

.vertical-menu-container a {
  color: var(--green-cases);
  text-decoration: none;
  text-transform: uppercase;
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 0.8rem;
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
}

.menu-bottom-text {
  margin-top: auto;
  margin-bottom: 20px;
  padding: 0 15px;
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  color: var(--green-cases);
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: none;
  opacity: 1;
  pointer-events: none;
}

.menu-bottom-text .site-tagline::before {
  content: ' / ';
  white-space: pre;
}

#copy-notification {
  position: fixed;
  left: 80px;
  top: 20px;
  background: var(--green-cases);
  color: var(--bg-cases);
  padding: 5px 15px;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 20px;
  display: none;
  z-index: 3500;
}

/* || ABOUT OVERLAY (no cubre la sidebar: empieza a la derecha) */
#about-overlay {
  position: fixed;
  left: var(--sidebar-width);
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-cases);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}

#about-overlay.active {
  opacity: 1;
  visibility: visible;
}

#about-overlay .about-content-inner:not(.page-labor),
#about-overlay .about-text {
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  color: var(--green-cases);
  font-family: 'Cormorant Garamond', Times New Roman;
  font-size: 1.4rem;
  line-height: 1.4;
}

#about-overlay .about-content-inner.page-labor {
  max-width: none;
  width: 90%;
  max-height: 100vh;
  overflow-y: auto;
  padding: 0;
  align-self: flex-start;
  margin-top: 0;
}

/* En el overlay, el bloque Labor debe ir más cercano al borde izquierdo */
#about-overlay .page-labor .labor-inner {
  padding-left: 40px;
  padding-right: 40px;
}

#about-overlay .about-content-inner:not(.page-labor) p,
#about-overlay .about-text p {
  margin: 0 0 1em 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

#about-overlay .about-content-inner:not(.page-labor) h1,
#about-overlay .about-content-inner:not(.page-labor) h2,
#about-overlay .about-content-inner:not(.page-labor) h3,
#about-overlay .about-text h1,
#about-overlay .about-text h2,
#about-overlay .about-text h3 {
  margin: 1.2em 0 0.5em 0;
  color: var(--green-cases);
  font-family: GT-Walsheim-Pro-Regular, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#about-overlay .about-content-inner:not(.page-labor) ul,
#about-overlay .about-text ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5em 2em;
}

#about-overlay .about-content-inner:not(.page-labor) li,
#about-overlay .about-text li {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 0.95em;
  line-height: 1.4;
}

#about-overlay .about-content-inner:not(.page-labor) strong,
#about-overlay .about-content-inner:not(.page-labor) b,
#about-overlay .about-text strong,
#about-overlay .about-text b {
  font-weight: 700;
  color: inherit;
}

body.dark-mode #about-overlay .about-content-inner:not(.page-labor),
body.dark-mode #about-overlay .about-content-inner:not(.page-labor) *,
body.dark-mode #about-overlay .about-text,
body.dark-mode #about-overlay .about-text * {
  color: var(--green-cases) !important;
}

#close-about {
  position: absolute;
  top: 40px;
  right: 40px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: GT-Walsheim-Pro-Regular;
  letter-spacing: 2px;
  font-size: 0.8rem;
  border: none;
  background: none;
  color: var(--green-cases);
}

/* || SECTIONS */
.section {
  min-height: 80vh;
  display: flex;
  position: relative;
  border-bottom: 1px solid var(--green-cases);
  overflow: hidden;
}

.left {
  width: 50%;
  box-sizing: border-box;
  min-height: 80vh;
  border-right: 1px solid var(--green-cases);
}

.content {
  position: relative;
  display: flex;
  min-height: 80vh;
  align-items: center; 
  padding: 60px 0;
  box-sizing: border-box;
}

.datosBox {
  padding: 0 80px;
  width: 100%;
}

.category-cases .datosBox h2 {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 4.5rem;
  line-height: 1.1;
  text-align: left;
  margin: 0 0 15px 0;
  color: var(--green-cases) !important;
}

.category-cases .case-meta {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: block;
  opacity: 0.8;
  color: var(--green-cases) !important;
}

.category-cases .case-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 25px;
  display: block;
  color: var(--green-cases) !important;
}

.category-cases .txt {
  margin: 2em 0;
  padding: 0;
  border: none;
  font-family: 'Cormorant Garamond', Times New Roman;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--green-cases) !important;
}

body.dark-mode .category-cases .txt,
body.dark-mode .category-cases .txt p,
body.dark-mode .category-cases .txt * {
  color: var(--green-cases) !important;
}

.category-cases .txt p {
  margin: 0 0 1em 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.category-cases .txt strong,
.category-cases .txt b {
  font-weight: 700;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.category-cases .txt em {
  font-size: inherit;
  color: inherit;
  font-style: italic;
}

.category-cases .txt a,
.category-cases .datosBox a {
  font-size: inherit;
  font-weight: inherit;
}

.category-cases .txt a:hover,
.category-cases .datosBox a:hover {
  color: #0000ff;
}

body.dark-mode .category-cases .txt a:hover,
body.dark-mode .category-cases .datosBox a:hover {
  color: #0000ff !important;
}

.category-cases .case-tags a,
.category-cases .case-tags span {
  color: var(--green-cases) !important;
  border: 1px solid var(--green-cases) !important;
  padding: 4px 12px;
  font-size: 0.75rem;
  margin-right: 8px;
  margin-bottom: 8px;
  display: inline-block;
  text-transform: uppercase;
  border-radius: 15px;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-cases .case-tags a:hover {
  background-color: #0000ff;
  color: #fff !important;
  border-color: #0000ff !important;
}

body.dark-mode .category-cases .case-tags a:hover {
  background-color: #0000ff;
  color: #fff !important;
  border-color: #0000ff !important;
}

/* En /cases (archivo category-cases.php) las etiquetas no deben navegar */
body.category-cases:not(.archive-category-default) .case-tags a {
  pointer-events: none;
  cursor: default;
}

/* || RIGHT COLUMN */
.right {
  width: 50%;
  box-sizing: border-box;
  background-color: var(--right-bg);
  position: relative;
  min-height: 80vh;
  transition: background-color var(--transition-speed);
}

.gallery-box-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  touch-action: pan-y;
}

.right .gallery-box {
  height: 100%;
  width: 100%;
  position: relative;
}

.right .galleryImgBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.right .galleryImgBox.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.right .galleryImgBox img,
.right .galleryImgBox--video video {
  display: block;
  max-height: 75vh; /* Ajustado para que las fotos ganen tamaño pero sin ser excesivo */
  max-width: 100%;
  width: auto; /* Evita estirar imágenes pequeñas y el pixelado */
  height: auto;
  object-fit: contain;
}

.right .galleryImgBox--video {
  cursor: pointer;
}

.right .galleryImgBox--video video {
  cursor: pointer;
  pointer-events: auto;
}

/* Flechas de galería (Cases y archive) */
.gallery-box-wrapper .archive-gallery-prev,
.gallery-box-wrapper .archive-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--green-cases);
  background: var(--bg-cases);
  color: var(--green-cases);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-box-wrapper .archive-gallery-prev:hover,
.gallery-box-wrapper .archive-gallery-next:hover {
  background: #0000ff;
  color: #fff;
  border-color: #0000ff;
}

.gallery-box-wrapper .archive-gallery-prev:hover svg,
.gallery-box-wrapper .archive-gallery-next:hover svg {
  stroke: #fff;
  fill: none;
}

.gallery-box-wrapper .archive-gallery-prev {
  left: 15px;
}

.gallery-box-wrapper .archive-gallery-next {
  right: 15px;
}

.gallery-box-wrapper .archive-gallery-prev svg,
.gallery-box-wrapper .archive-gallery-next svg {
  display: block;
  stroke: currentColor;
  fill: none;
}

/* Flechas: dark mode (fondo oscuro, stroke claro) - igual en Cases y archive */
body.dark-mode .gallery-box-wrapper .archive-gallery-prev,
body.dark-mode .gallery-box-wrapper .archive-gallery-next {
  background: #121212;
  color: #e8e8e8;
  border-color: #e8e8e8;
}

body.dark-mode .gallery-box-wrapper .archive-gallery-prev svg,
body.dark-mode .gallery-box-wrapper .archive-gallery-next svg {
  stroke: #e8e8e8;
  fill: none;
}

body.dark-mode .gallery-box-wrapper .archive-gallery-prev:hover,
body.dark-mode .gallery-box-wrapper .archive-gallery-next:hover {
  background: #0000ff;
  color: #fff;
  border-color: #0000ff;
}

body.dark-mode .gallery-box-wrapper .archive-gallery-prev:hover svg,
body.dark-mode .gallery-box-wrapper .archive-gallery-next:hover svg {
  stroke: #fff;
  fill: none;
}

/* || ARCHIVE CATEGORY DEFAULT (1 col: título, categorías, gallery slide, content) */
.archive-category-default .archive-default-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 80px 80px;
  box-sizing: border-box;
}

.archive-category-default .archive-page-title {
  font-family: GT-Walsheim-Pro-Regular, sans-serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-cases);
  margin: 0 0 2.5rem 0;
}

.archive-category-default .archive-section {
  display: flex;
  flex-direction: column;
  min-height: auto;
  border-bottom: 1px solid var(--green-cases);
  overflow: hidden;
}

.archive-category-default .archive-entry-header {
  width: 100%;
  padding: 40px 0 30px;
  box-sizing: border-box;
}

.archive-category-default .archive-entry-header h2 {
  margin: 0 0 15px 0;
}

.archive-category-default .archive-entry-header h2 a {
  color: inherit;
  text-decoration: none;
}

.archive-category-default .archive-entry-header h2 a:hover {
  color: #0000ff;
}

.archive-category-default .archive-entry-gallery {
  position: relative;
  background-color: transparent;
  width: 100%;
  height: 60vh;
  min-height: 320px;
}

.archive-category-default .archive-entry-gallery .gallery-box {
  height: 100%;
  width: 100%;
  position: relative;
}

.archive-category-default .archive-entry-gallery .galleryImgBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.archive-category-default .archive-entry-gallery .galleryImgBox.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.archive-category-default .archive-entry-gallery .galleryImgBox img,
.archive-category-default .archive-entry-gallery .galleryImgBox--video video {
  display: block;
  max-height: 55vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.archive-category-default .archive-entry-gallery .galleryImgBox--video {
  cursor: pointer;
}

.archive-category-default .archive-excerpt {
  width: 100%;
  padding: 12px 0 50px;
  box-sizing: border-box;
}

.archive-category-default .archive-excerpt:last-child {
  margin-bottom: 0;
}

/* || RESPONSIVE - Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .section {
    min-height: 65vh;
  }

  .left,
  .right {
    min-height: 65vh;
  }

  .content {
    min-height: 65vh;
    padding: 40px 0;
  }

  .datosBox {
    padding: 0 40px;
  }

  .category-cases .datosBox h2 {
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .gallery-box-wrapper {
    height: 65vh;
  }

  .right .galleryImgBox img,
  .right .galleryImgBox--video video {
    max-height: 60vh;
  }

  .menu-bottom-text {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
}

/* || RESPONSIVE - Mobile */
@media (max-width: 768px) {
  .vertical-menu-container { display: none; }
  .mobile-header { display: flex; }

  .mobile-header .icon-mail {
    transform: none;
  }
  .category-cases main { margin-left: 0; padding-top: 60px; }
  
  .section { 
    flex-direction: column-reverse; 
    min-height: auto; 
    border-bottom: 2px solid var(--green-cases);
  }
  
  .left, .right { 
    width: 100% !important; 
    min-height: auto !important; 
    border-right: none;
  }
  
  .gallery-box-wrapper { height: 60vh; }
  .right .galleryImgBox { padding: 15px; } /* Ajuste de aire en móvil */

  .content { min-height: auto; padding: 40px 0; }
  .datosBox { padding: 0 25px; }
  
  .category-cases .datosBox h2 { font-size: 1.8rem; }

  .archive-category-default .archive-default-inner {
    padding: 40px 25px 60px;
  }
  .archive-category-default .archive-page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .archive-category-default .archive-entry-header {
    padding: 30px 0 20px;
  }
  .archive-category-default .archive-entry-gallery {
    height: 50vh;
    min-height: 240px;
  }
  .archive-category-default .archive-entry-gallery .galleryImgBox {
    padding: 15px;
  }
  .archive-category-default .archive-entry-gallery .galleryImgBox img,
  .archive-category-default .archive-entry-gallery .galleryImgBox--video video {
    max-height: 45vh;
  }
  .archive-category-default .archive-excerpt {
    padding: 25px 0 40px;
  }

  #about-overlay { left: 0; }
  #close-about { top: 20px; right: 20px; }
  
  #copy-notification { left: 50%; transform: translateX(-50%); top: 70px; }
}

/* || PAGE LABOR (alineado con Cases) */
.page-labor .labor-inner {
  max-width: 1100px;
  margin: 0;
  padding: 60px 80px 80px;
  box-sizing: border-box;
  text-align: left;
}

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

.page-labor .labor-content h1 {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 0.4em 0;
  color: var(--green-cases) !important;
}

.page-labor .labor-content,
.page-labor .labor-content p {
  font-family: 'Cormorant Garamond', Times New Roman, serif;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--green-cases) !important;
  margin: 0 0 .6em 0;
}

.page-labor .labor-content p:last-child {
  margin-bottom: 0;
}

.page-labor .labor-content strong,
.page-labor .labor-content b {
  font-family: 'Cormorant Garamond', Times New Roman, serif;
  font-weight: 700;
  font-size: inherit;
  color: inherit;
}

.page-labor .labor-content em {
  font-size: inherit;
  color: inherit;
  font-style: italic;
}

.labor-categories-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 60px;
  margin-top: 2.5em;
  font-family: GT-Walsheim-Pro-Regular, sans-serif;
  color: var(--green-cases);
  line-height: 1;
  width: calc(100% + 160px);
  margin-left: 0;
  margin-right: -160px;
}

.labor-category-column {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.page-labor .labor-category-title {
  font-family: GT-Walsheim-Pro-Regular, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 0.4em 0;
  letter-spacing: 0.02em;
  color: var(--green-cases);
  text-decoration: underline;
}

.page-labor .labor-subcategories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-labor .labor-subcategories li {
  padding-left: 0;
  margin-bottom: 0.35em;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
}

.page-labor .labor-subcategories a {
  font-size: inherit;
  font-weight: inherit;
  color: var(--green-cases);
  text-decoration: none;
}

.page-labor .labor-subcategories a:hover {
  opacity: 0.8;
}

.page-labor .labor-inner a:hover {
  color: #0000ff !important;
}

body.dark-mode .page-labor .labor-inner a:hover {
  color: #0000ff !important;
}

/* Anular reset (font-size/font-weight en * y a) para todo el contenido Labor */
.page-labor .labor-inner a {
  font-size: inherit;
  font-weight: inherit;
}

body.dark-mode .page-labor .labor-title,
body.dark-mode .page-labor .labor-content,
body.dark-mode .page-labor .labor-content p,
body.dark-mode .page-labor .labor-content strong,
body.dark-mode .page-labor .labor-content b,
body.dark-mode .page-labor .labor-content em,
body.dark-mode .page-labor .labor-category-title,
body.dark-mode .page-labor .labor-subcategories a {
  color: var(--green-cases) !important;
}

/* Asegurar iconos (hamburguesa + mail) visibles en dark-mode
   incluso si reset u otros estilos fuerzan color/fill oscuros */
body.dark-mode svg.icon-hamburger,
body.dark-mode svg.icon-mail {
  color: #e8e8e8 !important;
  fill: #e8e8e8 !important;
}

/* El reset aplica color al path; forzamos también aquí */
body.dark-mode svg.icon-hamburger path,
body.dark-mode svg.icon-mail path {
  color: #e8e8e8 !important;
  fill: #e8e8e8 !important;
}

@media (max-width: 768px) {
  .page-labor .labor-inner {
    padding: 40px 25px 60px;
  }
  .page-labor .labor-content h1 {
    font-size: 3rem;
  }
  .page-labor .labor-category-title {
    font-size: 2rem;
  }
  .page-labor .labor-subcategories li {
    font-size: 1.4rem;
  }
  .page-labor .labor-categories-list {
    flex-direction: column;
    gap: 1.5rem 0;
    margin-top: 2em;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}