/* =========================================================
   INICIO — estilos específicos de la página
   (todo lo que NO está ya 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;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

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

.placeholder {
  min-height: 260px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #f5f5f5 0 12px, #ebebeb 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/inicio/bordados-ramirez-hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.15) 65%, transparent 85%);
  z-index: 0;
}

.hero-content {
  max-width: 820px;
  text-align: left;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 20px;
  /* El cyan se pierde contra la foto: el degradé del hero no alcanza a
     oscurecer tan arriba, sobre todo en pantallas angostas. */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.7);
}

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

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

/* SERVICE SECTION (PRINCIPAL) */
.service-section {
  padding: 120px 0;
  background: var(--white);
}

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

.service-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.textile-chips {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Separador tipo costura entre secciones (ancho completo) */
.stitch-divider {
  width: 100%;
  border-top: 2px dashed var(--cyan);
  position: relative;
}

.stitch-divider-needle {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-100%);
  height: 90px;
  width: auto;
  display: block;
  pointer-events: none;
  will-change: left;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border: 2px dashed var(--cyan);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  transition: background 200ms ease, color 200ms ease;
  cursor: default;
}

.chip:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
}

.service-carousel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 90%;
  margin-left: auto;
}

.carousel-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-4px);
}

.proceso-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--black);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.carousel-item:hover .proceso-num {
  background: #E5007F;
  border-color: #E5007F;
  color: var(--white);
}

.carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.85);
  color: var(--white);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-item:hover .carousel-label {
  background: #E5007F;
  color: var(--white);
}

.carousel-wire {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 12px);
  gap: 18px;
  overflow: hidden;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.products-section .carousel-wire {
  grid-auto-columns: calc(33.333% - 12px);
}

.carousel-wire img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.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;
}

/* El modal para ampliar imágenes vive en styles.css: lo comparten
   inicio y servicio a través del partial image-modal.njk */

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: -60px;
}

.carousel-next {
  right: -60px;
}

/* POR QUÉ SECTION */
.por-que {
  padding: clamp(70px, 8vw, 110px) 0 0;
  background: var(--white);
}

.por-que-header {
  margin-bottom: clamp(32px, 6vw, 48px);
}

.por-que-header .eyebrow {
  color: var(--black);
}

.por-que-header .eyebrow::before {
  background: var(--black);
}

.por-que-header h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
}

.por-que-header h2 em {
  color: var(--magenta);
  font-weight: 400;
}

.por-que-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--gray);
  max-width: 56ch;
  margin: 0;
}

.por-que-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
}

.por-que-card {
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.25s ease;
}

.por-que-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--black);
}

.por-que-card:hover .card-num {
  color: var(--cyan);
}

.card-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--magenta);
  transition: color 0.25s ease;
  margin-bottom: 2px;
}

.por-que-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0;
  min-height: 2.4em;
}

.por-que-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
  flex: 1;
}

.intro-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-400);
}

.article-card .placeholder {
  min-height: 240px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--gray-300);
}

.article-card h3 {
  padding: 20px;
  margin: 0;
  text-align: center;
}

/* PRODUCTS SECTION (SECUNDARIO) */
.products-section {
  padding: 80px 0;
  background: var(--black);
}

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

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

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

.products-section .eyebrow::before {
  background: var(--cyan);
}

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

.products-content p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.products-visual {
  min-height: 360px;
}

/* GALLERY SECTION */
.gallery-section {
  padding: 96px 0;
  background: var(--white);
}

.gallery-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* NOTA: las reglas viejas de .gallery-item (galería en grid del home,
   ya reemplazada por la galería masonry) se movieron/eliminaron para
   evitar conflicto con la nueva galería masonry definida al final del archivo. */

/* ABOUT SECTION */
.about-section {
  padding: 96px 0;
  background: var(--gray-50);
}

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

.about-content p {
  font-size: 17px;
  line-height: 1.6;
}

.about-visual {
  min-height: 480px;
}

/* DIFFERENTIAL SECTION */
.differential-section {
  padding: 96px 0;
  background: var(--white);
}

/* TESTIMONIOS SECTION */
.testimonios-section {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--white);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.testimonios-badge-container {
  display: flex;
  align-items: flex-start;
}

.google-badge-large {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 32px 24px;
  text-align: center;
  width: 100%;
  position: sticky;
  top: 100px;
}

.badge-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  margin: 0 0 16px 0;
}

.rating-stars-large {
  font-size: 32px;
  color: #FBBC04;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.rating-text-large {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
  margin: 0 0 20px 0;
}

.google-logo-badge {
  width: 100%;
  height: auto;
  max-width: 120px;
  margin: 0 auto;
}

/* TESTIMONIOS - TRUSTINDEX WIDGET STYLE */
.testimonios-carousel-container {
  position: relative;
  min-width: 0;
  width: 100%;
}

.testimonios-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 13.34px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

/* NUEVA CLASE PRINCIPAL PARA CARDS - TRUSTINDEX */
.ti-review-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  min-height: auto;
}

.ti-review-item:hover {
  border-color: var(--gray-400);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* COMPATIBILIDAD CON CLASE ANTIGUA */
.testimonio-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  min-height: auto;
}

.testimonio-card:hover {
  border-color: var(--gray-400);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* HEADER SECTION */
.ti-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* PROFILE SECTION */
.ti-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

/* PROFILE DETAILS */
.ti-profile-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.testimonio-info-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ti-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}

.testimonio-info-compact h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}

.ti-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray);
}

.fecha {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray);
}

/* PLATFORM ICON */
.ti-platform-icon {
  width: 24px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.google-logo-card {
  width: 24px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.google-logo-badge {
  width: 120px;
  height: auto;
  object-fit: contain;
}

/* RATING SECTION - SVG STARS 14x14px */
.ti-rating {
  font-size: 12px;
  color: #FBBC04;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ti-rating img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.rating-compact {
  font-size: 12px;
  color: #FBBC04;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-compact img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* VERIFIED CHECKMARK - BLUE #4285F4 */
.ti-verified {
  width: 14px;
  height: 14px;
  color: #4285F4;
  display: inline-block;
  margin-left: 4px;
}

.ti-verified img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: hue-rotate(200deg) saturate(1.2);
}

.checkmark-small {
  width: 14px;
  height: 14px;
  color: #4285F4;
}

/* REVIEW TEXT */
.ti-review-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}

.testimonio-text-compact {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}

/* TRUSTINDEX BADGE */
.trustindex-badge {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray);
  text-align: right;
  margin-top: 16px;
  background: #E8F3E8;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  float: right;
}

.trustindex-badge strong {
  color: #25B326;
  font-weight: 600;
}

/* CAROUSEL NAVIGATION BUTTONS */
.testimonios-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.testimonios-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.testimonios-prev {
  left: -20px;
}

.testimonios-next {
  right: -20px;
}

/* 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;
}

/* 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 QUERIES ===================== */
@media (max-width: 1200px) {
  .testimonios-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .google-badge-large {
    position: static;
  }

  .testimonios-carousel {
    grid-auto-columns: calc(50% - 10px);
  }
}

@media (max-width: 1024px) {
  .por-que-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .por-que-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .testimonios-carousel {
    grid-auto-columns: 100%;
  }

  .testimonios-prev,
  .testimonios-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

}

@media (max-width: 600px) {
  .textile-chips {
    gap: 6px;
  }

  .chip {
    padding: 7px 12px;
    font-size: 10px;
  }

  .por-que {
    padding: 50px 0 0;
  }

  .por-que-header {
    margin-bottom: 32px;
  }

  .por-que-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .por-que-card {
    padding: 20px;
  }

  .por-que-card h3 {
    font-size: 18px;
    min-height: auto;
  }

  .testimonios-section {
    padding: 50px 0;
  }

  .testimonios-carousel-container {
    gap: 16px;
  }

  .testimonios-prev,
  .testimonios-next {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .carousel-prev,
  .carousel-next {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .testimonio-card {
    padding: 20px;
    min-height: auto;
  }

  .google-badge-large {
    padding: 32px 24px;
  }

  .rating-stars-large {
    font-size: 28px;
  }

  .rating-text-large {
    font-size: 18px;
  }
}

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

  .service-grid,
  .products-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
  }

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

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

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

/* Los dos botones del hero juntos necesitan ~445px de texto + padding.
   Por debajo de eso `flex-wrap` los mandaba uno abajo del otro, así que
   se reparten la fila en mitades y el texto quiebra adentro. */
@media (max-width: 500px) {
  .hero .btn-row {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero .btn-row .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 10px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }
}

@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;
  }

  .service-section {
    padding: 80px 0;
  }

  .service-content h2 {
    font-size: 36px;
  }

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

  .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;
  }
}

/* =========================================================
   GALERÍA TRABAJOS REALIZADOS (masonry + lightbox)
   Copiado desde servicio.css
   ========================================================= */

/* GALLERY HEAD + FILTERS */
.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: 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 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;
}

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

/* GALLERY MODAL / LIGHTBOX */
.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;
}

.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;
}

/* GALERÍA — MEDIA QUERIES */
@media (min-width: 1025px) {
  .gallery-masonry {
    column-count: 4;
    column-gap: 20px;
  }
}

@media (max-width: 980px) {
  .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) {
  .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;
  }

  .gallery-modal-content {
    padding: 20px;
  }

  .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;
  }
}

/* =========================================================
   FLECHAS DE CARRUSEL: EVITAR SCROLL HORIZONTAL
   Las flechas se posicionan con offsets negativos para quedar por fuera
   del carrusel. Eso solo entra si el gutter del .container alcanza, y el
   gutter se topea en 20px para todo viewport menor a 1180px (el container
   llega a su máximo de 1140 recién ahí). Por debajo, `right: -Npx`
   sobresalía del viewport y generaba desplazamiento lateral.
   Regla al final del archivo para que gane sobre los bloques anteriores.
   ========================================================= */
@media (max-width: 1259px) {
  .testimonios-prev,
  .carousel-prev {
    left: 6px;
  }

  .testimonios-next,
  .carousel-next {
    right: 6px;
  }
}
