:root {
  --noche: #121212;
  --carbon: #1a1a1a;
  --grafito: #2b2b2b;
  --grafito-luz: #383838;
  --bronce: #7a5a3a;
  --bronce-luz: #a8825a;
  --bronce-glow: rgba(168, 130, 90, 0.18);
  --plata: #d9d9d9;
  --blanco: #f2f2f2;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--plata);
  background: var(--noche);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(122, 90, 58, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(122, 90, 58, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0e0e0e 0%, #121212 40%, #0a0a0a 100%);
  background-attachment: fixed;
}

/* ====== Texture / noise overlay (volcanic stone feel) ====== */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ====== Ambient glow blobs ====== */
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.55;
  border-radius: 50%;
}

.bg-glow--top {
  width: 620px;
  height: 620px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168, 130, 90, 0.32) 0%, transparent 65%);
}

.bg-glow--bottom {
  width: 480px;
  height: 480px;
  bottom: -200px;
  right: -120px;
  background: radial-gradient(circle, rgba(122, 90, 58, 0.24) 0%, transparent 65%);
}

/* ====== Navbar ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, transparent 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(122, 90, 58, 0.25);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanco);
  text-decoration: none;
  background: linear-gradient(180deg, #f2f2f2 0%, #c9b48d 60%, #7a5a3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar__email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--plata);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.navbar__email i {
  color: var(--bronce-luz);
}

.navbar__email:hover {
  color: var(--bronce-luz);
}

.navbar__email span {
  display: none;
}

@media (min-width: 540px) {
  .navbar__email span {
    display: inline;
  }
}

/* ====== Layout helpers ====== */
main,
.footer {
  position: relative;
  z-index: 2;
}

section {
  padding: 4rem 1.5rem;
}

.section__eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--bronce-luz);
  margin: 0 auto 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronce));
}

.section__eyebrow::after {
  background: linear-gradient(90deg, var(--bronce), transparent);
}

/* ====== Hero ====== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero__inner {
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
  position: relative;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 32px rgba(168, 130, 90, 0.18));
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--blanco);
  margin-bottom: 1.25rem;
}

.hero__title .accent {
  background: linear-gradient(180deg, #d9c39c 0%, #a8825a 55%, #7a5a3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero__subtitle {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--plata);
  max-width: 620px;
  margin: 0 auto 1.25rem;
  letter-spacing: 0.01em;
}

.hero__description {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  color: rgba(217, 217, 217, 0.72);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__cta {
  margin-bottom: 3rem;
}

/* ====== Metallic Button ====== */
.btn-metal {
  position: relative;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--plata);
  padding: 1.1rem 2.5rem;
  background: linear-gradient(180deg, #2f2f2f 0%, #1d1d1d 100%);
  border: none;
  cursor: not-allowed;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    color 0.3s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(122, 90, 58, 0.0);
}

.btn-metal::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 2px;
  background: linear-gradient(135deg, #a8825a 0%, #7a5a3a 40%, #4b3823 60%, #a8825a 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.btn-metal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transition: left 1.2s var(--ease);
  pointer-events: none;
}

.btn-metal:hover {
  transform: translateY(-2px);
  color: var(--blanco);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 16px 32px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(168, 130, 90, 0.35);
}

.btn-metal:hover::after {
  left: 120%;
}

/* ====== Divider with volcano ====== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
  color: var(--bronce-luz);
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 130, 90, 0.55), transparent);
}

.divider__icon {
  width: 36px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(168, 130, 90, 0.35));
}

/* ====== Countdown ====== */
.countdown {
  padding-top: 2rem;
  padding-bottom: 4rem;
  text-align: center;
}

.countdown__grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.count-card {
  position: relative;
  padding: 1.4rem 0.5rem 1.1rem;
  background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.count-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(168, 130, 90, 0.55) 0%, rgba(122, 90, 58, 0.1) 40%, rgba(168, 130, 90, 0.35) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.count-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.count-card__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  background: linear-gradient(180deg, #f2f2f2 0%, #d9c39c 55%, #a8825a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: opacity 0.25s var(--ease);
}

.count-card__label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(217, 217, 217, 0.65);
}

/* ====== Location ====== */
.location {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.location__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--plata);
}

.location__row i {
  color: var(--bronce-luz);
  font-size: 1rem;
}

/* ====== Social ====== */
.social {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.social__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social__link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  color: var(--plata);
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 16px rgba(0, 0, 0, 0.45);
}

.social__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(140deg, #a8825a 0%, #4b3823 50%, #a8825a 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  opacity: 0.7;
}

.social__link:hover {
  transform: translateY(-3px);
  color: var(--bronce-luz);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(168, 130, 90, 0.35);
}

.social__link:hover::before {
  opacity: 1;
}

/* ====== Finale phrase ====== */
.finale {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.finale__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.finale__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 130, 90, 0.45), transparent);
}

.finale__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--blanco);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ====== Footer ====== */
.footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(122, 90, 58, 0.18);
  background: rgba(10, 10, 10, 0.6);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(217, 217, 217, 0.55);
  text-align: center;
}

.footer__inner a {
  color: var(--bronce-luz);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer__inner a:hover {
  color: var(--blanco);
}

/* ====== Reveal animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealIn 1s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Responsive ====== */
@media (min-width: 640px) {
  .hero__logo {
    width: 240px;
    height: 240px;
  }

  .countdown__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .count-card {
    padding: 1.75rem 0.5rem 1.4rem;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 5rem 2rem;
  }

  .hero {
    padding: 8rem 2rem 5rem;
  }

  .hero__logo {
    width: 280px;
    height: 280px;
  }

  .navbar {
    padding: 1.5rem 2rem;
  }

  .navbar.is-scrolled {
    padding: 1rem 2rem;
  }
}

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

  .hero__logo {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: rgba(168, 130, 90, 0.45);
  color: var(--blanco);
}
