html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

/* =========================
   VARIABLES
========================= */
:root {
  --bg-dark: #050c1c;
  --text-dark: #0f172a;
  --text-light: rgba(255, 255, 255, 0.72);

  --nav-light-bg: rgba(255, 255, 255, 0.78);
  --nav-dark-bg: rgba(15, 23, 42, 0.32);

  --nav-light-border: rgba(15, 23, 42, 0.1);
  --nav-dark-border: rgba(255, 255, 255, 0.14);

  --nav-light-text: rgba(15, 23, 42, 0.78);
  --nav-dark-text: rgba(255, 255, 255, 0.82);

  --nav-light-strong: #0f172a;
  --nav-dark-strong: #ffffff;
}

/* =========================
   GLASS EFFECTS
========================= */

.glass-dark,
.glass-light {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

/* Glass oscuro */
.glass-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 30px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-dark:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Glass claro */
.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-light:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* =========================
   BACKGROUNDS
========================= */

.soft-bg {
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(15, 23, 42, 0.05),
      transparent 25%
    ),
    linear-gradient(to bottom, #ffffff, #f8fafc);
}

/* =========================
   NAVBAR AUTOMATICO
========================= */

#navbar {
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    color 0.35s ease;
}

#nav-container,
#logo-text,
#menu-btn,
#nav-cta,
.nav-link,
.mobile-link,
#logo-badge,
#mobile-menu {
  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* =========================
   NAVBAR: TEMA OSCURO
========================= */

#navbar.theme-dark #nav-container {
  background: var(--nav-dark-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--nav-dark-border);
  box-shadow:
    0 10px 30px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#navbar.theme-dark #logo-text {
  color: var(--nav-dark-strong) !important;
}

#navbar.theme-dark .nav-link {
  color: var(--nav-dark-text) !important;
}

#navbar.theme-dark .nav-link:hover,
#navbar.theme-dark .nav-link.active {
  color: var(--nav-dark-strong) !important;
}

#navbar.theme-dark #menu-btn {
  color: var(--nav-dark-strong) !important;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

#navbar.theme-dark #menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

#navbar.theme-dark #nav-cta {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14);
}

#navbar.theme-dark #nav-cta:hover {
  background: rgba(255, 255, 255, 0.92);
}

#navbar.theme-dark .mobile-link {
  color: var(--nav-dark-text) !important;
}

#navbar.theme-dark .mobile-link:hover,
#navbar.theme-dark .mobile-link.active {
  color: var(--nav-dark-strong) !important;
}

#navbar.theme-dark #mobile-menu {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
}

/* =========================
   NAVBAR: TEMA CLARO
========================= */

#navbar.theme-light #nav-container {
  background: var(--nav-light-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--nav-light-border);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#navbar.theme-light #logo-text {
  color: var(--nav-light-strong) !important;
}

#navbar.theme-light .nav-link {
  color: var(--nav-light-text) !important;
}

#navbar.theme-light .nav-link:hover,
#navbar.theme-light .nav-link.active {
  color: var(--nav-light-strong) !important;
}

#navbar.theme-light #menu-btn {
  color: var(--nav-light-strong) !important;
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.65);
}

#navbar.theme-light #menu-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

#navbar.theme-light #nav-cta {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

#navbar.theme-light #nav-cta:hover {
  background: #1e293b;
}

#navbar.theme-light .mobile-link {
  color: var(--nav-light-text) !important;
}

#navbar.theme-light .mobile-link:hover,
#navbar.theme-light .mobile-link.active {
  color: var(--nav-light-strong) !important;
}

#navbar.theme-light #mobile-menu {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* =========================
   MOBILE MENU
========================= */

#mobile-menu {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* =========================
   FAQS
========================= */

.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

.faq-content.open {
  opacity: 1;
}

.plus-icon {
  transition: transform 0.3s ease;
}

/* =========================
   DROPDOWN DESKTOP
========================= */

#more-btn svg {
  transition: transform 0.3s ease;
}

.group:hover #more-btn svg {
  transform: rotate(180deg);
}

#more-menu {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}

.group:hover #more-menu {
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#more-menu > div {
  padding: 0.6rem;
  border-radius: 1.25rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Estado abierto con JS */
#more-wrapper.open #more-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Flecha rota */
#more-wrapper.open svg {
  transform: rotate(180deg);
}

/* Tema oscuro */
#navbar.theme-dark #more-menu > div {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 50px rgba(2, 6, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Tema claro */
#navbar.theme-light #more-menu > div {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dropdown-link {
  display: block;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-weight: 500;
  line-height: 1.2;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.25s ease;
}

/* Links en oscuro */
#navbar.theme-dark .dropdown-link {
  color: rgba(255, 255, 255, 0.82);
}

#navbar.theme-dark .dropdown-link:hover,
#navbar.theme-dark .dropdown-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Links en claro */
#navbar.theme-light .dropdown-link {
  color: rgba(15, 23, 42, 0.78);
}

#navbar.theme-light .dropdown-link:hover,
#navbar.theme-light .dropdown-link.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

/*======================
=====WhatsApp Button====
========================*/

#whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  padding: 0.78rem 1rem 0.78rem 0.78rem;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  text-decoration: none;
  transition: all 0.3s ease;
}

#whatsapp-btn:hover {
  transform: translateY(-2px);
}

.whatsapp-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #25d366, #1fb857);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  color: white;
}

.whatsapp-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

@media (max-width: 640px) {
  .whatsapp-label {
    display: none;
  }
}
