:root {
  --bg: #0f0f10;
  --bg-soft: #171718;
  --panel: #1f1f21;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f4f1;
  --text-soft: #d4d0c9;
  --accent: #cdb083;
  --accent-strong: #e8bd7b;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body.has-member-modal {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.sub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.sub-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sub-header img {
  width: 180px;
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-nav a {
  border: 1px solid rgba(205, 176, 131, 0.4);
  padding: 9px 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}

.sub-nav a:hover {
  background: var(--accent-strong);
  color: #111;
}

.sub-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.45) 0%, rgba(8, 8, 8, 0.86) 100%),
    var(--hero-image) center / cover no-repeat;
  background-position: var(--hero-pos, center);
}

.sub-hero--staff::before {
  background-position: center, 58% center;
}

.sub-hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 0;
}

.sub-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
}

.sub-hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.08;
}

.sub-hero p {
  margin: 14px auto 0;
  max-width: 760px;
  color: var(--text-soft);
}

/* ── Hero Slider (Diseño y Producción) ── */
.hero-slider {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero-slider__track {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slider__slide.active {
  opacity: 1;
}

.hero-slider__overlay {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 360px;
  background: linear-gradient(180deg, rgba(8,8,8,.45) 0%, rgba(8,8,8,.86) 100%);
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}

.hero-slider__arrow:hover {
  background: rgba(0,0,0,.7);
}

.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

.hero-slider__subtitle {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  letter-spacing: .04em;
  color: var(--text-soft, #c8c0b6);
  background: rgba(8,8,8,.86);
}

.section {
  padding: 78px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.section p {
  margin: 0;
  color: var(--text-soft);
}

.dark {
  background: linear-gradient(180deg, var(--bg) 0%, #141416 100%);
}

.light {
  background: #f8f5ef;
  color: #111;
}

.light p,
.light li {
  color: #4d4d4d;
}

.cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--panel);
}

.light .card {
  background: #fff;
  border-color: #e6dfd4;
}

.card h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.timeline {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
  border-left: 2px solid rgba(205, 176, 131, 0.6);
  padding: 0 0 0 14px;
}

.timeline-year {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.light .timeline-year {
  color: #8b6c3d;
}

.list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 8px;
}

.rsc-intro {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.rsc-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rsc-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.rsc-list {
  margin: 0;
  padding-left: 18px;
}

.rsc-list li {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rsc-list li:last-child {
  margin-bottom: 0;
}

.rsc-list li .rsc-award-image {
  margin-top: 8px;
}

.rsc-award-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(205, 176, 131, 0.28);
  display: block;
}

.rsc-award-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.rsc-award-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--text-soft);
}

.service-detail {
  padding: 28px 0;
  border-top: 1px solid #e6dfd4;
}

.service-detail:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-detail h2 {
  margin-bottom: 18px;
}

.service-detail p {
  color: #4d4d4d;
  max-width: 920px;
  margin-bottom: 18px;
}

.service-copy {
  max-width: 920px;
  display: grid;
  gap: 22px;
}

.service-copy--feature {
  max-width: none;
}

.service-copy p {
  margin: 0;
  color: #4d4d4d;
  font-size: 1rem;
  line-height: 1.82;
  text-align: justify;
  text-wrap: pretty;
}

.service-copy-highlight {
  font-weight: 700;
  color: #2d251c;
}

.service-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.service-copy .service-cta-prompt {
  color: #2d251c;
  font-family: "Montserrat", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-align: left;
}

.service-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(205, 176, 131, 0.7);
  background: #2d251c;
  color: #f8f5ef;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.service-cta-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #111;
  transform: translateY(-1px);
}

.service-topic-group {
  display: grid;
  gap: 14px;
}

.service-topic-group h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d251c;
}

.service-topic-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.service-topic-list li {
  position: relative;
  padding-left: 20px;
  color: #4d4d4d;
  font-size: 1rem;
  line-height: 1.82;
  text-align: justify;
  text-wrap: pretty;
}

.service-topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cdb083;
  transform: translateY(-50%);
}

.service-topic-list strong {
  color: #2d251c;
}

.service-topic-list--compact {
  gap: 10px;
}

.service-topic-list--compact li {
  line-height: 1.65;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: start;
}

.service-visual-stack {
  display: grid;
  gap: 22px;
}

.service-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #e8e1d6;
  box-shadow: 0 18px 34px rgba(31, 22, 13, 0.08);
}

.service-visual img {
  display: block;
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}

.service-visual--staff img {
  object-position: 58% center;
}

.service-visual--logistica img {
  object-position: 32% 52%;
}

/* ── Service Slider (lateral) ── */
.service-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #e8e1d6;
  box-shadow: 0 18px 34px rgba(31, 22, 13, 0.08);
  min-height: 540px;
}

.service-slider__track {
  position: absolute;
  inset: 0;
}

.service-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}

.service-slider__slide.active {
  opacity: 1;
}

.service-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}

.service-slider__arrow:hover {
  background: rgba(0,0,0,.7);
}

.service-slider__arrow--prev { left: 12px; }
.service-slider__arrow--next { right: 12px; }

.service-slider__subtitle {
  text-align: center;
  padding: 14px 0 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(.85rem, 1.8vw, 1.05rem);
  letter-spacing: .04em;
  color: #1a1a1a;
}

.service-warehouse-block {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}

.service-warehouse-block--inline {
  margin-top: 0;
}

.service-warehouse-intro {
  margin: 0;
  max-width: 900px;
  color: #4d4d4d;
}

.service-warehouse-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-warehouse-card {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.service-warehouse-media {
  height: clamp(320px, 31vw, 420px);
  border-radius: 22px;
  overflow: hidden;
  background: #e8e1d6;
  box-shadow: 0 18px 34px rgba(31, 22, 13, 0.08);
}

.service-warehouse-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-warehouse-media--gran-canaria img {
  transform: scale(1.34);
  transform-origin: center center;
  object-position: center 16%;
}

.service-warehouse-placeholder {
  min-height: 280px;
  border-radius: 22px;
  border: 1px dashed rgba(205, 176, 131, 0.9);
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.96), rgba(230, 223, 212, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
}

.service-warehouse-placeholder span {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d6646;
}

.service-warehouse-card figcaption {
  min-height: 3.2em;
  color: #6a655d;
  font-size: 0.95rem;
  line-height: 1.6;
}

#svc-staff-promocional {
  background-position: 58% center;
}

.team-intro {
  margin: 0 0 24px;
  max-width: 820px;
}

.team-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.member-tile {
  display: grid;
  gap: 10px;
}

.member-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 5.7;
  background: #e8e1d6;
}

.member-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 300ms ease, filter 300ms ease;
}

.member-tile.is-monochrome .member-media img {
  filter: grayscale(100%);
}

.member-overlay {
  position: absolute;
  inset: 0;
  display: none; /* Deshabilitado temporalmente */
  place-items: center;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  transition: opacity 260ms ease;
}

.member-tile {
  cursor: default;
}

.member-overlay span {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-trigger {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(10, 10, 10, 0.32);
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.member-trigger:hover,
.member-trigger:focus-visible {
  background: rgba(232, 189, 123, 0.96);
  border-color: rgba(232, 189, 123, 0.96);
  color: #111;
  outline: none;
}

.member-tile:hover .member-overlay {
  opacity: 0; /* Deshabilitado temporalmente */
}

.member-tile:hover .member-media img {
  transform: scale(1.06);
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 24px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.member-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: blur(4px);
}

.member-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: #fff;
  color: #111;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  transform: translateY(24px) scale(0.98);
  transition: transform 220ms ease;
}

.member-modal.is-open .member-modal-dialog {
  transform: translateY(0) scale(1);
}

.member-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.member-modal-media {
  min-height: 620px;
  background: linear-gradient(135deg, #1e1b16 0%, #6f5331 100%);
  overflow: hidden;
}

.member-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  transform: scale(1.02);
}

.member-modal-content {
  padding: 40px 34px 34px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.member-modal-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #876536;
  font-weight: 700;
}

.member-modal-content h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.member-modal-role,
.member-modal-area,
.member-modal-bio,
.member-modal-quote {
  margin: 0;
}

.member-modal-role {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #876536;
  font-weight: 700;
}

.member-modal-area {
  font-size: 0.96rem;
  color: #595959;
}

.member-modal-bio {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: #3f3f3f;
  text-align: justify;
  text-wrap: pretty;
}

.member-modal-quote {
  margin-top: 6px;
  padding: 18px 20px;
  border-left: 3px solid #cdb083;
  background: #f6f1e8;
  color: #2f2f2f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.5;
}

.member-meta {
  display: grid;
  gap: 4px;
}

.member-name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  color: #111;
}

.member-role {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #876536;
  font-weight: 700;
}

.member-area {
  margin: 0;
  font-size: 0.8rem;
  color: #575757;
}

.member-tile.is-vacant .member-media img {
  filter: grayscale(30%) saturate(75%);
}

.org-overview {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.org-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.org-box h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.org-box ul {
  margin: 0;
  padding-left: 18px;
}

.org-box li {
  color: var(--text-soft);
  margin-bottom: 6px;
}

.light .org-box {
  background: #fff;
  border-color: #e6dfd4;
}

.light .org-box li {
  color: #4d4d4d;
}

.team-directory {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.team-group {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.light .team-group {
  background: transparent;
  border-color: transparent;
}

.team-group + .team-group {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(205, 176, 131, 0.22);
}

.light .team-group + .team-group {
  border-top-color: rgba(135, 101, 54, 0.18);
}

.team-group-header {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.team-group-header h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(205, 176, 131, 0.35);
  border-radius: 999px;
  color: var(--accent-strong);
}

.team-group-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.light .team-group-header p {
  color: #555;
}

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

.team-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

.light .team-card {
  background: #fcfbf8;
  border-color: #e4dcce;
}

.team-card.is-vacant {
  border-style: dashed;
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #332717 0%, #7a603c 100%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-photo-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 3px 7px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8f6f2;
  background: rgba(11, 11, 12, 0.52);
}

.team-body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.team-name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.22;
}

.team-role {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.light .team-role {
  color: #876536;
}

.team-area {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.light .team-area {
  color: #575757;
}

.team-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tags span {
  border: 1px solid rgba(205, 176, 131, 0.45);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.light .team-tags span {
  border-color: rgba(135, 101, 54, 0.35);
  color: #876536;
}

.team-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.light .team-note {
  color: #666;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  text-align: center;
  color: #8f8c86;
  font-size: 0.86rem;
  background: #09090b;
}

@media (max-width: 900px) {
  .service-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-warehouse-gallery {
    grid-template-columns: 1fr;
  }

  .service-warehouse-media {
    height: 360px;
  }

  .service-visual img {
    min-height: 420px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .rsc-grid {
    grid-template-columns: 1fr;
  }

  .team-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .team-intro {
    margin-bottom: 16px;
  }

  .member-name {
    font-size: 0.92rem;
  }

  .member-role {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .member-area {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .member-overlay span {
    font-size: 0.62rem;
    padding: 6px 9px;
  }

  .member-trigger {
    font-size: 0.62rem;
    padding: 6px 9px;
  }

  .org-overview {
    grid-template-columns: 1fr;
  }

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

  .team-group-header {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .member-modal-dialog {
    width: min(760px, 100%);
    grid-template-columns: 1fr;
  }

  .member-modal-media {
    min-height: 440px;
  }

  .member-modal-content {
    padding: 28px 24px 24px;
  }

  .sub-header-inner {
    min-height: 72px;
  }

  .sub-header img {
    width: 150px;
  }

  .sub-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .sub-nav a {
    min-width: 0;
    padding: 8px 9px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  .sub-header-inner {
    min-height: auto;
    padding: 10px 0 12px;
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .sub-header img {
    width: 138px;
  }

  .sub-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    justify-content: stretch;
  }

  .sub-nav a {
    padding: 7px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .sub-nav a:first-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 58px 0;
  }

  .team-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .member-tile {
    grid-template-columns: 124px 1fr;
    align-items: start;
    gap: 12px;
    border: 1px solid #e4dccf;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
  }

  .member-media {
    border-radius: 8px;
    aspect-ratio: auto;
    height: 164px;
  }

  .member-overlay {
    display: none; /* Deshabilitado temporalmente */
    opacity: 0;
    align-items: end;
    padding: 0 0 8px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.04), rgba(10, 10, 10, 0.62));
  }

  .member-overlay span {
    font-size: 0.56rem;
    padding: 4px 7px;
  }

  .member-trigger {
    font-size: 0.56rem;
    padding: 4px 7px;
  }

  .member-meta {
    align-content: center;
  }

  .member-name {
    font-size: 0.94rem;
  }

  .member-role {
    font-size: 0.64rem;
  }

  .member-area {
    font-size: 0.74rem;
  }

  .member-tile:hover .member-media img {
    transform: none;
  }

  .member-modal {
    padding: 12px;
  }

  .member-modal-dialog {
    border-radius: 18px;
  }

  .member-modal-media {
    min-height: 340px;
  }

  .service-visual {
    border-radius: 16px;
  }

  .service-visual img {
    min-height: 300px;
  }

  .member-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .member-modal-content {
    padding: 22px 18px 18px;
    gap: 10px;
  }

  .member-modal-bio {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .member-modal-quote {
    font-size: 1rem;
    padding: 14px 16px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
