/* ==========================================================
   departments.css — Plaza Tropical Departments Page
   Supplement to styles.css (shared tokens apply here too)
   ========================================================== */

/* ── HERO ─────────────────────────────────────────────────── */

.dept-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--green-dark);
  padding-bottom: 5rem;
}

.dept-hero-bg {
  position: absolute;
  inset: 0;
 
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.06);
  animation: dept-hero-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

.dept-hero-bgREAL {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600&q=80');
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.06);
  animation: dept-hero-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes dept-hero-drift {
  from { transform: scale(1.06) translateX(0); }
  to   { transform: scale(1.1)  translateX(-1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .dept-hero-bg { animation: none; transform: scale(1.06); }
}

.dept-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 28, 18, 0.45) 0%,
    rgba(10, 28, 18, 0.75) 55%,
    rgba(10, 28, 18, 0.96) 100%
  );
  z-index: 1;
}

.dept-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--grain);
  opacity: 0.4;
  pointer-events: none;
}

.dept-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 7rem;
  display: flex;

  gap: 3rem;
}

.dept-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
  opacity: 0;
}

body.dept-loaded .dept-hero-eyebrow { opacity: 1; }

.dept-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}

.dept-hero-title em {
  font-style: italic;
  color: var(--orange);
  font-family: var(--font-script, 'Satisfy', cursive);
  font-size: 0.88em;
}

.dept-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.8rem;
  max-width: 420px;
}

.dept-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.dept-hero-cta:hover { color: var(--orange); border-color: var(--orange); }

/* Quick nav pills */
.dept-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.dept-pill:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Vertical rotated tag */
.dept-hero-tag {
  position: absolute;
  bottom: 2.5rem;
  right: -2rem;
  z-index: 4;
  transform: rotate(90deg);
  transform-origin: bottom right;
  pointer-events: none;
}
.dept-hero-tag-inner {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── HERO ANIMATIONS ──────────────────────────────────────── */

[data-hero-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
[data-hero-anim="fade"] {
  transform: none;
}
[data-hero-anim].anim-reset {
  opacity: 0;
  transform: translateY(20px);
}
[data-hero-anim="fade"].anim-reset {
  transform: none;
}
[data-hero-anim].anim-play {
  opacity: 1;
  transform: translateY(0);
}

/* ── MARQUEE DIVIDER ──────────────────────────────────────── */

.dept-marquee-wrap {
  background: var(--orange);
  overflow: hidden;
  padding: 0.6rem 0;
  white-space: nowrap;
}

.dept-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  animation: dept-marquee 26s linear infinite;
  will-change: transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .dept-marquee-track { animation: none; }
}

.dept-marquee-track span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
 
  color: #fff;
}

.dept-marquee-dot {
  font-size: 0.6rem !important;
  opacity: 0.65;
  letter-spacing: 0 !important;
}

/* ── INTRO SECTION ────────────────────────────────────────── */

.dept-intro {
  background: var(--warm-white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.dept-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.03;
  pointer-events: none;
}

.dept-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: center;
}

.dept-intro-grid > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Icon cards — 3×2 grid */
.dept-intro-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.dept-intro-card {
  background: var(--green-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.dept-intro-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.dept-intro-icon {
  font-size: 2rem;
  line-height: 1;
}

.dept-intro-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-align: center;
}

/* Text column */
.dept-intro-content {
  display: flex;
  flex-direction: column;
}

.dept-intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--green-dark);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.dept-intro-accent {
  font-style: italic;
  font-family: var(--font-script);
  color: var(--orange);
  font-size: 0.95em;
  font-weight: 400;
}

.dept-intro-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-mid);
  margin-bottom: 0.85rem;
}
.dept-intro-body:last-of-type { margin-bottom: 0; }

/* Stats bar */
.dept-intro-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
  flex-wrap: wrap;
}

.dept-intro-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dept-intro-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dept-intro-stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
}

.dept-intro-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--cream-dark);
  flex-shrink: 0;
}

/* ── DEPARTMENT SECTIONS ──────────────────────────────────── */

.dept-section {
  position: relative;
  overflow: hidden;
}

.dept-dark {
  background: var(--green-dark);
}

.dept-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(232,98,10,0.12) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.dept-light { background: var(--cream); }

.dept-section-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 70vh;
}

.dept-reversed {
  grid-template-columns: 45% 55%;
}

/* Text column */
.dept-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(2rem, 5vw, 6rem);
}

.dept-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
}

.dept-num-orange { color: var(--orange); }

.dept-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

.dept-title-amp {
  color: var(--orange);
}

.dept-dark  .dept-title { color: #fff; }
.dept-light .dept-title { color: var(--green-dark); }

.dept-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  margin-bottom: 2rem;

}

.dept-dark  .dept-desc { color: rgba(255,255,255,0.68); }
.dept-light .dept-desc { color: var(--text-mid); }

.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid currentColor;
  transition: gap 0.25s, opacity 0.25s;
}
.dept-link:hover { gap: 0.8rem; opacity: 0.75; }

.dept-dark  .dept-link { color: var(--amber); }
.dept-light .dept-link { color: var(--green-dark); }

.dept-link-inline { border-bottom: none; padding-bottom: 0; }

/* Hot food CTA group */
.dept-cta-group {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

/* Image column */
.dept-img-col {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.dept-img-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.dept-section:hover .dept-img-col img {
  transform: scale(1.04);
}

/* Border radius — inner corner only */
.dept-img-right {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.dept-img-left {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Image badge */
.dept-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(26,74,46,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  z-index: 2;
}
.dept-img-badge span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.dept-img-badge-orange {
  background: rgba(232, 98, 10, 0.88);
}

/* Last section bottom spacing */
.dept-last .dept-text-col { padding-bottom: 6rem; }

/* ── CTA BAND (redesigned — centered, impactful) ──────────── */

.dept-cta-band {
  background: var(--green-dark);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

/* Mission-style orange glow + grain texture */
.dept-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 65%, rgba(232,98,10,0.18) 0%, transparent 62%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.dept-cta-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.dept-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* Decorative orange dot cluster */
.dept-cta-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dept-cta-dots span {
  display: block;
  background: var(--orange);
  border-radius: 50%;
}
.dept-cta-dots span:nth-child(1) { width: 6px; height: 6px; opacity: 0.45; }
.dept-cta-dots span:nth-child(2) { width: 10px; height: 10px; }
.dept-cta-dots span:nth-child(3) { width: 6px; height: 6px; opacity: 0.45; }

/* Text group */
.dept-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Satisfy script accent */
.dept-cta-script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--amber);
  line-height: 1.15;
  margin-bottom: 0.1rem;
}

.dept-cta-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 1.1rem;
}

.dept-cta-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.58);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Info pill chips */
.dept-cta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.dept-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.3rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.dept-cta-chip i {
  color: var(--orange);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Action buttons */
.dept-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 991px) {
  .dept-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .dept-intro-grid > img {
    height: 300px;
    order: -1;
  }
  .dept-intro-icons {
    max-width: 380px;
  }

  .dept-section-inner,
  .dept-reversed {
    grid-template-columns: 1fr;
    grid-template-rows: 320px auto;
    min-height: auto;
  }

  .dept-img-col {
    min-height: 320px;
    order: -1;
  }

  .dept-img-right,
  .dept-img-left {
    border-radius: 0;
  }

  .dept-text-col {
    padding: 3rem 2rem;
  }

  .dept-img-badge { bottom: 1rem; left: 1rem; }
  .dept-cta-chip { white-space: normal; }

  .dept-services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .dept-hero { min-height: auto; padding-bottom: 4rem; }
  .dept-hero-content {
    padding-top: 5rem;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
  .dept-hero-content > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dept-hero-sub { max-width: 100%; }
  .dept-hero-cta { margin-bottom: 24px; }
  .botones { width: 100%; }
  .botones .hero-btns { width: 100%; }
  .botones .hero-btns .btn { width: 100%; justify-content: center; }
  .dept-hero-tag { display: none; }

  .dept-intro { padding: 4rem 0; }
  .dept-intro-grid > img { height: 240px; }
  .dept-intro-icons { max-width: 100%; }
  .dept-intro-stat-divider { display: none; }
  .dept-intro-stats { gap: 1.5rem; }

  .dept-section-inner,
  .dept-reversed {
    grid-template-rows: 260px auto;
  }

  .dept-img-col {
    min-height: auto;
    height: 260px;
  }

  .dept-text-col {
    padding: 2rem 1.25rem 2.5rem;
    justify-content: flex-start;
  }
  .dept-desc { max-width: 100%; }
  .dept-last .dept-text-col { padding-bottom: 2.5rem; }

  .dept-cta-band { padding: 4.5rem 0; }
  .dept-cta-info { flex-direction: column; align-items: center; }
  .dept-cta-chip { white-space: normal; text-align: center; }

  .dept-services { padding: 4rem 0 5rem; }
  .dept-services-header { max-width: 100%; margin-bottom: 2.5rem; }
  .dept-services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .dept-svc-card { padding: 1.75rem 1rem 1.5rem; }
}

/* ── IN-STORE SERVICES ───────────────────────────────────────── */

.dept-services {
  background: var(--cream);
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--orange);
}

.dept-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(232,98,10,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.dept-services-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(232,98,10,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.dept-services-inner {
  position: relative;
  z-index: 1;
}

.dept-services-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

.dept-services-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.dept-services-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.dept-services-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-mid);
}

.dept-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dept-svc-card {
  background: #fff;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.25rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}

.dept-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(232,98,10,0.11), 0 4px 16px rgba(0,0,0,0.05);
  border-color: var(--orange);
}

.dept-svc-icon {
  width: 58px; height: 58px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring);
}

.dept-svc-card:hover .dept-svc-icon {
  background: var(--orange);
  transform: rotate(-6deg) scale(1.1);
}

.dept-svc-icon i {
  font-size: 1.55rem;
  color: var(--orange);
  transition: color 0.3s ease;
}

.dept-svc-card:hover .dept-svc-icon i {
  color: #fff;
}

.dept-svc-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.01em;
  line-height: 1.38;
}

@media (max-width: 480px) {
  .dept-services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .dept-svc-card { padding: 1.5rem 0.75rem 1.25rem; }
  .dept-svc-icon { width: 48px; height: 48px; }
  .dept-svc-icon i { font-size: 1.25rem; }
  .dept-svc-name { font-size: 0.8rem; }
}
