/* ==========================================================================
   DINSEP CONSULTORIA SAS — Service Detail Experience Stylesheet
   Architecture: Modular, Fluid & Accessible
   Colors, typography and brand lockup preserved 100%
   ========================================================================== */

.service-page {
  background: var(--bg-surface);
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. SERVICE HERO SECTION
   -------------------------------------------------------------------------- */
.service-hero {
  min-height: min(720px, calc(100vh - var(--topbar-height)));
  position: relative;
  background: var(--navy-dark);
  color: #FFFFFF;
  display: grid;
  align-items: end;
  padding: clamp(90px, 9vw, 120px) clamp(5%, 6vw, 8%) clamp(50px, 6vw, 75px);
  isolation: isolate;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 19, 33, 0.94) 0%, rgba(6, 24, 42, 0.72) 48%, rgba(6, 24, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(6, 24, 42, 0.95) 0%, transparent 45%);
  z-index: -1;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: serviceKenBurns 18s ease-in-out infinite alternate;
  filter: saturate(0.95);
  will-change: transform;
}

@keyframes serviceKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.service-hero-content {
  max-width: 880px;
  position: relative;
  z-index: 2;
}

.service-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.service-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  margin: 16px 0 20px;
  letter-spacing: -1.5px;
  color: #FFFFFF;
}

.service-hero h1 span {
  color: var(--gold);
}

.service-hero-lead {
  max-width: 720px;
  color: #DCE6EF;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
  margin: 0;
}

.service-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-back {
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 13px 22px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-radius: 4px;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-back:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.service-hero-meta {
  position: absolute;
  right: clamp(5%, 6vw, 8%);
  bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 2px;
}

.service-hero-meta span {
  color: #FFFFFF;
}

.service-hero-meta strong {
  color: var(--gold);
  font-size: 12px;
}

.service-scanline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   2. VISUAL CANVAS GALLERY
   -------------------------------------------------------------------------- */
.service-canvas-wrap {
  background: var(--navy-deep);
  padding: 0 0 4px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 164, 90, 0.2);
}

.service-canvas-label {
  position: absolute;
  z-index: 4;
  left: clamp(5%, 6vw, 8%);
  top: 18px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 800;
  background: rgba(7, 26, 46, 0.85);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
}

.service-marquee {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 58px 14px 16px;
  animation: serviceMarquee 38s linear infinite;
  will-change: transform;
}

.service-marquee:hover,
.service-marquee:focus-within {
  animation-play-state: paused;
}

.service-marquee-track,
.service-marquee-track-clone {
  display: flex;
  gap: 14px;
}

.service-image-card {
  width: 310px;
  height: 185px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy);
  border-radius: 6px;
  flex: 0 0 auto;
  text-decoration: none;
}

.service-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 24, 42, 0.85));
}

.service-image-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.service-image-card:hover img {
  transform: scale(1.07);
  opacity: 1;
}

@keyframes serviceMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   3. SERVICE OVERVIEW & TECH CARD
   -------------------------------------------------------------------------- */
.service-intro {
  padding: clamp(65px, 7vw, 95px) clamp(5%, 6vw, 8%);
  background: #FFFFFF;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.4fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.service-section-kicker {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-intro h2,
.service-section h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  margin: 8px 0 16px;
  letter-spacing: -0.5px;
}

.service-intro h2 span,
.service-section h2 span {
  color: var(--blue-accent);
}

.service-intro p {
  color: #53677B;
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 24px;
}

.service-tech-card {
  border-left: 3px solid var(--gold);
  background: var(--bg-alt);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 15px 35px rgba(13, 27, 42, 0.06);
}

.service-tech-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.service-tech-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. VISUAL EVIDENCE FEATURE
   -------------------------------------------------------------------------- */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 70px);
  align-items: center;
  padding: clamp(60px, 7vw, 90px) clamp(5%, 6vw, 8%);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.service-feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-line);
  box-shadow: 0 18px 45px rgba(7, 26, 45, 0.1);
  max-height: 420px;
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-feature-copy p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 24px;
}

.feature-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-line);
}

.feature-line:last-child {
  border-bottom: 0;
}

.feature-line b {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}

.feature-line span {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. PANELS & SCOPE / DELIVERABLES
   -------------------------------------------------------------------------- */
.service-section {
  padding: clamp(70px, 9vw, 110px) clamp(5%, 6vw, 8%);
  background: #FFFFFF;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  max-width: 1450px;
  margin: auto;
}

.service-panel {
  background: var(--navy-deep);
  color: #FFFFFF;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 10px;
  min-height: 100%;
}

.service-panel.light {
  background: var(--bg-alt);
  color: var(--navy);
  border: 1px solid var(--border-line);
}

.service-panel h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--gold);
  letter-spacing: -0.3px;
}

.service-panel.light h3 {
  color: var(--navy);
}

/* About page — text row + image */
.about-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1450px;
  margin: 0 auto clamp(32px, 4vw, 48px);
}

.about-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--navy-deep);
  color: #FFFFFF;
  border-radius: 10px;
  padding: clamp(28px, 4vw, 40px);
}

.about-row.light {
  background: var(--bg-alt);
  color: var(--navy);
  border: 1px solid var(--border-line);
}

.about-row:nth-of-type(even) .about-row-media {
  order: -1;
}

.about-row-text h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--gold);
  letter-spacing: -0.3px;
}

.about-row.light .about-row-text h3 {
  color: var(--navy);
}

.about-row-media {
  aspect-ratio: 4 / 3;
  min-height: 180px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.about-row-media:has(svg) {
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

.about-row.light .about-row-media:has(svg) {
  border-color: rgba(13, 27, 42, 0.2);
  color: rgba(13, 27, 42, 0.3);
}

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

.about-row-media svg {
  width: 40px;
  height: 40px;
}

/* Quality Policy Custom Panel & Layout */
#calidad {
  scroll-margin-top: calc(var(--topbar-height, 86px) + 24px);
}

.service-panel--quality {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-line);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.service-panel--quality::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #e8c878, var(--gold));
}

.quality-header {
  margin-bottom: 20px;
}

.quality-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 164, 90, 0.12);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.service-panel--quality h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.quality-lead {
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 1.75;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.quality-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.quality-pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quality-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 16px rgba(13, 27, 42, 0.06);
}

.pillar-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--navy-deep);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(13, 27, 42, 0.15);
}

.pillar-body {
  flex: 1;
  min-width: 0;
}

.pillar-body h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.pillar-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #4A5B6D;
  margin: 0;
}

.quality-closing {
  background: rgba(13, 27, 42, 0.03);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
}

.quality-closing p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
}

.service-panel--datos {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .quality-pillars-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .quality-pillar-card {
    padding: 18px;
  }
  .pillar-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .quality-lead {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .quality-pillar-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .pillar-body p {
    font-size: 13px;
    line-height: 1.6;
  }
  .quality-closing {
    padding: 14px 16px;
  }
  .quality-closing p {
    font-size: 13px;
    line-height: 1.6;
  }
}

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

.service-list li {
  position: relative;
  padding-left: 24px;
  color: #D5E0E9;
  font-size: 13px;
  line-height: 1.65;
}

.service-panel.light .service-list li {
  color: #53677B;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.support-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
  color: #DCE6EF;
  font-size: 11px;
  font-weight: 500;
}

.support-tags span b {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 10px;
}

/* Service Metrics */
.service-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-line);
  margin-top: 28px;
  border-radius: 6px;
  overflow: hidden;
}

.service-metric {
  background: #FFFFFF;
  padding: 20px;
}

.service-metric b {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--navy);
  display: block;
}

.service-metric span {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #73869A;
  text-transform: uppercase;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. METHODOLOGY PROCESS CARDS
   -------------------------------------------------------------------------- */
.service-intelligence {
  background: var(--bg-surface);
  padding: clamp(65px, 7vw, 95px) clamp(5%, 6vw, 8%);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.service-intelligence-head {
  max-width: 1450px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.service-intelligence-head h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 8px 0 0;
}

.service-intelligence-head p {
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  font-size: 14px;
}

.service-process {
  max-width: 1450px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #D9E1E8;
  border-radius: 8px;
  overflow: hidden;
}

.process-card {
  position: relative;
  background: #FFFFFF;
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 24, 43, 0.1);
  z-index: 2;
}

.process-num {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.process-card h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 16px;
  margin: 0 0 8px;
  display: block;
}

.process-card p {
  color: #607286;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. RELATED SERVICES & BOTTOM NAVIGATION
   -------------------------------------------------------------------------- */
.service-related {
  background: #FFFFFF;
  padding: clamp(50px, 6vw, 80px) clamp(5%, 6vw, 8%);
}

.service-related-inner {
  max-width: 1450px;
  margin: auto;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  padding: 18px 22px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.related-link span {
  color: var(--navy);
}

.related-link b {
  color: var(--gold);
  font-size: 16px;
}

.related-link:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 24, 43, 0.08);
}

.related-link:hover span {
  color: var(--blue-accent);
}

/* Call to Action Banner */
.service-cta {
  position: relative;
  background: var(--navy);
  color: #FFFFFF;
  padding: clamp(65px, 7vw, 90px) clamp(5%, 6vw, 8%);
  overflow: hidden;
}

.service-cta::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(200, 164, 90, 0.25);
  border-radius: 50%;
  right: -120px;
  top: -180px;
  box-shadow: 0 0 0 45px rgba(200, 164, 90, 0.05), 0 0 0 90px rgba(200, 164, 90, 0.03);
  pointer-events: none;
}

.service-cta-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  position: relative;
  z-index: 1;
}

.service-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 6px 0 10px;
  color: #FFFFFF;
}

.service-cta p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Prev / Next Bottom Nav */
.service-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1450px;
  margin: auto;
  padding: 24px clamp(5%, 6vw, 8%);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-line);
}

.service-nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.service-nav a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS (SERVICE DETAILS)
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .service-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-feature {
    grid-template-columns: 1fr;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .about-row {
    grid-template-columns: 1fr;
  }
  .about-row:nth-of-type(even) .about-row-media {
    order: 0;
  }
  .about-row-media {
    min-height: 140px;
  }
  .service-intelligence-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .service-process {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-links {
    grid-template-columns: 1fr;
  }
  .service-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .service-hero-meta {
    position: relative;
    right: auto;
    bottom: auto;
    text-align: left;
    margin-top: 28px;
  }
  .service-process {
    grid-template-columns: 1fr;
  }
  .service-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero-bg,
  .service-marquee {
    animation: none !important;
  }
}
