/* ═══════════════════════════════════════════════
   UTC del Sur — Estilos compartidos
   ═══════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --blue: #1316a4;
  --blue-dark: #0c0e7a;
  --blue-deep: #07084f;
  --gold: #ffc80c;
  --white: #ffffff;
  --off: #f4f5fb;
  --text: #111126;
  --muted: #5a5a80;
  --r: 14px;
  --sh: 0 8px 40px rgba(19, 22, 164, 0.12);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: "Nunito", sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: clip;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

/* ─── SCROLL ANIMATIONS ─── */
.sa {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.sa.in {
  opacity: 1;
  transform: none;
}
.sa-l {
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.sa-l.in {
  opacity: 1;
  transform: none;
}
.sa-r {
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.sa-r.in {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.1s !important;
}
.d2 {
  transition-delay: 0.18s !important;
}
.d3 {
  transition-delay: 0.26s !important;
}
.d4 {
  transition-delay: 0.34s !important;
}
.d5 {
  transition-delay: 0.42s !important;
}
.d6 {
  transition-delay: 0.5s !important;
}

/* ─── TOPBAR ─── */
.topbar {
  background: var(--blue);
  padding: 7px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 200;
  overflow: hidden;
}
.topbar-left {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.topbar-socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-socials a {
  width: 31px;
  height: 31px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition:
    background 0.2s,
    transform 0.18s;
}
.topbar-socials a:hover {
  background: var(--gold);
  color: var(--blue);
  transform: translateY(-2px);
}
.topbar-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── NAVBAR ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--white);
  border-bottom: 1px solid rgba(19, 22, 164, 0.08);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 28px rgba(19, 22, 164, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 54px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.logo-box {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-box svg {
  width: 25px;
  height: 25px;
  fill: var(--white);
}

.logo-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
}
.logo-text span {
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-menu a {
  display: block;
  padding: 0 13px;
  height: 76px;
  line-height: 76px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-menu .nb {
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 9px !important;
  border-bottom: none !important;
  height: 40px !important;
  line-height: 40px !important;
  margin: 18px 4px;
  padding: 0 16px !important;
  font-weight: 600 !important;
}
.nav-menu .nb:hover {
  background: var(--gold) !important;
  color: var(--blue) !important;
}

.nav-menu .nq {
  background: var(--gold);
  color: var(--blue) !important;
  border-radius: 9px !important;
  border-bottom: none !important;
  height: 40px !important;
  line-height: 40px !important;
  margin: 18px 0;
  padding: 0 14px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
}
.nav-menu .nq:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 7px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── SECTION HELPERS ─── */
section {
  padding: 80px 5vw;
  width: 100%;
  box-sizing: border-box;
}

.sec-ttl {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 8px 26px;
  border-radius: 8px;
  margin-bottom: 28px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--blue);
  color: var(--white);
  padding: 48px 5vw 0;
}

.ft-banner {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 18px 24px;
  text-align: center;
  margin-bottom: 36px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.ft-banner strong {
  color: var(--gold);
}

.ft-redes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 36px;
}
.ft-redes .ri {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.75);
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ft-brand p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-top: 13px;
  max-width: 220px;
}

.ft-soc {
  display: flex;
  gap: 7px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ft-soc a {
  width: 33px;
  height: 33px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition:
    background 0.2s,
    color 0.2s;
}
.ft-soc a:hover {
  background: var(--gold);
  color: var(--blue);
}
.ft-soc svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.ft-logo-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-logo-box svg {
  width: 25px;
  height: 25px;
  fill: var(--white);
}

.ft-col h4 {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--gold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.ft-col ul {
  list-style: none;
}
.ft-col li {
  margin-bottom: 7px;
}
.ft-col li a {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.ft-col li a:hover {
  color: var(--gold);
}

.ct-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  line-height: 1.5;
}

.ft-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.38);
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── WHATSAPP FAB ─── */
.wafab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wafab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.7);
}
.wafab svg {
  width: 29px;
  height: 29px;
  fill: var(--white);
}

/* ─── RESPONSIVE COMPARTIDO ─── */
@media (max-width: 860px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    padding: 8px 0 14px;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    height: auto;
    line-height: 1;
    padding: 13px 22px;
    border-bottom: none;
  }
  .nav-menu .nb,
  .nav-menu .nq {
    margin: 5px 22px;
    height: 40px !important;
    line-height: 40px !important;
  }
  nav {
    position: relative;
  }
  .burger {
    display: flex;
  }
  .nav-logo img {
    height: 42px;
  }
  .ft-grid {
    grid-template-columns: 1fr;
  }
}
