/* ======================================================
   OralCare Center - Header & Global Components Style
   ====================================================== */

:root {
  --blue: #2f6bff;
  --blue-2: #1e56ea;
  --blue-hover: #1748cc;
  --blue-soft: #eef4fe;
  --blue-bg: #eaf1fb;
  --navy: #071d3d;
  --navy-light: #0d2850;
  --ink: #0d1727;
  --muted: #5c6c84;
  --line: #e2e8f2;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 12px rgba(13, 23, 39, 0.04);
  --shadow: 0 14px 40px rgba(13, 23, 39, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 29, 61, 0.16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Base SVGs */
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(47, 107, 255, 0.45);
  color: #fff;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

.btn-pill {
  border-radius: 999px;
}

.btn-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.btn:hover .btn-ic {
  transform: translate(2px, -2px) rotate(45deg);
}

.btn-ic svg {
  width: 14px;
  height: 14px;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  transition: all 0.35s ease;
  padding: 22px 0;
  width: 100%;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(7, 29, 61, 0.08);
  padding: 12px 0;
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
  transition: transform 0.3s ease;
}

.logo:hover .logo-badge {
  transform: rotate(10deg) scale(1.05);
}

.logo-badge svg {
  width: 22px;
  height: 22px;
}

.header.scrolled .logo {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.header.scrolled .nav-link {
  color: var(--ink);
}

.header.scrolled .nav-link:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Selector de idioma */
.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(8px);
}

.header.scrolled .lang-switch {
  background: var(--blue-soft);
  border-color: var(--line);
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.header.scrolled .lang-btn {
  color: var(--muted);
}

.lang-btn.active {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.4);
}

.burger {
  display: none;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.header.scrolled .burger {
  color: var(--ink);
}

.burger svg {
  width: 28px;
  height: 28px;
}

/* Mobile Drawer */
@media (max-width: 991px) {
  .header {
    padding: 14px 0;
  }

  .header.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(7, 29, 61, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 0;
  }

  .nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 29, 61, 0.16);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav-link {
    color: var(--ink);
    font-size: 16px;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
  }

  .header.scrolled .burger {
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  .header-actions .btn span:not(.btn-ic) {
    display: none;
  }
  .header-actions .btn {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .header-actions .btn .btn-ic {
    margin: 0;
    width: 18px;
    height: 18px;
  }
}

/* ======================================================
   HERO BANNER COMPONENT & GSAP ANIMATIONS
   ====================================================== */
@keyframes spinStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spark-spinning {
  animation: spinStar 10s linear infinite;
  transform-origin: center;
  display: block;
}

.spark-badge {
  display: grid;
  place-items: center;
  color: #93c5fd;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.pill-glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  padding: 8px 18px;
  transition: all 0.3s ease;
}

.pill-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-position: center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 160px 0 110px;
  color: #fff;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 24, 51, 0.88) 0%, rgba(7, 24, 51, 0.6) 52%, rgba(7, 24, 51, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero-content {
  max-width: 680px;
}

.hero-anim {
  opacity: 0;
  transform: translateY(26px);
}

.hero-eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 20px;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.hero-eyebrow p {
  font-size: 14px;
  font-weight: 500;
  color: #f1f5f9;
  margin: 0;
}

.hero h1,
.hero-title {
  color: #fff !important;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 26px;
  letter-spacing: -0.03em;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-rating {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  margin-bottom: 8px;
  min-width: 270px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-rating:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.hero-rating-num {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
}

.hero-rating-num .star {
  width: 20px;
  height: 20px;
  fill: #ffbe0b;
  stroke: none;
  margin-top: 4px;
}

.hero-rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -12px;
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

.avatars img:first-child {
  margin-left: 0;
}

.avatars img:hover {
  transform: translateY(-3px) scale(1.1);
  z-index: 2;
}

.avatar-plus {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  margin-left: -12px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-sizing: border-box;
  flex-shrink: 0;
}

.avatar-plus svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2.5;
}

.rating-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }
  .hero-rating {
    margin-top: 10px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 130px 0 80px;
  }
  .hero-rating {
    width: 100%;
    margin-top: 20px;
  }
}
