@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1a2340;
  --navy-soft: #2a3456;
  --emerald: #0d9f6e;
  --emerald-dark: #0a7d56;
  --sand: #f8f6f3;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-900: #18181b;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--gray-200);
  padding: 12px 48px;
}
.nav__logo { height: 38px; transition: height 0.3s, filter 0.3s; }
.nav.scrolled .nav__logo { height: 32px; filter: brightness(0) saturate(100%); }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a {
  font-size: 14px; font-weight: 600; color: var(--white);
  letter-spacing: -0.01em; transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 0.7; }
.nav.scrolled .nav__links a { color: var(--gray-700); }
.nav__cta {
  font-family: var(--font); font-size: 14px; font-weight: 700;
  padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--emerald); color: var(--white);
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--emerald-dark); }
.nav__hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  border-radius: 1px; transition: all 0.3s;
}
.nav.scrolled .nav__hamburger span { background: var(--gray-700); }

/* === HERO === */
.hero-wrapper {
  background: var(--navy);
  width: 100%;
}
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 400px;
  align-items: center;
  padding: 140px 48px 80px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero__tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(13,159,110,0.3);
  border-radius: 4px;
}
.hero__title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800; line-height: 1.12;
  color: var(--white); letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--emerald);
}
.hero__desc {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
  margin-bottom: 32px;
}
.hero__social-proof {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__social-proof strong {
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

/* Hero Form */
.hero__form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
}
.hero__form-title {
  font-size: 20px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.hero__form-sub {
  font-size: 14px; color: var(--gray-500); margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-600); margin-bottom: 5px;
}
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px;
  font-family: var(--font); font-size: 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px; background: var(--gray-50);
  color: var(--gray-900);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--emerald);
}
.form-group input::placeholder { color: var(--gray-400); }
.btn-submit {
  width: 100%; padding: 13px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  background: var(--emerald); color: var(--white);
  border: none; border-radius: 8px; cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.btn-submit:hover { background: var(--emerald-dark); }
.form-note {
  text-align: center; font-size: 12px; color: var(--gray-400);
  margin-top: 10px;
}

/* === SECTION BASE === */
.section { padding: 100px 48px; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 16px;
}
.section__heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1.15;
  margin-bottom: 16px;
}
.section--navy .section__heading { color: var(--white); }
.section--navy .section__sub { color: rgba(255,255,255,0.5); }
.section__sub {
  font-size: 16px; color: var(--gray-500); line-height: 1.7;
  max-width: 540px; margin-bottom: 48px;
}

/* === DIFERENCIAL (Why us) === */
.diff-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.diff-list { display: flex; flex-direction: column; gap: 28px; }
.diff-item {
  padding-left: 20px;
  border-left: 2px solid var(--gray-200);
  transition: border-color 0.2s;
}
.diff-item:hover { border-left-color: var(--emerald); }
.diff-item__title {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-bottom: 4px; letter-spacing: -0.01em;
}
.diff-item__text {
  font-size: 15px; color: var(--gray-500); line-height: 1.6;
}

/* === BRANDS === */
.brands-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 40px;
}
.brand {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 28px;
  overflow: hidden;
  transition: all 0.2s;
}
.brand:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand--scale img { transform: scale(3.4); }
#brand-sancor img { transform: scale(2.2); }

/* Per-brand hover glow (border only, bg stays dark) */
#brand-preve { --glow: #e6007e; }
#brand-medife { --glow: #e35205; }
#brand-sancor { --glow: #2d4b8e; }
#brand-avalian { --glow: #4db848; }
#brand-swiss { --glow: #d50032; }
#brand-galeno { --glow: #0d5b9f; }
#brand-doctored { --glow: #1a3c6e; }
#brand-ampf { --glow: #1a1f71; }
#brand-federada { --glow: #c4007a; }

.brand:hover {
  border-color: var(--glow, rgba(255,255,255,0.25));
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 -3px 0 var(--glow, transparent);
  transform: translateY(-2px);
}

/* === TESTIMONIALS CAROUSEL === */
.carousel-wrap {
  position: relative;
  margin-top: 40px;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 8px;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--sand) 0%, transparent 100%); }
.carousel-wrap::after { right: 0; background: linear-gradient(to left, var(--sand) 0%, transparent 100%); }
.section--navy .carousel-wrap::before { background: linear-gradient(to right, var(--navy) 0%, transparent 100%); }
.section--navy .carousel-wrap::after { background: linear-gradient(to left, var(--navy) 0%, transparent 100%); }
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel--testi .testi {
  min-width: 320px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.testi {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
}
.testi__stars {
  color: #f59e0b; font-size: 14px; letter-spacing: 2px;
  margin-bottom: 12px;
}
.testi__text {
  font-size: 14px; line-height: 1.6; color: var(--gray-600);
  margin-bottom: 16px;
}
.testi__author {
  display: flex; align-items: center; gap: 10px;
}
.testi__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.testi__name { font-size: 13px; font-weight: 600; color: var(--navy); }
.testi__via { font-size: 11px; color: var(--gray-400); }

/* Carousel nav arrows */
.carousel-nav {
  display: flex; gap: 8px; margin-top: 20px; justify-content: center;
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--gray-600);
  transition: all 0.2s;
  font-family: var(--font);
}
.carousel-btn:hover { border-color: var(--navy); color: var(--navy); }

/* === TEAM CAROUSEL === */
.carousel--team .team-member {
  min-width: 180px;
  max-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.team-member { text-align: center; }
.team-member__img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; border-radius: 12px;
  margin-bottom: 12px;
  background: var(--sand, #f5f0eb);
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.4s;
}
.team-member:hover .team-member__img { filter: grayscale(0); transform: scale(1.03); }
.team-member__name {
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.team-member__role {
  font-size: 13px; color: var(--gray-400);
}

/* === CTA SECTION === */
.cta-band {
  background: var(--navy);
  padding: 80px 48px;
  text-align: center;
}
.cta-band__inner { max-width: 560px; margin: 0 auto; }
.cta-band__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 14px;
}
.cta-band__text {
  font-size: 16px; color: rgba(255,255,255,0.45); line-height: 1.7;
  margin-bottom: 28px;
}
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  background: #25d366; color: var(--white);
  border: none; border-radius: 10px; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-wa:hover { background: #1fb855; transform: translateY(-2px); }
.btn-wa svg { width: 20px; height: 20px; flex-shrink: 0; }

/* === FOOTER === */
.footer {
  padding: 32px 48px 100px;
  border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__logo { height: 24px; opacity: 0.4; }
.footer__text { font-size: 12px; color: var(--gray-400); }
.footer__links { display: flex; gap: 16px; align-items: center; }
.footer__links a {
  font-size: 12px; color: var(--gray-400);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gray-600); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer__social a:hover { background: var(--gray-200); }
.footer__social svg { width: 16px; height: 16px; }

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: #25d366; 
  padding: 12px 20px;
  border-radius: 50px;
  color: white;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }

/* === MOBILE === */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    align-items: center; justify-content: center;
    gap: 24px; z-index: 200;
  }
  .nav__links.open a { color: var(--white); font-size: 20px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 110px 20px 50px;
    gap: 32px;
    min-height: auto;
  }
  .hero__form-wrap { max-width: 100%; }
  .section { padding: 64px 20px; }
  .diff-layout { grid-template-columns: 1fr; gap: 32px; }
  .brands-row { grid-template-columns: repeat(2, 1fr); }
  .carousel--testi .testi { min-width: 280px; max-width: 300px; }
  .carousel--team .team-member { min-width: 150px; max-width: 170px; }
  .cta-band { padding: 60px 20px; }
  .footer { flex-direction: column; text-align: center; padding: 24px 20px 100px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}

/* === SMALL PHONES (iPhone 14 Pro, etc.) === */
@media (max-width: 420px) {
  .section { padding: 64px 12px; }
  .brands-row { gap: 8px; }
  .brand { padding: 16px 12px; height: 90px; }
  .hero { padding: 110px 14px 50px; }
  .cta-band { padding: 60px 14px; }
}

@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
