/* =========================================================
   SERVICIO — estilos específicos de la página
   (las reglas compartidas viven en styles.css)
   ========================================================= */

.block-label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  opacity: 0.6;
  z-index: 10;
}

.btn-outline {
  background: transparent;
  color: #fafaf7ba;
  border: 1px solid var(--gray-400);
  border-color: #fafaf7ba;
}

.btn-outline:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateX(2px);
}

.placeholder {
  min-height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,188,212,.26), rgba(230,0,126,.22)),
    repeating-linear-gradient(45deg, #f1f1f1 0 12px, #e7e7e7 12px 24px);
  border: 1px solid var(--gray-300);
  position: relative;
  overflow: hidden;
}

.placeholder::after {
  content: attr(data-label);
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(17,17,17,.82);
  color: white;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
}

/* HERO */
.hero {
  padding: 120px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('/images/servicios/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0;
  text-align: left;
  color: var(--white);
  position: relative;
  z-index: 3;
}

.hero-content .eyebrow {
  color: var(--cyan);
}

/* El guion hereda el color del label en vez del gris de styles.css */
.hero-content .eyebrow::before {
  background: currentColor;
}

.hero-content h1 {
  color: var(--white);
}

.hero-content p {
  color: var(--white);
}

.hero-content .lead {
  color: rgba(255,255,255,0.9);
  margin: 0 auto;
}

.micro {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
}

.micro span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 13px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--gray-50);
}

/* ARTICLES */
.intro-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-auto-rows: 280px;
  gap: 24px;
}

.article-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: .2s ease;
  position: relative;
}

.article-card.featured {
  grid-row: 1 / 3;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.article-card:hover::before {
  opacity: 1;
}

.article-card .placeholder {
  border-radius: 0;
  border: 0;
  height: 100%;
  object-fit: cover;
}

.article-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 16px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  z-index: 1;
}

/* DIFFERENTIAL */
.soft-bg {
  background: #e0f3ff;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.check-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.check-list li {
  list-style: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--black);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--magenta);
  margin-top: 7px;
  flex: 0 0 10px;
}

.carousel-wire {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 18px;
  overflow: hidden;
  padding-bottom: 8px;
}

.carousel-wire .placeholder {
  min-height: 420px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background 0.3s ease, width 0.3s ease;
}

.carousel-dot.active {
  background: var(--magenta);
  width: 28px;
  border-radius: 5px;
}

/* =========================================
   PROCESO — TIMELINE VERTICAL TIPO COSTURA
   ========================================= */
.tl {
  position: relative;
  max-width: 860px;
  margin: 64px auto 0;
  padding: 8px 0;
}

/* Punta de máquina de coser arriba del recorrido */
.tl-needle {
  display: block;
  width: auto;
  height: 100px;
  object-fit: contain;
  margin: 15px auto 10px;
  position: relative;
  z-index: 4;
}

/* Hilo de costura curvo (SVG) que serpentea uniendo los números */
.tl-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Costura recta de respaldo (solo mobile) */
.tl::before {
  content: "";
  position: absolute;
  display: none;
  top: 6px;
  bottom: 6px;
  left: 23px;
  width: 3px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--magenta) 0 7px,
      transparent 7px 14px
    );
  opacity: 0.55;
  border-radius: 2px;
}

.tl-step {
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* Altura fija por paso -> los números quedan en posiciones exactas
   para que la costura curva pase por cada uno */
.tl-step.tl-left,
.tl-step.tl-right {
  height: 112px;
}

.tl-step.tl-left {
  left: 0;
  padding-right: 30px;
}

.tl-step.tl-right {
  left: 50%;
  padding-left: 30px;
}

.tl-left .tl-card,
.tl-right .tl-card {
  width: 100%;
}

.tl-step.tl-center {
  left: 25%;
  width: 50%;
  height: 130px;
  padding: 0;
}

/* Círculo numerado sobre la costura */
.tl-num {
  position: absolute;
  top: -15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(0, 180, 216, 0.30);
  border: 3px solid var(--white);
  z-index: 3;
}

/* En la esquina superior interna (lado que mira a la costura) */
.tl-left .tl-num { right: 10px; }
.tl-right .tl-num { left: 10px; }
.tl-center .tl-num {
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
}

/* Tarjeta blanca — ícono al lado del texto */
.tl-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tl-center .tl-card {
  margin-top: 12px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
  border-color: var(--cyan);
}

.tl-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 30px;
  height: 30px;
  color: var(--magenta);
}

.tl-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Aguja recoloreada con el color del ícono (magenta) vía mask */
.tl-icon-img {
  height: 40px;
  width: 40px;
  background-color: var(--magenta);
  -webkit-mask: url('/images/servicios/punta-maquina-coser.svg') no-repeat center / contain;
  mask: url('/images/servicios/punta-maquina-coser.svg') no-repeat center / contain;
}

.tl-icon-img img {
  display: none;
}

.tl-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 3px 0;
}

.tl-card p {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--gray);
  margin: 0;
}

/* Tarjetas derechas espejadas: ícono afuera, número del lado de la costura */
.tl-right .tl-card {
  grid-template-columns: 1fr auto;
  text-align: right;
}

.tl-right .tl-icon { grid-column: 2; }

.tl-right .tl-card h3,
.tl-right .tl-card p { grid-column: 1; }

/* Nota elegante al pie */
.tl-note {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 16px 22px;
  border: 1px dashed var(--gray-300);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
  text-align: center;
}

@media (max-width: 768px) {
  .process .intro-center {
    margin-bottom: -80px;
  }

  .tl {
    margin-top: 4px;
  }

  /* En mobile: costura recta a la izquierda, ocultar hilo curvo */
  .tl-thread {
    display: none;
  }

  /* Aguja alineada a la izquierda, centrada sobre la costura */
  .tl-needle {
    height: auto;
    width: 44px;
    margin: 15px auto 10px 2px;
  }

  .tl::before {
    display: block;
    top: 84px;
  }

  .tl-step,
  .tl-step.tl-left,
  .tl-step.tl-right,
  .tl-step.tl-center {
    width: 100%;
    height: auto;
    display: block;
    left: 0;
    padding-left: 62px;
    padding-right: 0;
    margin-bottom: 28px;
    margin-top: 0;
  }

  .tl-left .tl-num,
  .tl-right .tl-num,
  .tl-center .tl-num {
    left: 0;
    right: auto;
    top: 20px;
    transform: none;
  }

  /* Desespejar las cards derechas en mobile */
  .tl-right .tl-card {
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .tl-right .tl-icon { grid-column: 1; }

  .tl-right .tl-card h3,
  .tl-right .tl-card p { grid-column: 2; }

  .tl-center .tl-card {
    margin-top: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ASESORAMIENTO */
.asesoramiento-section {
  padding: 96px 0;
  background: var(--gray-50);
}

/* QUALITY */
.quality-section {
  padding: 96px 0;
  background: var(--black);
}

.quality-section h2 {
  color: var(--white);
}

.quality-section p {
  color: rgba(250, 250, 247, 0.85);
}

.quality-section .eyebrow {
  color: var(--cyan);
}

.quality-section .eyebrow::before {
  background: currentColor;
}

.quality-section .alert {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
  color: rgba(250, 250, 247, 0.85);
}

.quality-section .alert p {
  color: rgba(250, 250, 247, 0.85);
}

/* TRUST SIGNALS */
.trust-signals {
  padding: 24px 0;
  background: var(--black);
  overflow: hidden;
}

.trust-scroll {
  overflow: hidden;
  width: 100%;
}

.trust-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.trust-content span {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  flex-shrink: 0;
  display: inline-block;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

/* BEFORE-AFTER SLIDER */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  user-select: none;
}

.before-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.after-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.after-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.before-after-divider::before,
.before-after-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-after-divider::before {
  right: 100%;
  margin-right: 8px;
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 10px rgba(0, 180, 216, 0.4);
}

.before-after-divider::after {
  left: 100%;
  margin-left: 8px;
  box-shadow: inset 0 0 0 2px var(--magenta), 0 0 10px rgba(230, 0, 126, 0.4);
}

.before-after-label {
  position: absolute;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  z-index: 5;
}

.before-label {
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
}

.after-label {
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
}

.alert {
  margin-top: 26px;
  background: #fff3f9;
  border: 1px solid rgba(230,0,126,.22);
  border-radius: 18px;
  padding: 20px;
}

.alert p {
  font-size: 15px;
  color: var(--black);
}

.image-sequence {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.image-sequence .placeholder {
  min-height: 180px;
}

/* GALLERY */
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter {
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
}

/* GALLERY MASONRY */
.gallery-masonry {
  column-count: 2;
  column-gap: 20px;
}

.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  border: 3px dashed var(--cyan);
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
  font-family: inherit;
  text-align: left;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item[data-type="video"] img {
  background: var(--black);
}

/* PLAY ICON FOR VIDEOS */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--magenta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  pointer-events: none;
}

.play-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

/* VIDEO BADGE */
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.filter {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.filter:hover {
  background: var(--gray-100);
}

.filter.active {
  background: var(--cyan);
  color: var(--white);
}

.gallery-item.hidden,
.gallery-video.hidden {
  display: none;
}

/* CTA SECTION - HORIZONTAL COMPACTO */
.cta-section {
  padding: 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-300);
}

.cta-box {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
  max-width: 850px;
  margin: 0 auto;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}

.cta-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0;
}

.cta-button {
  flex-shrink: 0;
}

.schedule {
  margin-top: 24px;
  font-family: var(--font-body);
  color: rgba(255,255,255,.72);
  font-size: 15px;
}

/* CTA FINAL */
.cta-section {
  padding: 80px 0;
  background: var(--magenta);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.cta-section .eyebrow {
  color: var(--white);
  opacity: 0.7;
}

.cta-section .eyebrow::before {
  background: var(--white);
  opacity: 0.7;
}

.cta-content {
  max-width: 480px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--white);
}

.cta-title em {
  font-style: italic;
  font-weight: 400;
}

.cta-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.85;
  margin: 0;
  font-weight: 400;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 60px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-link:hover {
  background: var(--white);
  color: var(--magenta);
}

.contact-link .arrow {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.contact-link:hover .arrow {
  transform: translateX(4px);
}

@media (min-width: 1025px) {
  .gallery-masonry {
    column-count: 4;
    column-gap: 20px;
  }
}

@media (max-width: 980px) {
  section {
    padding: 72px 0;
  }

  .split,
  .quality-grid {
    grid-template-columns: 1fr;
  }

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

  .article-card.featured {
    grid-row: auto;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta-contact {
    padding-top: 0;
  }

  .gallery-head {
    display: block;
  }

  .filters {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .gallery-masonry {
    column-count: 3;
    column-gap: 20px;
  }

  .gallery-item {
    margin-bottom: 20px;
  }

  .play-icon {
    width: 56px;
    height: 56px;
  }

  .play-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 700px) {
  .textiles-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-masonry {
    column-count: 2;
    column-gap: 12px;
  }

  .gallery-item {
    margin-bottom: 12px;
  }

  .play-icon {
    width: 48px;
    height: 48px;
  }

  .play-icon svg {
    width: 20px;
    height: 20px;
  }

  .video-badge {
    top: 8px;
    right: 8px;
    font-size: 8px;
    padding: 3px 6px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero {
    min-height: 70vh;
    padding: 80px 0;
    background-attachment: scroll;
  }

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

  .carousel-wire {
    grid-auto-columns: 88%;
    overflow-x: auto;
  }

  .cta-box {
    flex-direction: column;
    gap: 28px;
    padding: 40px 20px;
  }

  .cta-content {
    text-align: center;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-text {
    font-size: 15px;
  }

  .cta-button {
    text-align: center;
  }
}

/* GALLERY MODAL */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalContentIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.92);
  cursor: pointer;
}

.gallery-modal-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  max-height: 85vh;
  padding: 20px;
  animation: modalContentIn 0.25s ease-out;
}

@media (max-width: 700px) {
  .gallery-modal-content {
    padding: 20px;
  }
}

.gallery-modal-media {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--white);
  border-radius: var(--radius);
  background: var(--black);
  overflow: hidden;
}

.gallery-modal-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-modal-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* Círculo magenta como el resto de los botones de modal: en transparente
     los iconos se perdían contra fotos y videos oscuros. */
  background: rgba(229, 0, 127, 0.8);
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
  border-radius: 50%;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: var(--magenta);
}

.gallery-modal-close {
  top: 20px;
  right: 20px;
}

.gallery-modal-close svg {
  width: 24px;
  height: 24px;
}

.gallery-modal-prev,
.gallery-modal-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(229, 0, 127, 0.8);
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: var(--magenta);
}

.gallery-modal-prev {
  left: 20px;
}

.gallery-modal-next {
  right: 20px;
}

.gallery-modal-prev svg,
.gallery-modal-next svg {
  width: 28px;
  height: 28px;
}

.gallery-modal-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--white);
  z-index: 10;
}

.gallery-modal-counter {
  color: var(--white);
}

.gallery-modal-category {
  color: var(--magenta);
  text-transform: uppercase;
  font-weight: 600;
}

/* TEXTILES SECTION - REFACTORED */
.textiles-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: transparent;
  position: relative;
}

.textiles-header {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.textiles-header h2 {
  margin-bottom: 16px;
}

/* Salto de línea del título solo en PC */
.br-desktop {
  display: none;
}

@media (min-width: 769px) {
  .br-desktop {
    display: inline;
  }
}

.textiles-intro {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--gray);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* SUPERFICIES Y TÉCNICAS — categorías con carruseles */
.superficies {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 8px;
}

.sup-cat-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 10px 0;
}

.sup-cat-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 90ch;
  margin: 0 0 22px 0;
}

.sup-carousel-wrap {
  position: relative;
}

.sup-carousel {
  list-style: none;
  margin: 0;
  padding: 4px 2px 10px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.sup-carousel::-webkit-scrollbar {
  display: none;
}

.sup-carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.sup-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.sup-card-img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background:
    repeating-linear-gradient(45deg, #f2f2f2 0 12px, #e7e7e7 12px 24px);
}

.sup-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.sup-card-caption {
  margin: 12px 4px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
}

/* Flechas */
.sup-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--magenta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease;
}

.sup-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sup-arrow:hover {
  background: var(--cyan);
}

.sup-prev {
  left: -18px;
}

.sup-next {
  right: -18px;
}

.sup-arrow[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .superficies {
    gap: 40px;
  }

  .sup-cat-title {
    margin-bottom: 14px;
  }

  .sup-carousel {
    gap: 12px;
  }

  .sup-card {
    width: 150px;
  }

  /* En mobile: flechas visibles (más chicas y pegadas al borde) */
  .sup-arrow {
    width: 38px;
    height: 38px;
    background: rgba(229, 0, 127, 0.9);
  }

  .sup-arrow svg {
    width: 18px;
    height: 18px;
  }

  .sup-prev {
    left: 4px;
  }

  .sup-next {
    right: 4px;
  }
}

.textiles-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
  margin: 0;
  padding: 0;
}

.textile-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 2px dashed var(--cyan);
  transition: all 0.25s ease;
  cursor: default;
}

.textile-item:hover .textile-num {
  color: var(--magenta);
}

.textile-item:hover h3 {
  transform: translateX(6px);
}

.textile-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-top: 6px;
  min-width: 32px;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.textile-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.textile-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0;
  transition: transform 0.25s ease;
}

.textile-content p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
  max-width: 50ch;
  margin: 0;
}

.textiles-note {
  margin-top: 80px;
  padding-top: 32px;
  padding-left: 32px;
  border-top: 3px solid var(--magenta);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--black);
  max-width: 600px;
}

@media (max-width: 980px) {
  .textiles-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
}

@media (max-width: 620px) {
  .textiles-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 700px) {
  .gallery-modal-close,
  .gallery-modal-prev,
  .gallery-modal-next {
    width: 40px;
    height: 40px;
  }

  .gallery-modal-close {
    top: 16px;
    right: 16px;
  }

  .gallery-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .gallery-modal-prev,
  .gallery-modal-next {
    display: none;
  }

  .gallery-modal-footer {
    bottom: 16px;
    left: 16px;
    right: 16px;
    font-size: 10px;
  }
}
