* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111;
  line-height: 1.5;
  background: #fff;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}

.brand-logo {
  height: 80px;
  width: auto;
  transform: scale(1.6);
  transform-origin: left center;
  display: block;
}

/* menú escritorio */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
  align-items: center;
  overflow: visible;
}

.nav-link {
  text-decoration: none;
  color: #222;
  font-size: 18px;
  padding: 10px 2px;
  position: relative;
  transition: color 0.2s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  color: #8b2d64;
}

/* activo */
.nav-link.nav-active::after,
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #8b2d64;
  border-radius: 999px;
}

/* botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.btn-pill {
  padding: 14px 24px;
  border-radius: 14px;
}

.btn-virtual {
  background: #8b2d64;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn-virtual:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-virtual-desktop {
  flex-shrink: 0;
}

.nav-mobile-cta {
  display: none;
}

/* botón hamburguesa */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #f3f3f6;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 999px;
  transition: 0.2s ease;
}

/* animación botón */
.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   NAV DROPDOWN
========================= */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropbtn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* evita cortes */
.site-header,
.header-row,
.nav {
  overflow: visible;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  padding: 10px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 9999;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dd-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-dd-item.is-current {
  background: rgba(122, 43, 111, 0.12);
  font-weight: 700;
  color: #8b2d64;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #2F2A63;
  border-top: 1px solid #3b357a;
  padding: 24px 0 0;
  color: #ffffff;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo {
  height: 54px;
  width: auto;
  display: block;
}

/* info */
.footer-info {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
}

.footer-label {
  font-size: 12px;
  color: #bdb8e6;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  color: #14b8a6;
  text-decoration: underline;
}

.footer-text {
  font-weight: 700;
}

/* redes */
.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.social-pill {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f3f3f6;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-pill:hover {
  background: #8b2d64;
  transform: translateY(-1px);
}

.social-pill:hover img {
  transform: scale(1.12);
}

/* bottom */
.footer-bottom {
  border-top: 1px solid #3b357a;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  color: #bdb8e6;
}

/* =========================
   BOTÓN FLOTANTE WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

/* =========================
   TABLET / MOBILE
========================= */
@media (max-width: 980px) {
  .header-row {
    min-height: 68px;
  }

  .brand-logo {
    height: 48px;
    transform: scale(1);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-virtual-desktop {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
    flex: unset;
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .nav-link,
  .nav-dropbtn {
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    font-size: 17px;
  }

  .nav-link.nav-active::after,
  .nav-link[aria-current="page"]::after {
    left: 8px;
    right: auto;
    width: 36px;
    bottom: 4px;
  }

  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    pointer-events: none;
    box-shadow: none;
    border-radius: 14px;
    background: #f8f8fb;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 8px;
    transition: max-height 0.22s ease, opacity 0.22s ease, padding 0.22s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    max-height: 400px;
    pointer-events: auto;
    padding: 8px;
  }

  .nav-dd-item {
    white-space: normal;
  }

  .nav-mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-info {
    justify-content: flex-start;
    gap: 18px;
  }

  .footer-item {
    min-width: auto;
  }
}

/* =========================
   MOBILE PEQUEÑO
========================= */
@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .header-row {
    min-height: 64px;
    gap: 14px;
  }

  .brand-logo {
    height: 42px;
  }

  .nav {
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    padding: 16px;
    border-radius: 18px;
  }

  .btn-pill {
    padding: 12px 18px;
  }

  .footer-logo {
    height: 48px;
  }

  .whatsapp-float {
    width: 46px;
    height: 46px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float img {
    width: 22px;
    height: 22px;
  }
}

