/* ==========================================================================
   DPF CHILE — PAGES.CSS (V2 MULTIPAGE ARCHITECTURE & SPECIALIZED VIEWS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BREADCRUMBS (GLOBAL SUBPAGE NAVIGATION)
   -------------------------------------------------------------------------- */
.breadcrumbs-bar {
  background: var(--dpf-bg-subtle, #F8FAFC);
  border-bottom: 1px solid var(--dpf-border, #E2E8F0);
  padding: 0.65rem 0;
  width: 100%;
}

.breadcrumbs {
  font-size: 0.825rem;
}

.breadcrumbs__list,
.breadcrumbs-list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.breadcrumbs__item,
.breadcrumbs-item {
  display: inline-flex !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.breadcrumbs__separator,
.breadcrumbs-separator {
  color: var(--dpf-border-strong, #94A3B8);
  font-size: 0.75rem;
  user-select: none;
  display: inline-flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 0.25rem;
}

.breadcrumbs__link,
.breadcrumbs-link {
  color: var(--dpf-text-secondary, #475569);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs__link:hover,
.breadcrumbs-link:hover {
  color: var(--dpf-red);
  text-decoration: underline;
}

.breadcrumbs__current,
.breadcrumbs-current {
  color: var(--dpf-text-primary, #0F172A);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. STICKY MOBILE BOTTOM CTA
   -------------------------------------------------------------------------- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--dpf-border-dark);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-sticky-mobile, 98);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-mobile-cta.is-hidden {
  transform: translateY(110%);
}

.sticky-mobile-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.sticky-mobile-cta__label {
  display: flex;
  flex-direction: column;
}

.sticky-mobile-cta__title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.sticky-mobile-cta__subtitle {
  color: #94A3B8;
  font-size: 0.72rem;
}

.sticky-mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--dpf-whatsapp);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
  min-height: 44px;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   3. EDITORIAL PAGE HERO (COMPACT & LANDING HEADERS)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--dpf-border);
  overflow: hidden;
}

.page-hero--dark {
  background: #0A0A0A;
  color: #FFFFFF;
  border-bottom: 1px solid var(--dpf-border-dark);
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dpf-bg-subtle);
  border: 1px solid var(--dpf-border);
  color: var(--dpf-text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.page-hero--dark .page-hero__badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
}

.page-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0F172A;
  margin-bottom: var(--space-4);
}

.page-hero--dark .page-hero__title {
  color: #FFFFFF;
}

.page-hero__desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: var(--dpf-text-muted);
  max-width: 840px;
}

.page-hero--dark .page-hero__desc {
  color: #CBD5E1;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 900px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }
}

.page-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: relative;
}

.page-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dpf-red) 0%, #FF6B6B 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* --------------------------------------------------------------------------
   3.1 EDITORIAL CALLOUT (SPECIAL ADVISORY / SERVICE NOTICE)
   -------------------------------------------------------------------------- */
.editorial-callout {
  background: #FFFFFF;
  border: 1px solid var(--dpf-border, #E2E8F0);
  border-left: 4px solid var(--dpf-red, #E10600);
  border-radius: var(--radius-md, 8px);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-top: 1.5rem;
}

.editorial-callout__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.08);
  color: var(--dpf-red, #E10600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.editorial-callout__icon svg {
  width: 22px;
  height: 22px;
}

.editorial-callout__body {
  flex: 1;
}

.editorial-callout__body h4 {
  font-family: var(--font-display, 'Barlow', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0F172A;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.editorial-callout__body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.editorial-callout__body p strong {
  color: #0F172A;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. TRUST STRIP (COMPACT HIGH-IMPACT BAR)
   -------------------------------------------------------------------------- */
.trust-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--dpf-border);
  border-bottom: 1px solid var(--dpf-border);
  padding: 1.75rem 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border-right: 1px solid var(--dpf-border);
  padding-right: var(--space-4);
}

.trust-strip__item:last-child {
  border-right: none;
  padding-right: 0;
}

.trust-strip__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.trust-strip__content {
  display: flex;
  flex-direction: column;
}

.trust-strip__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dpf-text-primary);
  line-height: 1.2;
}

.trust-strip__subtitle {
  font-size: 0.825rem;
  color: var(--dpf-text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }
  .trust-strip__item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .trust-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--dpf-border);
    padding-bottom: var(--space-3);
  }
  .trust-strip__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   5. EDITORIAL SECTIONS & ASYMMETRIC LAYOUTS (Technical Frames & Justified Layout)
   -------------------------------------------------------------------------- */
.service-editorial {
  padding: var(--space-16) 0;
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid var(--dpf-border);
}

.editorial-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.editorial-split--reversed {
  grid-template-columns: 1fr 1.15fr;
  direction: rtl;
}

.editorial-split--reversed > * {
  direction: ltr;
}

/* Text Content Container */
.editorial-split__content {
  display: flex;
  flex-direction: column;
}

.editorial-split__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0F172A;
  margin: 0.75rem 0 1.25rem;
}

/* Justified Typography with High Readability */
.editorial-split__content p,
.editorial-split p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.editorial-split__content p strong,
.editorial-split p strong {
  color: #0F172A;
}

/* Framed Checklist Cards (Marcos de especificación técnica) */
.editorial-checklist {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.editorial-check-card {
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  border-left: 4px solid var(--dpf-red);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.editorial-check-card:hover {
  transform: translateX(4px);
  border-color: rgba(225, 6, 0, 0.4);
  border-left-color: var(--dpf-red);
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.09), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.editorial-check-card__icon,
.editorial-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--dpf-red);
}

.editorial-check-card__icon svg,
.editorial-check-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--dpf-red);
}

.editorial-check-card__body,
.editorial-check-content {
  flex: 1;
}

.editorial-check-card__title,
.editorial-check-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.editorial-check-card__desc,
.editorial-check-content span {
  display: block;
  font-size: 0.88rem !important;
  color: #64748B !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Fallback card styling for inline flex items inside editorial content */
.editorial-split__content > div > div[style*="display: flex"] {
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  border-left: 4px solid var(--dpf-red) !important;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.editorial-split__content > div > div[style*="display: flex"]:hover {
  transform: translateX(4px);
  border-color: rgba(225, 6, 0, 0.4);
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.09);
}

/* Premium Image Technical Frame (Marco Técnico con Bisel y Esquinas) */
.editorial-img-frame,
.editorial-media {
  position: relative;
  background: #0A0A0A;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 8px; /* Inner matting frame */
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(225, 6, 0, 0.2);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.editorial-img-frame:hover,
.editorial-media:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 25px 50px -10px rgba(225, 6, 0, 0.25), 0 0 0 2px var(--dpf-red);
}

/* Technical Corner Accents */
.editorial-img-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--dpf-red);
  border-left: 3px solid var(--dpf-red);
  z-index: 5;
  pointer-events: none;
}

.editorial-img-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-bottom: 3px solid var(--dpf-red);
  border-right: 3px solid var(--dpf-red);
  z-index: 5;
  pointer-events: none;
}

.editorial-img-frame img,
.editorial-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-img-frame:hover img,
.editorial-media:hover img {
  transform: scale(1.02);
}

.editorial-img-frame iframe,
.editorial-media iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Technical Overlay Badge */
.editorial-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid var(--dpf-red);
  border-radius: 8px;
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 6;
}

.editorial-badge__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.editorial-badge__title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.editorial-badge__desc {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 0.03em;
}

/* Dark Mode Editorial Split */
.section-dark .editorial-split__title {
  color: #FFFFFF;
}

.section-dark .editorial-split__content p,
.section-dark .editorial-split p {
  color: #E2E8F0;
}

.section-dark .editorial-split__content p strong,
.section-dark .editorial-split p strong {
  color: #FFFFFF;
}

.section-dark .editorial-check-card {
  background: #1E293B;
  border-color: #334155;
  border-left-color: var(--dpf-red);
}

.section-dark .editorial-check-card__title {
  color: #FFFFFF;
}

.section-dark .editorial-check-card__desc {
  color: #94A3B8 !important;
}

.section-dark .editorial-split__content > div > div[style*="display: flex"] {
  background: #1E293B;
  border-color: #334155;
}

@media (max-width: 900px) {
  .editorial-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .editorial-badge {
    position: static;
    margin-top: 0.75rem;
    background: #0F172A;
  }
}

/* --------------------------------------------------------------------------
   6. SERVICES HUB & CATEGORIES GRID
   -------------------------------------------------------------------------- */
.services-category-block {
  margin-bottom: var(--space-12);
}

.services-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--dpf-text-primary);
  margin-bottom: var(--space-6);
}

.services-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dpf-text-primary);
  margin: 0;
}

.services-category-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--dpf-red);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

/* Service Detail Modal (Accessible Native Dialog) */
.service-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 580px;
  width: 90%;
  background: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 400;
}

.service-modal::backdrop {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
}

.service-modal__box {
  padding: var(--space-8);
}

.service-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. PHOTO GALLERY & ACCESSIBLE LIGHTBOX (UNIFORM CATALOG & SHARP GRID)
   -------------------------------------------------------------------------- */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-8);
  justify-content: center;
}

.gallery-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  color: var(--dpf-text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-filter-btn:hover {
  border-color: var(--dpf-red);
  color: var(--dpf-red);
  background: rgba(225, 6, 0, 0.04);
}

.gallery-filter-btn.is-active {
  background: var(--dpf-text-primary);
  color: #FFFFFF;
  border-color: var(--dpf-text-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Uniform, Harmonious 3-Column Catalog Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Uniform Gallery Card — No irregular spanning, perfectly consistent dimensions */
.gallery-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
  cursor: pointer;
  text-decoration: none;
  height: 100%;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--dpf-red);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(225, 6, 0, 0.25);
  outline: none;
}

/* Backward compatibility for any spanning class — all cards are now uniform 1 column */
.gallery-card--span-2 {
  grid-column: span 1 !important;
}

.gallery-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0F172A;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-card:hover .gallery-card__img,
.gallery-card:focus-visible .gallery-card__img {
  transform: scale(1.06);
}

.gallery-card__zoom-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 2;
}

.gallery-card:hover .gallery-card__zoom-indicator {
  background: var(--dpf-red);
  transform: scale(1.05);
}

.gallery-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dpf-red);
  margin-bottom: 0.45rem;
}

.gallery-card__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--dpf-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--dpf-red);
}

.gallery-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0F172A;
  margin: 0 0 0.45rem 0;
  line-height: 1.3;
}

.gallery-card__desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.gallery-card__footer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--dpf-border-subtle, #F1F5F9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dpf-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-card__arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.gallery-card:hover .gallery-card__arrow {
  transform: translate(2px, -2px);
}

/* Fallback overlay styles */
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.65) 70%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  color: #FFFFFF;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-lightbox, 300);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  padding: var(--space-4);
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  max-width: 1100px;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 80vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption-box {
  margin-top: var(--space-3);
  text-align: center;
  color: #FFFFFF;
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lightbox-counter {
  font-size: 0.825rem;
  color: #94A3B8;
  margin-top: 2px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
}

.lightbox-btn:hover {
  background: var(--dpf-red);
  border-color: var(--dpf-red);
  transform: scale(1.08);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.lightbox-nav .lightbox-btn {
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   8. MARCAS Y MODELOS CLOUD & MARQUEE
   -------------------------------------------------------------------------- */
.marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.marquee-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.marquee-badge span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dpf-text-primary);
}

/* --------------------------------------------------------------------------
   9. FAQ CATEGORIZED ACCORDIONS
   -------------------------------------------------------------------------- */
.faq-category-section {
  margin-bottom: var(--space-8);
}

.faq-category-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dpf-text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--dpf-red);
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   10. 404 ERROR PAGE
   -------------------------------------------------------------------------- */
.error-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-hero__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--dpf-red);
  text-shadow: 0 4px 20px rgba(225, 6, 0, 0.2);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   11. DYNAMIC & PLAYFUL HIGH-TECH CARDS (ECU & Emisiones Interactive Systems)
   ========================================================================== */

.service-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .service-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-editorial-grid {
    grid-template-columns: 1fr;
  }
}

/* Adaptability inside Generic Carousels */
.carousel-track .editorial-card,
.carousel-track .editorial-step,
.carousel-track .step-card {
  flex: 0 0 var(--carousel-card-width);
  min-width: var(--carousel-card-width);
  height: 100%;
}

.editorial-card {
  position: relative;
  background: linear-gradient(145deg, #131A26 0%, #0B0F17 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--dpf-red);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
  text-align: left;
}

/* Ambient glow sweep on hover */
.editorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(225, 6, 0, 0.22) 0%, transparent 70%);
  opacity: 0.5;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.editorial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.editorial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 6, 0, 0.45);
  border-top-color: #FF2A24;
  box-shadow: 0 20px 45px -10px rgba(225, 6, 0, 0.25), 0 0 25px rgba(225, 6, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.editorial-card:hover::after {
  transform: translateX(200%);
}

/* Card Header with Badges and Numbers */
.editorial-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.editorial-card__icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.2) 0%, rgba(225, 6, 0, 0.05) 100%);
  border: 1px solid rgba(225, 6, 0, 0.35);
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.editorial-card__icon-box svg {
  width: 28px;
  height: 28px;
  stroke: #FF3B30;
  transition: stroke 0.3s ease;
}

.editorial-card:hover .editorial-card__icon-box {
  transform: scale(1.12) rotate(-4deg);
  background: linear-gradient(135deg, var(--dpf-red) 0%, #B91C1C 100%);
  border-color: #FF5A52;
  box-shadow: 0 8px 25px rgba(225, 6, 0, 0.5);
}

.editorial-card:hover .editorial-card__icon-box svg {
  stroke: #FFFFFF;
}

/* Tech Number / Badge Pill */
.editorial-card__badge-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.3s ease;
}

.editorial-card__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dpf-red);
  box-shadow: 0 0 8px var(--dpf-red);
  animation: pulse-card-red 2s infinite ease-in-out;
}

@keyframes pulse-card-red {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.editorial-card:hover .editorial-card__badge-pill {
  background: rgba(225, 6, 0, 0.18);
  border-color: rgba(225, 6, 0, 0.5);
  color: #FFF;
}

/* Watermark Number in background */
.editorial-card__watermark {
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.editorial-card:hover .editorial-card__watermark {
  opacity: 0.08;
  transform: translateY(2px) scale(1.05);
}

/* Content */
.editorial-card__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.editorial-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 0.03em;
  margin: 0 0 0.85rem;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.editorial-card__desc {
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Footer Tech Tags (Chips) */
.editorial-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.tech-chip--red {
  background: rgba(225, 6, 0, 0.12);
  color: #FFA39E;
  border-color: rgba(225, 6, 0, 0.3);
}

.editorial-card:hover .tech-chip--red {
  background: rgba(225, 6, 0, 0.25);
  color: #FFFFFF;
  border-color: var(--dpf-red);
}

/* --------------------------------------------------------------------------
   EDITORIAL STEPS (Metodología y Protocolos en Taller)
   -------------------------------------------------------------------------- */

.editorial-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

@media (max-width: 1024px) {
  .editorial-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .editorial-steps-grid {
    grid-template-columns: 1fr;
  }
}

.editorial-step {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  border-top: 3px solid var(--dpf-red);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-align: left;
}

.editorial-step:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 6, 0, 0.4);
  box-shadow: 0 16px 36px rgba(225, 6, 0, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.editorial-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.editorial-step__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--dpf-red);
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.editorial-step__tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  background: #F1F5F9;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.editorial-step__icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.06);
  border: 1px solid rgba(225, 6, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dpf-red);
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.editorial-step__icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--dpf-red);
}

.editorial-step:hover .editorial-step__icon-box {
  transform: scale(1.12) rotate(4deg);
  background: var(--dpf-red);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.35);
}

.editorial-step:hover .editorial-step__icon-box svg {
  stroke: #FFFFFF;
}

.editorial-step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0F172A;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.editorial-step__desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ==========================================================================
   12. DYNAMIC & INTERACTIVE BRANDS SHOWCASE (Logos Vectoriales y Animación)
   ========================================================================== */

.brand-interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

@media (max-width: 640px) {
  .brand-interactive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.brand-interactive-card {
  position: relative;
  background: linear-gradient(145deg, #131A26 0%, #0B0F17 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: default;
  isolation: isolate;
  text-align: left;
}

.brand-interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dpf-red), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-interactive-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(225, 6, 0, 0.5);
  background: linear-gradient(145deg, #1A2433 0%, #101622 100%);
  box-shadow: 0 14px 28px rgba(225, 6, 0, 0.22), 0 0 15px rgba(225, 6, 0, 0.15);
}

.brand-interactive-card:hover::before {
  opacity: 1;
}

.brand-interactive-card__logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-interactive-card__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-interactive-card:hover .brand-interactive-card__logo-wrap {
  transform: scale(1.15) rotate(-3deg);
  background: #FFFFFF;
  border-color: var(--dpf-red);
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.45);
}

.brand-interactive-card:hover .brand-interactive-card__logo-wrap img {
  transform: scale(1.08);
}

.brand-interactive-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-interactive-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.brand-interactive-card:hover .brand-interactive-card__name {
  color: #FFFFFF;
}

.brand-interactive-card__status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

.brand-interactive-card__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* Light background variant for brands */
.section-alt .brand-interactive-card,
.section:not(.section-dark) .brand-interactive-card {
  background: #FFFFFF;
  border: 1px solid var(--dpf-border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.section-alt .brand-interactive-card:hover,
.section:not(.section-dark) .brand-interactive-card:hover {
  background: #FFFFFF;
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 12px 24px rgba(225, 6, 0, 0.12);
}

.section-alt .brand-interactive-card__logo-wrap,
.section:not(.section-dark) .brand-interactive-card__logo-wrap {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.section-alt .brand-interactive-card__name,
.section:not(.section-dark) .brand-interactive-card__name {
  color: #0F172A;
}

/* Dark section marquee badges */
.section-dark .marquee-badge {
  background: #131A26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.section-dark .marquee-badge:hover {
  background: #1A2433;
  border-color: rgba(225, 6, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 6, 0, 0.25);
}

.section-dark .marquee-badge span {
  color: #FFFFFF;
}

.section-dark .marquee-badge img {
  background: #FFFFFF;
  border-radius: 6px;
  padding: 3px;
  width: 26px;
  height: 26px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Service Model Card Brand Badge Header */
.service-card-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.service-card-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-brand-logo {
  transform: scale(1.1) rotate(-3deg);
  border-color: var(--dpf-red);
}

.service-card-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

