* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins';
    background-color: #f9f9f9;
    color: #111;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

body {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 2rem;
}

main.mainbox *{
  font-family: 'Poppins'!important;
}

/* Responsive Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

video{
  max-width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }
}

.delivery-process-page {
  font-family: 'Poppins', sans-serif;
  background: #e9e9e9;
  color: #111;
  overflow: hidden;
}

/* =========================
   GENERAL
========================= */
.delivery-process-page img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.dp-hero,
.dp-process-section,
.dp-difference,
.dp-order-delivery {
  background: #ffffff;
}

.dp-dark-intro,
.dp-gallery-strip,
.dp-warehouses {
  background: #2e2e2e;
}

/* =========================
   HERO
========================= */
.dp-hero {
  padding-top: 60px;
  padding-bottom: 60px;
}

.dp-hero-image img {
  height: 420px;
}

.dp-hero-content {
  max-width: 360px;
}

.dp-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 18px;
  color: #111;
}

.dp-hero-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c2c;
  margin-bottom: 30px;
}

.dp-arrow {
  color: #bf0c04;
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
}

/* =========================
   PROCESS SECTION
========================= */
.dp-process-section {
  background-color: #e9e9e9;
  padding-top: 55px;
  padding-bottom: 55px;
}

.dp-section-title {
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 30px;
  color: #222;
}

.dp-process-wrap {
  position: relative;
}

.dp-timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid #7a7a7a;
}

.dp-step {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
}

.dp-step-number {
  min-width: 42px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #bf0c04;
}

.dp-step-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.dp-step-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 10px;
}

/* RIGHT IMAGE STACK */
.dp-process-images {
  display: flex;
  flex-direction: column;
  gap: 45px;
  padding-left: 20px;
}

.dp-image-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.dp-large-frame {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  background: #444;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.dp-large-frame img {
  height: 260px;
  border-radius: 10px;
}

.dp-small-frame {
  position: absolute;
  left: 50px;
  bottom: -25px;
  width: 130px;
  background: #444;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.dp-small-frame img {
  height: 180px;
  border-radius: 10px;
}

.bottom-stack {
  margin-top: 30px;
}

/* =========================
   DARK INTRO
========================= */
.dp-dark-intro {
  padding-top: 55px;
  padding-bottom: 40px;
}

.dp-vertical-image {
  max-width: 300px;
  margin: 0 auto;
  background: #ffffff00;
  padding: 0;
}

.dp-vertical-image img {
  height: 280px;
}

.dp-dark-content {
  color: #fff;
  max-width: 520px;
}

.dp-dark-content h2 {
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 20px;
}

.dp-dark-content p {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}
/* =========================
   DELIVERY GALLERY STRIP
========================= */
.dp-gallery-strip {
  background: #2f2f2f;
  padding: 50px 0;
  overflow: hidden;
}

/* Slick spacing */
.dp-gallery-main-slider .slick-slide,
.dp-gallery-thumb-slider .slick-slide {
  padding: 0 8px;
}

.dp-gallery-main-slider .slick-list,
.dp-gallery-thumb-slider .slick-list {
  margin: 0 -8px;
}

/* Main video cards */
.dp-gallery-tall {
  position: relative;
  height: 420px!important;
  border-radius: 0;
  overflow: hidden;
  background: #d9d9d900;
}

.dp-gallery-tall video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnail cards */
.dp-gallery-small {
  height: 130px;
  overflow: hidden;
  background: #d9d9d900;
  cursor: pointer;
  transition: all 0.35s ease;
}

.dp-gallery-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover effect */
.dp-gallery-small:hover img {
  transform: scale(1.05);
}

.dp-gallery-small img {
  height: 200px;
  transition: transform 0.4s ease;
}

/* Active thumb */
.dp-gallery-thumb-slider .slick-current .dp-gallery-small {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

/* Arrows */
.dp-gallery-strip .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
}

.dp-gallery-strip .slick-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.dp-gallery-strip .slick-prev {
  left: -30px;
}

.dp-gallery-strip .slick-next {
  right: -30px;
}

.dp-gallery-strip .slick-prev::before,
.dp-gallery-strip .slick-next::before {
  font-family: "slick";
  font-size: 24px;
  color: #111;
  opacity: 1;
}

.dp-gallery-strip .slick-prev::before {
  content: "←";
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}

.dp-gallery-strip .slick-next::before {
  content: "→";
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}

/* Dots */
.dp-gallery-main-slider .slick-dots {
  bottom: -35px;
}

.dp-gallery-main-slider .slick-dots li button:before {
  color: #fff;
  opacity: 0.4;
  font-size: 10px;
}

.dp-gallery-main-slider .slick-dots li.slick-active button:before {
  color: #fff;
  opacity: 1;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .dp-gallery-tall {
    height: 360px;
  }

  .dp-gallery-small {
    height: 115px;
  }
}

@media (max-width: 991.98px) {
  .dp-gallery-strip {
    padding: 40px 0;
  }

  .dp-gallery-tall {
    height: 320px;
  }

  .dp-gallery-small {
    height: 100px;
  }

  .dp-gallery-strip .slick-prev {
    left: 5px;
  }

  .dp-gallery-strip .slick-next {
    right: 5px;
  }
}

@media (max-width: 767.98px) {
  .dp-gallery-tall {
    height: 260px;
  }

  .dp-gallery-small {
    height: 90px;
  }

  .dp-gallery-main-slider .slick-slide,
  .dp-gallery-thumb-slider .slick-slide {
    padding: 0 5px;
  }

  .dp-gallery-main-slider .slick-list,
  .dp-gallery-thumb-slider .slick-list {
    margin: 0 -5px;
  }

  .dp-gallery-strip .slick-arrow {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 575.98px) {
  .dp-gallery-tall {
    height: 220px;
  }

  .dp-gallery-small {
    height: 78px;
  }
}
/* =========================
   DIFFERENCE
========================= */
.dp-difference {
  padding-top: 60px;
  padding-bottom: 60px;
}

.dp-difference-image img {
  height: 420px;
}

.dp-difference-content {
  max-width: 520px;
}

.dp-difference-content h3 {
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 18px;
}

.dp-difference-content ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

.dp-difference-content ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 1rem;
}

.dp-difference-content h4 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #bf0c04;
  margin: 0;
}

/* =========================
   ORDER DELIVERY
========================= */
.dp-order-delivery {
  padding-top: 20px;
  padding-bottom: 60px;
}

.dp-order-left {
  padding-right: 35px;
  position: relative;
}

.dp-order-left::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #bf0c04;
}

.dp-order-left h2 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.95;
  margin-bottom: 20px;
  color: #222;
}

.dp-order-left h2 span {
  font-weight: 800;
}

.dp-order-left p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

.dp-order-image img {
  height: 420px;
}

/* =========================
   WAREHOUSES
========================= */
.dp-warehouses {
  padding-top: 60px;
  padding-bottom: 60px;
  color: #fff;
}

.dp-warehouse-image img {
  height: 300px;
}

.dp-warehouse-content {
  position: relative;
  padding-left: 28px;
}

.dp-warehouse-content.left-layout {
  padding-left: 0;
  padding-right: 28px;
}

.dp-warehouse-content.with-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 2px;
  height: calc(100% - 10px);
  background: rgba(255,255,255,0.7);
}

.dp-warehouse-content.left-layout.with-divider::before {
  left: auto;
  right: 0;
}

.dp-warehouse-content h2 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.92;
  margin-bottom: 30px;
  color: #fff;
}

.dp-warehouse-content h2 br + * {
  font-weight: 800;
}

.dp-warehouse-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #fff;
  margin: 0;
}

.dp-coming-soon {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 18px;
  opacity: 0.85;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1199px) {
  .dp-hero-content h1 {
    font-size: 3rem;
  }

  .dp-section-title {
    font-size: 2rem;
  }

  .dp-dark-content h2 {
    font-size: 2.2rem;
  }

  .dp-order-left h2,
  .dp-warehouse-content h2 {
    font-size: 3.2rem;
  }
}

@media (max-width: 991px) {
  .dp-hero {
    text-align: center;
  }

  .dp-hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .dp-hero-image img {
    height: 320px;
  }

  .dp-process-images {
    padding-left: 0;
    margin-top: 20px;
  }

  .dp-image-stack {
    margin: 0 auto;
  }

  .dp-dark-content,
  .dp-difference-content {
    max-width: 100%;
    text-align: center;
  }

  .dp-difference-content ul {
    text-align: left;
    display: inline-block;
  }

  .dp-order-left {
    padding-right: 0;
    text-align: center;
  }

  .dp-order-left::after {
    display: none;
  }

  .dp-order-left h2 {
    margin-bottom: 30px;
  }

  .dp-order-left p {
    max-width: 100%;
    margin: 0 auto;
  }

  .dp-warehouse-content,
  .dp-warehouse-content.left-layout {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .dp-warehouse-content.with-divider::before,
  .dp-warehouse-content.left-layout.with-divider::before {
    display: none;
  }

  .dp-warehouse-image img,
  .dp-order-image img,
  .dp-difference-image img {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .dp-hero,
  .dp-process-section,
  .dp-dark-intro,
  .dp-difference,
  .dp-order-delivery,
  .dp-warehouses {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .dp-hero-content h1 {
    font-size: 2.4rem;
  }

  .dp-section-title {
    font-size: 1.7rem;
  }

  .dp-step {
    flex-direction: column;
    gap: 8px;
  }

  .dp-step-number {
    font-size: 1.7rem;
  }

  .dp-step-content h4 {
    font-size: 1.05rem;
  }

  .dp-step-content p {
    font-size: 0.92rem;
  }

  .dp-large-frame {
    max-width: 220px;
  }

  .dp-large-frame img {
    height: 190px;
  }

  .dp-small-frame {
    width: 90px;
    bottom: -18px;
  }

  .dp-small-frame img {
    height: 120px;
  }

  .dp-dark-content h2 {
    font-size: 1.8rem;
  }

  .dp-dark-content p,
  .dp-difference-content ul li,
  .dp-difference-content h3,
  .dp-difference-content h4,
  .dp-order-left p,
  .dp-warehouse-content p {
    font-size: 0.95rem;
  }

  .dp-order-left h2,
  .dp-warehouse-content h2 {
    font-size: 2.4rem;
  }

  .dp-gallery-tall img {
    height: 170px;
  }

  .dp-gallery-small img {
    height: 80px;
  }
}

@media (max-width: 575px) {
  .dp-hero-content h1 {
    font-size: 2rem;
  }

  .dp-order-left h2,
  .dp-warehouse-content h2 {
    font-size: 2rem;
  }

  .dp-hero-image img,
  .dp-difference-image img,
  .dp-order-image img,
  .dp-warehouse-image img {
    height: 240px;
  }
}

.dp-packaging-section {
  background: #ebebeb;
  padding: 80px 0 95px;
}

.dp-packaging-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #555;
  text-align: center;
  min-height: 2.4em; /* ayuda a alinear si un título ocupa más espacio */
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-packaging-video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dp-packaging-video {
  width: clamp(220px, 20vw, 260px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #000;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* tablet */
@media (max-width: 991.98px) {
  .dp-packaging-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    min-height: auto;
  }

  .dp-packaging-video {
    width: clamp(210px, 28vw, 270px);
  }
}

/* mobile */
@media (max-width: 767.98px) {
  .dp-packaging-section {
    padding: 55px 0 70px;
  }

  .dp-packaging-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    min-height: auto;
  }

  .dp-packaging-video {
    width: min(72vw, 280px);
    border-radius: 12px;
  }
}
.dp-arrow-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dp-arrow-bounce {
  display: block;
  animation: dpArrowFloat 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes dpArrowFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
  100% {
    transform: translateY(0);
  }
}
/* =========================
   UNIVERSAL VIEWER
========================= */
.universal-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.universal-viewer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.universal-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.universal-viewer__content {
  position: relative;
  z-index: 2;
  width: min(95vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.universal-viewer__media {
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.universal-viewer__media img,
.universal-viewer__media video {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #000;
}

.universal-viewer__media video {
  width: auto;
  min-width: min(90vw, 420px);
}

.universal-viewer__close {
  position: absolute;
  top: -8px;
  right: 0;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.universal-viewer__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

body.viewer-open {
  overflow: hidden;
}

/* cursor bonito para indicar que se puede ampliar */
[data-lightbox] {
  cursor: pointer;
}

/* en móvil */
@media (max-width: 768px) {
  .universal-viewer__content {
    width: 100vw;
    padding: 14px;
  }

  .universal-viewer__close {
    top: 10px;
    right: 10px;
    position: fixed;
  }

  .universal-viewer__media img,
  .universal-viewer__media video {
    max-height: 80vh;
    border-radius: 10px;
  }
}