/* =========================================================================
   UNLIMITED CHESS COSTA RICA — Design tokens & base
   Paleta oficial de marca: rojo intenso + negro + blanco/crema
   Tipografía: Anton (display impacto) / Poppins (texto)
   ========================================================================= */

:root{
  /* Marca */
  --red:        #E5312A;
  --red-dark:   #B81F1A;
  --red-soft:   #FF6A5E;
  --red-tint:   #FDEAE8;
  --ink:        #171717;
  --ink-soft:   #3A3A3A;
  --muted:      #6E6E6E;

  /* Superficies */
  --bg:         #FFFFFF;
  --bg-cream:   #F7F4EE;
  --bg-dark:    #141414;
  --bg-dark-2:  #1F1F1F;
  --line:       #E7E3DA;
  --line-dark:  #333333;

  /* Whatsapp */
  --wa-green:   #25D366;
  --wa-green-d: #1DA851;

  /* Tipografía */
  --f-display: 'Anton', system-ui, sans-serif;
  --f-body: 'Poppins', system-ui, sans-serif;

  /* Movimiento */
  --ease-out: cubic-bezier(.16,.8,.3,1);
  --dur-s: 220ms;
  --dur-m: 460ms;
  --dur-l: 820ms;

  --radius: 16px;
  --radius-lg: 26px;
  --container-max: 1240px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main, header, footer, section{ position: relative; z-index: 1; }

h1,h2,h3,h4,h5,h6{
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

p{ color: var(--ink-soft); }
a{ color: var(--red); text-decoration: none; transition: color var(--dur-s) var(--ease-out); }
a:hover{ color: var(--red-dark); }
::selection{ background: var(--red); color: #fff; }

:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.container-xl{
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* -------------------------------------------------------------------------
   Scroll progress bar (top of viewport)
   ------------------------------------------------------------------------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  z-index: 1100;
  transition: width 60ms linear;
}

/* -------------------------------------------------------------------------
   Floating ambient shapes (echo the brand's diamond mark) — bold & visible
   ------------------------------------------------------------------------- */
.ambient-shapes{ position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; transition: transform 60ms linear; will-change: transform; }

.ambient-shapes .sh{
  position: absolute;
  border: 5px solid rgba(229,49,42,.32);
  transform: rotate(45deg);
  animation: drift 12s ease-in-out infinite;
}
.ambient-shapes .sh.d1{ top: 8%;  left: 4%;  width: 120px; height: 120px; }
.ambient-shapes .sh.d2{ top: 58%; left: 86%; width: 150px; height: 150px; animation-delay: 2.2s; animation-duration: 15s; }
.ambient-shapes .sh.d3{ top: 36%; left: 44%; width: 70px;  height: 70px; border-color: rgba(20,20,20,.14); animation-delay: 4.4s; animation-duration: 10s; }
.ambient-shapes .sh.d4{ top: 74%; left: 14%; width: 86px;  height: 86px; animation-delay: 1.4s; animation-duration: 13s; }
.ambient-shapes .sh.d5{ top: 4%;  left: 74%; width: 56px;  height: 56px; border-color: rgba(20,20,20,.14); animation-delay: 3.2s; animation-duration: 11s; }

.ambient-shapes .glow{
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  animation: blob-float 18s ease-in-out infinite;
}
.ambient-shapes .glow.g1{
  width: 260px; height: 260px; top: -6%; right: -6%;
  background: radial-gradient(circle, rgba(229,49,42,.30), transparent 70%);
}
.ambient-shapes .glow.g2{
  width: 220px; height: 220px; bottom: -8%; left: -6%;
  background: radial-gradient(circle, rgba(20,20,20,.16), transparent 70%);
  animation-delay: 3s; animation-duration: 21s;
}

.ambient-shapes .dot{
  position: absolute;
  border-radius: 4px;
  background: rgba(229,49,42,.55);
  animation: dot-drift 9s ease-in-out infinite;
}
.ambient-shapes .dot.dt1{ width: 16px; height: 16px; top: 26%; left: 20%; transform: rotate(45deg); }
.ambient-shapes .dot.dt2{ width: 12px; height: 12px; top: 66%; left: 62%; transform: rotate(45deg); animation-delay: 2.6s; animation-duration: 7s; }

.bg-dark .ambient-shapes .sh{ border-color: rgba(255,255,255,.18); }
.bg-dark .ambient-shapes .glow.g2{ background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.bg-dark .ambient-shapes .dot{ background: rgba(255,255,255,.4); }

@keyframes drift{
  0%,100%{ transform: rotate(45deg) translate(0,0); }
  50%{ transform: rotate(66deg) translate(18px,-60px); }
}
@keyframes blob-float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-40px, 30px) scale(1.15); }
}
@keyframes dot-drift{
  0%,100%{ transform: rotate(45deg) translateY(0); }
  50%{ transform: rotate(90deg) translateY(-34px); }
}

/* -------------------------------------------------------------------------
   Eyebrow — numbered tag, matching the brand's own carousel numbering
   ------------------------------------------------------------------------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--red);
  margin-bottom: .85rem;
}
.eyebrow::before{
  content: attr(data-n);
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-body);
  font-weight: 700;
}

.section-title{
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: .75rem;
  line-height: 1.05;
}
.section-title .hl{ color: var(--red); }
.section-sub{
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
  font-family: var(--f-body);
  text-transform: none;
}
.section-pad{ padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.text-red{ color: var(--red) !important; }
.text-muted-cs{ color: var(--muted) !important; }
.bg-cream{ background: var(--bg-cream); }
.bg-dark{ background: var(--bg-dark); color: #fff; }
.bg-dark p{ color: rgba(255,255,255,.72); }
.bg-dark h1, .bg-dark h2, .bg-dark h3{ color: #fff; }

/* -------------------------------------------------------------------------
   Brand mark (SVG injected via JS into every .brand-mark span)
   ------------------------------------------------------------------------- */
.brand-mark-svg{ display: block; width: 100%; height: auto; }
.brand-mark{ display: inline-flex; width: 30px; animation: mark-float 3.4s ease-in-out infinite; }
.brand-mark.sm{ width: 26px; }
@keyframes mark-float{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-3px) rotate(-4deg); }
}
.brand-mark.big{ animation: mark-float-big 7s ease-in-out infinite; }
@keyframes mark-float-big{
  0%,100%{ transform: translateY(0) rotate(0deg) scale(1); }
  50%{ transform: translateY(-16px) rotate(8deg) scale(1.04); }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn-uc-primary,
.btn-uc-outline,
.btn-uc-ghost{
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: .02em;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out), background var(--dur-s), color var(--dur-s), border-color var(--dur-s);
  white-space: nowrap;
}
.btn-uc-primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(229,49,42,.55);
}
.btn-uc-primary::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-out);
}
.btn-uc-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(229,49,42,.7);
  background: var(--red-dark);
  color: #fff;
}
.btn-uc-primary:hover::before{ transform: translateX(120%); }
.btn-uc-outline{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-uc-outline:hover{
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-uc-ghost{
  background: transparent;
  color: var(--ink);
  padding-inline: .2rem;
  border-radius: 0;
  border: none;
}
.btn-uc-ghost .arrow-chip{
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-s) var(--ease-out);
  font-size: .95rem;
}
.btn-uc-ghost:hover .arrow-chip{ transform: translateX(4px) rotate(-45deg); }
.btn-uc-ghost:hover{ color: var(--red); }

/* -------------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------------- */
.uc-navbar{
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  padding-block: 1.1rem;
  background: rgba(255,255,255,.0);
  transition: background var(--dur-m) var(--ease-out), padding var(--dur-m) var(--ease-out), box-shadow var(--dur-m);
}
.uc-navbar.is-scrolled{
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px) saturate(140%);
  padding-block: .6rem;
  box-shadow: 0 6px 24px -14px rgba(0,0,0,.25);
}
.uc-navbar .navbar-brand{
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
}
.uc-navbar .navbar-brand .brand-tag{ color: var(--red); }
.uc-navbar .nav-link{
  color: var(--ink) !important;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 1rem !important;
  position: relative;
}
.uc-navbar .nav-link::after{
  content:"";
  position: absolute;
  left: 1rem; right: 1rem; bottom: .2rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-s) var(--ease-out);
}
.uc-navbar .nav-link:hover,
.uc-navbar .nav-link.active{ color: var(--red) !important; }
.uc-navbar .nav-link:hover::after,
.uc-navbar .nav-link.active::after{ transform: scaleX(1); }

.uc-navbar .dropdown-menu{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
}
.uc-navbar .dropdown-item{
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: .92rem;
  padding: .55rem .8rem;
}
.uc-navbar .dropdown-item:hover,
.uc-navbar .dropdown-item:focus{ background: var(--red-tint); color: var(--red-dark); }
.uc-navbar .dropdown-item .badge-soon{
  font-family: var(--f-body);
  font-size: .62rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .1rem .4rem;
  border-radius: 6px;
  margin-left: .4rem;
}
.uc-navbar .navbar-toggler{ border: none; box-shadow: none; font-size: 1.4rem; color: var(--ink); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero{
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background: var(--bg-cream);
}
.hero-content{ position: relative; z-index: 2; }
.hero .eyebrow{ animation: fade-up var(--dur-l) var(--ease-out) both; }
.hero h1{
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.0;
  animation: fade-up var(--dur-l) var(--ease-out) .1s both;
}
.hero h1 .accent{ color: var(--red); }
.hero-lede{
  font-size: 1.15rem;
  max-width: 560px;
  text-transform: none;
  animation: fade-up var(--dur-l) var(--ease-out) .22s both;
}
.hero-actions{ animation: fade-up var(--dur-l) var(--ease-out) .34s both; }
@keyframes fade-up{
  from{ opacity: 0; transform: translateY(26px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes float-y{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
.hero-visual{
  position: relative;
  animation: fade-up var(--dur-l) var(--ease-out) .3s both, float-y 5.5s ease-in-out 1.2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .brand-mark-hero{ width: min(60%, 320px); }
.hero-visual .ring{
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--line);
  animation: spin-slow 40s linear infinite;
}
.hero-visual .ring.r1{ width: 90%; height: 90%; }
.hero-visual .ring.r2{ width: 70%; height: 70%; animation-direction: reverse; animation-duration: 26s; }
@keyframes spin-slow{ from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }

.hero-scroll-cue{
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .12em;
  z-index: 2;
}
.hero-scroll-cue .line{
  width: 1px; height: 34px;
  background: linear-gradient(var(--red), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue{
  0%{ transform: scaleY(0); transform-origin: top;}
  50%{ transform: scaleY(1); transform-origin: top;}
  50.01%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom;}
}

/* -------------------------------------------------------------------------
   Ticker / marquee strip
   ------------------------------------------------------------------------- */
.uc-ticker{
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding-block: .6rem;
  white-space: nowrap;
}
.uc-ticker-track{
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker 26s linear infinite;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
}
.uc-ticker-track span{ display: inline-flex; align-items:center; gap: .5rem; }
.uc-ticker-track span::before{ content:"♦"; color: var(--red); }
@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------
   Reveal-on-scroll utility
   ------------------------------------------------------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.reveal-scale{ opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-scale.in-view{ opacity: 1; transform: scale(1); }
.reveal-left{ opacity: 0; transform: translateX(-40px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-left.in-view{ opacity: 1; transform: translateX(0); }
.reveal-right{ opacity: 0; transform: translateX(40px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-right.in-view{ opacity: 1; transform: translateX(0); }

/* -------------------------------------------------------------------------
   About photo card (replaces stats block)
   ------------------------------------------------------------------------- */
.about-photo-card{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -26px rgba(0,0,0,.28);
}
.about-photo-card img{ width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 5/4; }
.about-photo-tag{
  position: absolute;
  left: 1.2rem; bottom: 1.2rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .85rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.35);
}

/* -------------------------------------------------------------------------
   Feature / value cards (with tilt-on-hover, JS-driven)
   ------------------------------------------------------------------------- */
.feature-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  height: 100%;
  transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-m), box-shadow var(--dur-m);
  will-change: transform;
}
.feature-card:hover{
  border-color: var(--red);
  box-shadow: 0 24px 40px -22px rgba(229,49,42,.35);
}
.feature-card .glyph-badge{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--red-tint);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: transform var(--dur-m) var(--ease-out), background var(--dur-m);
}
.feature-card:hover .glyph-badge{ background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.08); }
.feature-card h3{ font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card p{ text-transform: none; }

/* -------------------------------------------------------------------------
   Branches banner (horizontal scroller)
   ------------------------------------------------------------------------- */
.branch-scroller{
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
}
.branch-scroller::-webkit-scrollbar{ height: 6px; }
.branch-scroller::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 6px; }

.branch-card{
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-m), box-shadow var(--dur-m);
}
.branch-card:hover{ transform: translateY(-6px); border-color: var(--red); box-shadow: 0 20px 34px -22px rgba(0,0,0,.25); }
.branch-card .flag{ font-size: 2.2rem; margin-bottom: .8rem; display:block; }
.branch-card h4{ font-size: 1.1rem; margin-bottom: .3rem; }
.branch-card p{ font-size: .9rem; margin-bottom: 1rem; text-transform: none; }
.status{
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.status.active{ background: #E9F9EE; color: #1D8A4C; }
.status.soon{ background: #F1F0EC; color: var(--muted); }
.status.active::before{ content:""; width:6px; height:6px; border-radius:50%; background: #1D8A4C; animation: dot-pulse 1.6s infinite; }
@keyframes dot-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.branch-card.is-soon{ opacity: .82; }
.branch-card.is-soon:hover{ transform: none; box-shadow: none; border-color: var(--line); }

/* -------------------------------------------------------------------------
   Achievements / "Logros" (matches brand's congrats-card social posts)
   ------------------------------------------------------------------------- */
.achieve-card{
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.achieve-card::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(229,49,42,.35), transparent 55%);
}
.achieve-photo{
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--red);
  margin-bottom: 1rem;
  position: relative;
}
.achieve-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.achieve-badge{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
  position: relative;
  z-index: 1;
}
.achieve-card h3{ font-size: 1.2rem; color: #fff; position: relative; z-index: 1; margin-bottom: .2rem; }
.achieve-card .role{ color: var(--red-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; position: relative; z-index: 1; display: block; margin-bottom: .6rem; }
.achieve-card p{ color: rgba(255,255,255,.75); position: relative; z-index: 1; text-transform: none; font-size: .92rem; margin: 0; }

/* -------------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------------- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-btn{
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .85rem;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  padding: .55rem 1.2rem;
  border-radius: 999px;
  transition: all var(--dur-s) var(--ease-out);
}
.filter-btn:hover{ border-color: var(--red); color: var(--red); }
.filter-btn.active{ background: var(--red); border-color: var(--red); color: #fff; }

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.gallery-item{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  cursor: pointer;
}
.gallery-item.is-hidden{
  opacity: 0; transform: scale(.85); position: absolute; pointer-events: none; height: 0; width: 0; overflow: hidden;
}
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease-out);
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item:hover{ transform: translateY(-4px); box-shadow: 0 20px 34px -20px rgba(0,0,0,.35); }
.gallery-item figcaption{
  position: absolute; inset-inline: 0; bottom: 0;
  padding: .9rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff;
  font-size: .85rem;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--dur-s) var(--ease-out);
}
.gallery-item:hover figcaption{ transform: translateY(0); opacity: 1; }
.gallery-item figcaption .cat{
  color: var(--red-soft);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

/* lightbox */
.uc-lightbox{
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10,10,10,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-m) var(--ease-out);
  padding: 2rem;
}
.uc-lightbox.is-open{ opacity: 1; pointer-events: auto; }
.uc-lightbox-inner{
  max-width: 720px; width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
  transform: scale(.9);
  transition: transform var(--dur-m) var(--ease-out);
}
.uc-lightbox.is-open .uc-lightbox-inner{ transform: scale(1); }
.uc-lightbox-close{
  position: absolute; top: 1.4rem; right: 1.6rem;
  background: #fff; border: none; color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.uc-lightbox .lb-img{
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: block;
  max-height: 60vh;
  object-fit: cover;
}
.uc-lightbox .lb-cat{ margin-bottom: .3rem; }

/* -------------------------------------------------------------------------
   Team
   ------------------------------------------------------------------------- */
.team-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  height: 100%;
  transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-m), box-shadow var(--dur-m);
}
.team-card:hover{ transform: translateY(-8px); border-color: var(--red); box-shadow: 0 24px 40px -24px rgba(0,0,0,.3); }
.team-avatar{
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  overflow: hidden;
  border: 3px solid var(--red-tint);
  transition: border-color var(--dur-m);
}
.team-card:hover .team-avatar{ border-color: var(--red); }
.team-avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3{ font-size: 1.05rem; margin-bottom: .25rem; }
.team-role{
  color: var(--red);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: .35rem;
}
.team-country{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--muted);
  background: var(--bg-cream);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.team-card p{ font-size: .88rem; text-transform: none; }
.team-social{ display: flex; justify-content: center; gap: .8rem; margin-top: 1rem; }
.team-social a{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: .95rem;
  transition: all var(--dur-s);
}
.team-social a:hover{ border-color: var(--red); color: var(--red); transform: translateY(-3px); }

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */
.testi-card{
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 720px;
  margin-inline: auto;
}
.testi-quote{ font-size: 1.15rem; color: var(--ink); font-style: italic; margin-bottom: 1.2rem; }
.testi-author{ color: var(--red); font-size: .85rem; font-weight: 600; }
.uc-carousel .carousel-indicators{
  position: static;
  margin: 1.75rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
}
.uc-carousel .carousel-indicators [data-bs-target]{
  width: 9px !important;
  height: 9px !important;
  min-width: 0;
  border-radius: 50% !important;
  background-color: var(--line) !important;
  border: none !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0;
  text-indent: -9999px;
  box-sizing: border-box;
}
.uc-carousel .carousel-indicators .active{ background-color: var(--red) !important; }
.uc-carousel .carousel-control-prev-icon,
.uc-carousel .carousel-control-next-icon{ filter: invert(1) grayscale(1) opacity(.5); }

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band{
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-band::before{
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,49,42,.35), transparent 70%);
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow{
  0%,100%{ opacity: .7; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.15); }
}
.cta-band .section-title{ color: #fff; }
.cta-band p{ color: rgba(255,255,255,.7); }

/* -------------------------------------------------------------------------
   News popup modal
   ------------------------------------------------------------------------- */
.uc-modal .modal-content{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
}
.uc-modal .modal-banner{
  background: var(--red);
  padding: .5rem 1.2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.uc-modal .modal-title{ font-size: 1.2rem; text-transform: none; font-family: var(--f-body); font-weight: 700; }
.uc-modal .form-check-label{ font-size: .85rem; color: var(--muted); }

/* -------------------------------------------------------------------------
   Info cards / map
   ------------------------------------------------------------------------- */
.info-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-m);
}
.info-card:hover{ transform: translateY(-4px); border-color: var(--red); }
.info-card .glyph{ font-size: 1.4rem; }
.info-card h4{ font-size: 1rem; margin-bottom: .25rem; text-transform: none; font-family: var(--f-body); font-weight: 700; }
.info-card p{ font-size: .88rem; margin: 0; text-transform: none; }

.map-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame .map-iframe{ border: 0; display: block; }

/* -------------------------------------------------------------------------
   WhatsApp floating button
   ------------------------------------------------------------------------- */
.wa-float{
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.wa-tooltip{
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--dur-s) var(--ease-out);
  pointer-events: none;
}
.wa-float:hover .wa-tooltip{ opacity: 1; transform: translateX(0); }
.wa-btn{
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(29,168,81,.6);
  position: relative;
  animation: wa-bounce-in .6s var(--ease-out) 1.4s both, wa-bob 3.2s ease-in-out 2s infinite;
}
.wa-btn:hover{ background: var(--wa-green-d); }
.wa-btn i{ font-size: 1.9rem; line-height: 1; position: relative; z-index: 1; }
.wa-ring{
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping{
  0%{ transform: scale(1); opacity: .7; }
  100%{ transform: scale(1.7); opacity: 0; }
}
@keyframes wa-bounce-in{
  0%{ transform: scale(0) translateY(40px); opacity: 0; }
  70%{ transform: scale(1.1) translateY(-6px); opacity: 1; }
  100%{ transform: scale(1) translateY(0); }
}
@keyframes wa-bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.uc-footer{
  background: var(--bg-dark);
  color: rgba(255,255,255,.85);
  padding-block: 3.5rem 6.5rem;
}
.uc-footer .footer-brand{ font-family: var(--f-display); font-size: 1.25rem; color: #fff; }
.uc-footer h5{
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red-soft);
  margin-bottom: 1rem;
}
.uc-footer ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.uc-footer ul a, .uc-footer p{ color: rgba(255,255,255,.7); font-size: .92rem; }
.uc-footer ul a:hover{ color: var(--red-soft); }
.footer-social{ display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.05rem;
}
.footer-social a:hover{ border-color: var(--red); color: var(--red-soft); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
}

/* -------------------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------------------- */
.page-hero{
  padding-top: 9.5rem;
  padding-bottom: 3.5rem;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}
.breadcrumb-uc{
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: none;
}
.breadcrumb-uc a{ color: var(--muted); }
.breadcrumb-uc a:hover{ color: var(--red); }

.soon-badge{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 991.98px){
  .hero{ min-height: auto; padding-top: 7.5rem; padding-bottom: 3rem; }
  .branch-card{ flex-basis: 240px; }
  .wa-tooltip{ display: none; }
}
@media (max-width: 575.98px){
  .section-pad{ padding-block: 2.6rem; }
  .wa-btn{ width: 54px; height: 54px; }
  .wa-btn svg{ width: 26px; height: 26px; }
}
