:root {
  --coffee: #2b1709;
  --coffee-2: #4b2d17;
  --caramel: #e7b779;
  --cream: #fff4e4;
  --paper: rgba(255, 244, 228, 0.92);
  --white: #ffffff;
  --muted: rgba(255, 244, 228, 0.75);
  --shadow: 0 24px 90px rgba(15, 7, 2, 0.45);
  --radius: 34px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--coffee);
  overflow-x: hidden;
}

img, svg { display: block; }

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

.bg-visual {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--coffee);
}

.bg-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(231, 183, 121, .35), transparent 28%),
    linear-gradient(90deg, rgba(24, 11, 3, .92) 0%, rgba(43, 23, 9, .74) 42%, rgba(17, 8, 4, .88) 100%);
  z-index: 2;
}

.bg {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  animation: fadeBg 18s infinite;
}

.bg-1 { background-image: url("assets/brand-cover.webp"); opacity: 1; }
.bg-2 { background-image: url("assets/hero-arepas.webp"); animation-delay: 6s; }
.bg-3 { background-image: url("assets/logo-tan.webp"); animation-delay: 12s; }

@keyframes fadeBg {
  0% { opacity: 0; transform: scale(1.08); }
  8% { opacity: 1; }
  30% { opacity: 1; }
  42% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.08); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mix-blend-mode: soft-light;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) 0 24px;
}

.hero-card {
  min-height: min(760px, calc(100vh - 136px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 5vw, 58px);
  border: 1px solid rgba(231, 183, 121, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(43, 23, 9, .88), rgba(43, 23, 9, .55)),
    rgba(255, 244, 228, .05);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  background: rgba(231, 183, 121, .19);
  filter: blur(8px);
}

.brand-side, .visual-side { position: relative; z-index: 1; }

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(142px, 18vw, 192px);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid rgba(231, 183, 121, .55);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.logo-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 28px 0 10px;
  font-size: clamp(.78rem, 1.4vw, .92rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.8rem);
  line-height: .84;
  letter-spacing: -.08em;
  color: var(--white);
  text-wrap: balance;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.62;
  color: var(--muted);
}

.quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.quick-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(231, 183, 121, .28);
  border-radius: 999px;
  background: rgba(255, 244, 228, .09);
  color: rgba(255, 244, 228, .9);
  font-weight: 700;
  font-size: .94rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn-primary {
  background: var(--caramel);
  color: var(--coffee);
  box-shadow: 0 18px 42px rgba(231, 183, 121, .28);
}

.btn-secondary {
  color: var(--cream);
  border: 1px solid rgba(255, 244, 228, .28);
  background: rgba(255, 244, 228, .08);
}

.photo-stack {
  position: relative;
  isolation: isolate;
  width: min(100%, 490px);
  margin-left: auto;
}

.photo-stack::before {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  border-radius: 32px;
  background: var(--caramel);
  opacity: .9;
  z-index: -1;
}

.photo-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid rgba(255, 244, 228, .24);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

.badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 244, 228, .96);
  color: var(--coffee);
  font-weight: 900;
  line-height: 1.08;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  transform: rotate(-3deg);
}

.badge strong { color: var(--coffee-2); font-size: 1.18rem; }

.social-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 22px clamp(20px, 4vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(231, 183, 121, .25);
  background: rgba(43, 23, 9, .78);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.small-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 900;
}

.small-copy {
  margin: 4px 0 0;
  color: var(--muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.social-links a,
.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--coffee);
  border: 1px solid rgba(231, 183, 121, .35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.03);
  background: var(--caramel);
}

.social-links svg,
.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 244, 228, .72);
  font-size: .92rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.floating-whatsapp:hover { transform: translateY(-4px) scale(1.04); }

@media (max-width: 920px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photo-stack {
    width: min(100%, 620px);
    margin: 4px auto 0;
  }

  .photo-stack img { aspect-ratio: 16 / 11; }

  .social-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 16px; }
  .hero-card { padding: 20px; border-radius: 26px; }
  .logo-wrap { width: 126px; border-radius: 24px; padding: 14px; }
  .eyebrow { margin-top: 20px; letter-spacing: .16em; }
  h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .lead { margin-top: 20px; }
  .quick-info span { width: 100%; border-radius: 18px; }
  .btn { width: 100%; }
  .photo-stack::before { inset: 16px -8px -10px 16px; border-radius: 24px; }
  .photo-stack img { border-radius: 24px; }
  .badge { left: 12px; bottom: 12px; }
  .social-links { width: 100%; justify-content: space-between; }
  .social-links a { width: 52px; height: 52px; }
  .footer { width: min(100% - 24px, 1180px); flex-direction: column; }
}

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