/* ============================================================
   GRUPO SMP OFICIAL — Coming Soon
   Art direction: Gastronomía premium mediterránea → Elegancia sobria, lujo cálido
   Palette: Oscuro profundo + dorado SMP + cremas neutras
   Typography: Cormorant Garamond (display) + Jost (body) — sofisticación + modernidad
   Density: Muy generoso, cinematográfico, espacio negativo dominante
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colores marca SMP */
  --color-gold:       #B8952A;
  --color-gold-light: #D4AF5A;
  --color-gold-dim:   rgba(184,149,42,0.18);
  --color-gold-glow:  rgba(184,149,42,0.08);
  --color-dark:       #0D0C0B;
  --color-dark-2:     #141310;
  --color-dark-3:     #1C1A17;
  --color-surface:    rgba(255,255,255,0.04);
  --color-surface-2:  rgba(255,255,255,0.07);
  --color-text:       #E8E3DA;
  --color-text-muted: #9A9489;
  --color-text-faint: #5C5750;
  --color-divider:    rgba(184,149,42,0.2);
  --color-border:     rgba(255,255,255,0.08);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  /* Escala fluida */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radio */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-gold: 0 0 40px rgba(184,149,42,0.12), 0 0 80px rgba(184,149,42,0.06);
  --shadow-btn:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);

  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-dark);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, a {
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
}

::selection {
  background: rgba(184,149,42,0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── HERO CONTAINER ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── FONDO PARALLAX ──────────────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-image: url('../img/bg1.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  will-change: transform;
  transform: scale(1.06);
  transition: transform 0.1s linear;
}

/* ── OVERLAYS ────────────────────────────────────────────── */
.hero__overlay-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,12,11,0.82) 0%,
    rgba(13,12,11,0.70) 40%,
    rgba(13,12,11,0.78) 100%
  );
  z-index: 1;
}

.hero__overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    transparent 30%,
    rgba(13,12,11,0.55) 100%
  );
  z-index: 2;
}

.hero__overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(13,12,11,0.6) 0%, transparent 100%);
  z-index: 2;
}

.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(13,12,11,0.8) 0%, transparent 100%);
  z-index: 2;
}

/* ── AMBIENT GLOW ────────────────────────────────────────── */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(ellipse, rgba(184,149,42,0.06) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ── CONTENIDO PRINCIPAL ─────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-4);
  max-width: 820px;
  width: 100%;
  flex: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

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

/* ── LOGO ────────────────────────────────────────────────── */
.hero__logo-wrap {
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 0.5s forwards;
}

.hero__logo {
  width: clamp(160px, 30vw, 240px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(184,149,42,0.25));
  transition: filter 0.4s var(--ease-out);
}

.hero__logo:hover {
  filter: drop-shadow(0 0 36px rgba(184,149,42,0.45));
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── DIVISOR DORADO ──────────────────────────────────────── */
.hero__divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 0.8s forwards;
}

.hero__divider-line {
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold));
}

.hero__divider-line:last-child {
  background: linear-gradient(to left, transparent, var(--color-gold));
}

.hero__divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── BADGE ───────────────────────────────────────────────── */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-gold-dim);
  border: 1px solid rgba(184,149,42,0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1s forwards;
}

.hero__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── TITULAR PRINCIPAL ───────────────────────────────────── */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: #F0EBE0;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.1s forwards;
}

.hero__title strong {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

/* ── TEXTO SECUNDARIO ────────────────────────────────────── */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-12);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.3s forwards;
}

/* ── BOTONES CONTACTO ────────────────────────────────────── */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.25s var(--ease-out);
  min-height: 52px;
  min-width: 180px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  border-radius: inherit;
}

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

.btn:active { transform: scale(0.97); }

/* Botón primario — dorado sólido */
.btn--primary {
  background: var(--color-gold);
  color: #0D0C0B;
  box-shadow: 0 4px 24px rgba(184,149,42,0.25), var(--shadow-btn);
  border: 1px solid var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  box-shadow: 0 6px 32px rgba(184,149,42,0.4), var(--shadow-btn);
  transform: translateY(-2px);
}

/* Botón secundario — glass outline */
.btn--secondary {
  background: var(--color-surface);
  border: 1px solid rgba(184,149,42,0.35);
  color: var(--color-gold-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
}

.btn--secondary:hover {
  background: var(--color-gold-dim);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  box-shadow: 0 0 24px rgba(184,149,42,0.2), var(--shadow-glass);
  transform: translateY(-2px);
}

/* Icono SVG en botón */
.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ── FOOTER INFERIOR ─────────────────────────────────────── */
.hero__footer {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-6);
  margin-top: auto;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s forwards;
}

.hero__footer-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-divider));
}

.hero__footer-line:last-child {
  background: linear-gradient(to left, transparent, var(--color-divider));
}

.hero__footer-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero__content {
    padding: var(--space-8) var(--space-5);
  }

  .hero__logo {
    width: clamp(140px, 50vw, 200px);
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero__subtitle {
    font-size: var(--text-sm);
    padding: 0 var(--space-2);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__footer {
    padding: var(--space-4) var(--space-4);
  }

  .hero__footer-line {
    max-width: 60px;
  }
}

@media (max-width: 380px) {
  .hero__badge {
    font-size: 0.625rem;
    padding: var(--space-1) var(--space-3);
  }
}

/* ── GRAIN SUBTLE ────────────────────────────────────────── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}
