:root {
  --bg: #f7f0e4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #fffaf2;
  --ink: #201814;
  --muted: #645850;
  --line: rgba(32, 24, 20, 0.12);
  --accent: #b16016;
  --accent-strong: #85410b;
  --accent-soft: #efc47e;
  --forest: #132f26;
  --forest-strong: #0d221b;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(32, 24, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 196, 126, 0.26), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(19, 47, 38, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf6ec 0%, #f4eddf 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero {
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.brand,
.topbar-links a,
.eyebrow {
  font-family: "DM Sans", sans-serif;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.feature-card,
.metric-card,
.timeline-year,
.format-card,
.presence-card,
.portfolio-card,
.cta-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.9), rgba(255, 255, 255, 0.64));
  padding: 40px;
  border-radius: var(--radius-lg);
}

.hero-card {
  background: linear-gradient(180deg, var(--forest), var(--forest-strong));
  color: #f8f3ea;
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 196, 126, 0.4), rgba(239, 196, 126, 0));
}

.hero-card-media {
  display: grid;
  place-items: center;
  min-height: 280px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.hero-card .eyebrow,
.card-label {
  color: var(--accent-soft);
}

.card-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.hero-text,
.hero-card p,
.feature-card p,
.metric-card span,
.format-card p,
.presence-card p,
.portfolio-card p,
.section-sidecopy,
.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-card p,
.cta-panel p,
.section-dark .section-sidecopy,
.section-dark .feature-card p,
.section-dark .format-card p {
  color: rgba(248, 243, 234, 0.78);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff7f0;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.hero-highlights li {
  padding-left: 18px;
  position: relative;
  color: var(--ink);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-card-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff7f0;
  font-size: 0.92rem;
}

.profile-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.profile-links a {
  width: fit-content;
  color: #fff7f0;
  border-bottom: 1px solid rgba(255, 247, 240, 0.3);
  padding-bottom: 3px;
}

.section {
  padding: 34px 0;
}

.section-dark {
  color: #f8f3ea;
}

.section-dark > .section-heading h2 {
  color: var(--ink);
}

.section-dark > .section-heading .eyebrow {
  color: var(--accent-strong);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: end;
}

.expertise-grid,
.metrics-grid,
.portfolio-grid,
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.format-card {
  background: linear-gradient(180deg, rgba(19, 47, 38, 0.95), rgba(13, 34, 27, 0.94));
  padding: 24px;
  border-radius: var(--radius-md);
}

.metric-card,
.portfolio-card,
.presence-card {
  background: var(--surface-strong);
  padding: 24px;
  border-radius: var(--radius-md);
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.presence-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-strong);
  font-weight: 700;
}

.carousel-stack {
  display: grid;
  gap: 16px;
}

.carousel-shell {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.carousel-shell::before,
.carousel-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 84px;
  z-index: 2;
  pointer-events: none;
}

.carousel-shell::before {
  left: 0;
  background: linear-gradient(90deg, #f4eddf 0%, rgba(244, 237, 223, 0) 100%);
}

.carousel-shell::after {
  right: 0;
  background: linear-gradient(270deg, #f4eddf 0%, rgba(244, 237, 223, 0) 100%);
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: course-marquee 42s linear infinite;
}

.carousel-track-reverse {
  animation-name: course-marquee-reverse;
  animation-duration: 48s;
}

.course-pill {
  flex: 0 0 auto;
  width: 320px;
  min-height: 92px;
  padding: 18px 24px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
}

@keyframes course-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes course-marquee-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.cta-section {
  padding-top: 12px;
}

.cta-panel {
  background: linear-gradient(135deg, #181411, #2b211c 65%, #4b301f);
  color: #f8f3ea;
  padding: 34px;
  border-radius: calc(var(--radius-lg) + 4px);
}

.cta-panel .button-secondary {
  background: transparent;
  border-color: rgba(255, 247, 240, 0.18);
  color: #fff7f0;
}

/* FAQ */
.section-faq {
  padding-top: 12px;
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 28px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-item p {
  padding: 0 28px 22px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item p a {
  color: var(--accent-strong);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 0;
  margin-top: 12px;
}

.footer-content {
  display: grid;
  gap: 16px;
  text-align: center;
}

.footer-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.footer-content > p,
.footer-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

.author-bio h3 {
  color: #fff7f0 !important;
}

.author-bio p {
  color: rgba(248, 243, 234, 0.84) !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .section-heading.split,
  .expertise-grid,
  .metrics-grid,
  .portfolio-grid,
  .formats-grid,
  .presence-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card,
  .cta-panel {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  h1 {
    max-width: 100%;
  }

  .button {
    width: 100%;
  }

  .carousel-shell::before,
  .carousel-shell::after {
    width: 32px;
  }

  .course-pill {
    width: 250px;
    min-height: 110px;
    padding: 16px 18px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-button {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3), 0 4px 6px -4px rgba(37, 211, 102, 0.3);
  transition: all 300ms ease;
  z-index: 50;
  text-decoration: none;
}

@media (min-width: 640px) {
  .whatsapp-button {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 1024px) {
  .whatsapp-button {
    width: 64px;
    height: 64px;
  }
}

.whatsapp-button:hover {
  background-color: #1da851;
  transform: scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(37, 211, 102, 0.4), 0 8px 10px -6px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.25;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 1024px) {
  .whatsapp-icon {
    width: 32px;
    height: 32px;
  }
}

.whatsapp-tooltip {
  display: none;
}

@media (min-width: 1024px) {
  .whatsapp-tooltip {
    display: block;
    position: absolute;
    right: 100%;
    margin-right: 12px;
    background-color: var(--ink);
    color: #fff7f0;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all 300ms ease;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-family: inherit;
  }
  
  .whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
  }

  .whatsapp-tooltip-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: var(--ink);
  }
}
