/* =============================================================
   Latin Business Power — stylesheet
   Palette: charcoal + vibrant yellow (from logo) + teal accent + cream
   Mood: sleek, premium, boutique-modern — approachable, never stiff
   ============================================================= */

:root {
  /* Brand colors */
  --charcoal-900: #232323;
  --charcoal-700: #35322f;
  --charcoal-500: #5c584f;
  --charcoal-300: #8d897f;
  --yellow: #f7c948;
  --yellow-dark: #eab226;
  --yellow-light: #fff1cc;
  --teal: #16b3a3;
  --teal-dark: #0e8f82;
  --teal-light: #e3f9f6;
  --coral: #ff8b5e;
  --cream: #fffaf0;
  --white: #ffffff;

  /* Semantic */
  --bg-body: var(--cream);
  --text-primary: var(--charcoal-900);
  --text-muted: var(--charcoal-500);
  --border-color: #ece4d3;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-width: 1180px;
  --radius-card: 20px 20px 20px 6px;
  --shadow-sm: 0 2px 10px rgba(35, 35, 35, 0.05);
  --shadow-md: 0 10px 26px rgba(35, 35, 35, 0.09);
  --shadow-lg: 0 22px 48px rgba(35, 35, 35, 0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.75;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--charcoal-900);
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Understated accent underline — a refined nod to the logo's bulb curve,
   not a hand-drawn marker */
mark {
  background: none;
  color: var(--yellow);
  font-style: normal;
  padding-bottom: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M1 8 Q10 3 20 8 T39 7' fill='none' stroke='%23f7c948' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  /* Plus Jakarta Sans's ascent/descent metrics inflate the inline box past
     the visual glyph line, so the underline is anchored by a fixed pixel
     offset from the box's bottom edge rather than "bottom" (which would
     land it on the following line) — recalibrate together with
     font-size/line-height. */
  background-position: left calc(100% - 10px);
  background-size: 60px 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yellow);
  color: var(--charcoal-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--yellow-dark); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-outline {
  background: transparent;
  margin-top: auto;
  align-self: flex-start;
}
.btn-outline--yellow { color: var(--charcoal-900); border-color: var(--yellow-dark); }
.btn-outline--yellow:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-outline--teal { color: var(--charcoal-900); border-color: var(--teal); }
.btn-outline--teal:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

.btn-arrow { transition: transform var(--transition); }
.btn-outline:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--charcoal-900);
}
.logo-text--light { color: var(--white); }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--charcoal-900); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}
.main-nav a:hover::after { width: 100%; }

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

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.lang-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.lang-btn.active { color: var(--charcoal-900); }
.lang-pill {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--yellow);
  border-radius: 999px;
  transition: transform var(--transition);
}
.lang-btn[data-lang="es"].active ~ .lang-pill,
.lang-switch:has(.lang-btn[data-lang="es"].active) .lang-pill {
  transform: translateX(100%);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--charcoal-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #3a3733 0%, var(--charcoal-900) 55%);
  color: var(--white);
  padding: 100px 0 150px;
  overflow: hidden;
  text-align: center;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  animation: float 9s ease-in-out infinite;
}
.hero-blob--yellow {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.5) 0%, rgba(247, 201, 72, 0) 70%);
  top: -60px; right: -40px;
}
.hero-blob--teal {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(22, 179, 163, 0.4) 0%, rgba(22, 179, 163, 0) 70%);
  bottom: -100px; left: -80px;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}

.hero-spark { position: absolute; color: var(--yellow); animation: twinkle 3.6s ease-in-out infinite; }
.hero-spark--1 { width: 34px; height: 34px; top: 22%; left: 8%; animation-delay: 0s; }
.hero-spark--2 { width: 24px; height: 24px; top: 65%; right: 12%; color: var(--teal); animation-delay: -1.1s; }
.hero-spark--3 { width: 14px; height: 14px; top: 40%; right: 22%; animation-delay: -2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.hero-inner { position: relative; max-width: 780px; margin: 0 auto; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow--dark { color: var(--charcoal-900); background: var(--yellow); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-sub {
  color: #d8d5cf;
  font-size: 1.15rem;
  line-height: 1.7;
  letter-spacing: -0.003em;
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.wave-divider {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: 90px;
  display: block;
}

/* ---------- Services ---------- */
.services { padding: 120px 0 110px; background: var(--cream); position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-sub { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card--yellow:hover { border-color: var(--yellow); }
.service-card--teal:hover { border-color: var(--teal); }

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card--yellow .service-icon { background: var(--yellow-light); color: var(--yellow-dark); }
.service-card--teal .service-icon { background: var(--teal-light); color: var(--teal-dark); }
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.service-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.service-card--yellow .service-brand { color: var(--yellow-dark); }
.service-card--teal .service-brand { color: var(--teal-dark); }
.service-card p { color: var(--text-muted); line-height: 1.7; margin-bottom: 30px; }

/* ---------- About ---------- */
.about {
  position: relative;
  padding: 100px 0 130px;
  background: var(--teal-light);
  overflow: hidden;
}
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}
.about-content .eyebrow { color: var(--charcoal-900); background: var(--yellow); }
.about-content p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.75; }

.about-illustration { display: flex; justify-content: center; }
.about-illustration-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.about-illustration-logo {
  width: 56%;
  height: 56%;
  object-fit: contain;
}

.about-stats {
  display: flex;
  gap: 44px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-900);
  color: #cfccc4;
  padding: 76px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: #a9a59c; font-size: 0.94rem; line-height: 1.7; max-width: 300px; margin: 0; }

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #cfccc4; font-size: 0.96rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--yellow); }

.footer-contact li { display: flex; align-items: center; gap: 10px; color: #cfccc4; font-size: 0.96rem; }
.footer-contact svg { flex-shrink: 0; color: var(--yellow); width: 18px; height: 18px; }

.footer-bottom {
  padding: 26px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8c887f;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-content .eyebrow { margin-left: auto; margin-right: auto; }
  .about-stats { justify-content: center; }
  .about-illustration { order: -1; max-width: 220px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-contact li { justify-content: center; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open { max-height: 260px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .logo-text { font-size: 0.92rem; }
  .hero { padding: 76px 0 110px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .about-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .service-card { padding: 34px 26px; }
  .header-inner { height: 72px; }
  .logo-text br { display: none; }
}
