/* Shared styles for service pages (Marketing, Diseño Web) */

.page-service .hero--service {
  background: var(--color-navy);
}

.page-service .hero--service .hero__overlay {
  background: linear-gradient(180deg, rgba(8, 5, 23, 0.45) 0%, rgba(8, 5, 23, 0.88) 100%);
}

.service-offerings .grid-3 {
  gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
  align-items: start;
}

.service-offerings .segment-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.service-offerings .segment-card h3 {
  color: var(--color-purple);
  font-size: clamp(0.85rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  text-align: center;
  width: 100%;
}

.section--lavender .service-offerings__heading,
.section--lavender .segment-card h3 {
  color: var(--color-purple);
}

.section--lavender .segment-card p {
  color: var(--color-text);
}

.service-offerings .segment-card p {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-inline: 0;
  text-align: justify;
  hyphens: none;
  width: 100%;
  max-width: none;
}

.service-offerings__heading {
  color: var(--color-purple);
  text-align: center;
  margin-bottom: var(--space-md);
}

.service-offerings__subtitle {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.65;
  color: var(--color-text);
}

/* Vertical video gallery marquee (LTR, inverse of home logos) */
.service-gallery {
  padding-block: var(--space-2xl);
  overflow: hidden;
}

.service-gallery__marquee {
  overflow: hidden;
  width: 100%;
  padding-block: 0.5rem;
}

.service-gallery__marquee-inner {
  --marquee-shift: 50%;
  --marquee-duration: 55s;
  display: flex;
  align-items: flex-start;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.service-gallery__marquee-inner[data-ready="true"] {
  animation: service-marquee-ltr var(--marquee-duration) linear infinite;
}

.service-gallery__track {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-right: var(--space-lg);
  flex-shrink: 0;
}

.service-gallery__card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: min(42vw, 11.5rem);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.service-gallery__video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background-color: #121018;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-gallery__video-wrap video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-gallery__video-wrap video.is-ready {
  opacity: 1;
}

.service-gallery__video-wrap video::-webkit-media-controls {
  display: none !important;
}

.service-gallery__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.section--navy .service-gallery__meta,
.section--orange .service-gallery__meta {
  color: var(--color-cream);
}

.service-gallery__format {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.service-gallery__client {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.2;
}

@keyframes service-marquee-ltr {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-1 * var(--marquee-shift)), 0, 0); }
}

/* Industries range */
.page-marketing .service-industries {
  padding-block: var(--space-lg) var(--space-xs);
}

.page-marketing .service-industries + .booking-section {
  padding-top: var(--space-xs);
}

.service-industries__content {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.service-industries__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.65;
  margin: 0;
  color: var(--color-text);
}

/* Custom tools grid */
.service-tools__header {
  max-width: none;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.service-tools__title {
  margin-bottom: var(--space-md);
  margin-inline: auto;
  color: var(--color-navy);
  white-space: nowrap;
  font-size: clamp(0.95rem, 3.8vw, 1.75rem);
  max-width: none;
}

.section--purple .service-tools__title {
  color: var(--color-cream);
}

.section--purple .service-tools__intro {
  color: var(--color-cream);
  opacity: 0.92;
}

.service-tools__intro {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
  text-wrap: balance;
  color: var(--color-text);
}

.service-tools__grid {
  display: grid;
  gap: var(--space-lg);
}

.service-tools__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
}

.service-tools__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-soft);
  background: var(--color-lavender);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.service-tools__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-tools__caption {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-navy);
}

.section--purple .service-tools__caption {
  color: var(--color-cream);
}

@media (min-width: 768px) {
  .service-tools__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.service-security__content {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.service-security__title {
  margin-bottom: var(--space-md);
  color: var(--color-cream);
}

.service-security__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: var(--color-cream);
  opacity: 0.92;
}

.service-faq h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.service-faq.section--cream h2 {
  color: var(--color-navy);
}

.service-faq .faq-list {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: var(--space-md);
}

.service-faq.section--cream .faq-item {
  border-color: var(--color-border);
}

.service-faq.section--cream .faq-item__question {
  color: var(--color-navy);
}

.service-faq.section--cream .faq-item__answer-inner {
  color: var(--color-text);
}

.service-contact h2 {
  margin-bottom: var(--space-sm);
}

.service-contact .container {
  max-width: 800px;
}

/* Lightbox (shared with home portfolio) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 23, 0.85);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 720px);
  background: var(--color-cream);
  border-radius: var(--radius-soft);
  padding: var(--space-lg);
  color: var(--color-navy);
}

.lightbox--video .lightbox__dialog {
  width: min(92vw, 420px);
}

.lightbox__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-navy);
  background: transparent;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .lightbox {
    padding: max(var(--space-sm), env(safe-area-inset-top, 0px)) var(--space-sm) env(safe-area-inset-bottom, 0px);
    align-items: flex-end;
  }

  .lightbox__dialog,
  .lightbox--video .lightbox__dialog {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius-soft) var(--radius-soft) 0 0;
  }

  .lightbox__close {
    top: max(var(--space-sm), env(safe-area-inset-top, 0px));
  }
}

.lightbox__media {
  aspect-ratio: 4 / 3;
  background: var(--color-lavender);
  border-radius: var(--radius-soft);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__media img,
.lightbox__media video,
.lightbox__media iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  background: var(--color-navy);
}

.lightbox__media--video {
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 640px);
  margin-inline: auto;
}

.lightbox__media--video video,
.lightbox__media--embed iframe {
  object-fit: contain;
}

.lightbox__caption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  white-space: pre-line;
  line-height: 1.45;
  color: var(--color-navy);
}

.lightbox__caption-client {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.lightbox__link {
  display: inline-flex;
  margin: var(--space-sm) auto 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-purple);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lightbox__link[hidden] {
  display: none;
}

.lightbox--link .lightbox__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 767px) {
  .service-offerings .segment-card {
    align-items: center;
  }

  .service-offerings .segment-card p {
    text-align: center;
    hyphens: none;
    max-width: min(100%, 22rem);
    margin-inline: auto;
  }

  .service-gallery__card {
    width: min(58vw, 13.5rem);
  }
}

/* Web development page */
.page-web-design .hero--service .hero__media {
  background: var(--color-navy);
}

.service-wordpress__content {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.service-wordpress__title {
  margin-bottom: var(--space-md);
  color: var(--color-cream);
}

.service-wordpress__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.65;
  color: var(--color-cream);
  opacity: 0.92;
  margin-inline: auto;
  max-width: 46rem;
}

.service-wordpress__proof {
  margin-top: var(--space-xl);
  max-width: min(100%, 52rem);
  margin-inline: auto;
}

.service-wordpress__proof-media {
  aspect-ratio: 1204 / 247;
  border-radius: var(--radius-soft);
  background: var(--color-navy);
  border: 1px solid rgba(255, 252, 235, 0.15);
  overflow: hidden;
}

.service-wordpress__proof-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.service-tech-badges {
  margin-top: var(--space-xl);
  overflow: hidden;
  width: 100%;
  padding-block: 0.5rem;
}

.service-tech-badges__marquee {
  overflow: hidden;
  width: 100%;
}

.service-tech-badges__inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: service-tech-marquee-rtl 40s linear infinite;
  user-select: none;
  pointer-events: none;
}

.service-tech-badges__track {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-right: var(--space-md);
  flex-shrink: 0;
}

.service-tech-badges__badge {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 252, 235, 0.25);
  background: rgba(255, 252, 235, 0.08);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  white-space: nowrap;
}

@keyframes service-tech-marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .service-gallery__marquee-inner,
  .service-tech-badges__inner {
    animation: none;
  }
}

.service-booking-cta {
  text-align: center;
}

.service-booking-cta h2 {
  color: var(--color-navy);
}

.service-work__heading {
  color: var(--color-purple);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section--orange .service-work__heading,
.section--orange .service-work__caption {
  color: var(--color-cream);
}

.service-work__grid {
  display: grid;
  gap: var(--space-lg);
}

.service-work__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.service-work__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-soft);
  background: var(--color-lavender);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.service-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.service-work__caption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-navy);
  margin: 0;
}

.service-solutions__heading {
  color: var(--color-purple);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.service-solutions .grid-3 {
  gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
}

.service-solutions .segment-card h3 {
  font-size: clamp(0.68rem, 1.55vw, 0.85rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-wrap: nowrap;
}

.service-method {
  text-align: center;
}

.service-method__title {
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.service-method__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-cream);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 42rem;
  margin-inline: auto;
}

.service-method__timeline {
  display: grid;
  gap: var(--space-lg);
  max-width: 52rem;
  margin-inline: auto;
  text-align: left;
  list-style: none;
  padding: 0;
}

.service-method__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

.service-method__step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  padding-top: 0.15rem;
  min-width: 2rem;
}

.service-method__step-body h3 {
  color: var(--color-cream);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.service-method__step-body p {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-cream);
  opacity: 0.9;
  max-width: none;
  margin: 0;
}

@media (min-width: 768px) {
  .service-work__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-method__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-2xl);
  }
}

.page-web-design .service-method {
  border-top: 1px solid rgba(255, 252, 235, 0.12);
}
