/* ============================================================
   FLOW EDITION — Premium Streetwear Landing Page
   styles.css — Design System & Full Styling
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* --- Palette --- */
  --color-black: #0b0b0b;
  --color-black-light: #141414;
  --color-black-card: #111111;
  --color-gold: #C6A85A;
  --color-gold-light: #d4bc78;
  --color-gold-dark: #a88d3e;
  --color-white: #ffffff;
  --color-gray: #8a8a8a;
  --color-gray-light: #b0b0b0;
  --color-whatsapp: #25D366;

  /* --- Typography --- */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* --- Spacing --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;

  /* --- Transitions --- */
  --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.4s var(--ease-premium);
  --transition-slow: 0.7s var(--ease-out);

  /* --- Shadows --- */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 40px rgba(198, 168, 90, 0.15);

  /* --- Layout --- */
  --max-width: 1200px;
  --header-h: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   4. HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(198, 168, 90, 0.08);
  transition: background var(--transition-base);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.logo span {
  color: var(--color-white);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-light);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-base);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) var(--space-sm) var(--space-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%,
      rgba(198, 168, 90, 0.06) 0%,
      transparent 70%),
    var(--color-black);
}

/* Subtle grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-logo-img {
  margin: 0 auto var(--space-lg);
  width: clamp(110px, 20vw, 160px);
  height: clamp(110px, 20vw, 160px);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid rgba(198, 168, 90, 0.35);
  box-shadow:
    0 0 30px rgba(198, 168, 90, 0.12),
    0 0 60px rgba(198, 168, 90, 0.06);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: fadeUpScale 1s var(--ease-out) 0.3s forwards;
}

.hero-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}

/* Animated gold line under H1 */
.hero-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-sm) auto var(--space-md);
  animation: lineExpand 1.2s var(--ease-out) 1s forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--color-gray-light);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

/* ---- CTA Button with shine effect ---- */
.btn-cta {
  display: inline-block;
  padding: 16px 48px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-black);
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 1.2s forwards;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 100%);
  transition: left 0.6s var(--ease-premium);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 168, 90, 0.35);
}

.btn-cta:hover::before {
  left: 100%;
}

/* ============================================================
   6. BRAND IDENTITY SECTION
   ============================================================ */
.identity {
  padding: var(--space-xxl) 0;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.identity-text {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.identity-text.revealed {
  opacity: 1;
  transform: translateX(0);
}

.identity-text .section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.identity-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.identity-text p {
  font-size: 1rem;
  color: var(--color-gray-light);
  line-height: 1.8;
  max-width: 500px;
}

.identity-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  width: fit-content;
  margin-inline: auto;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.identity-image.revealed {
  opacity: 1;
  transform: translateX(0);
}

.identity-image img,
.identity-image video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.identity-image video {
  width: auto;
  height: 400px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.identity-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 168, 90, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.identity-image:hover img,
.identity-image:hover video {
  transform: scale(1.02);
}

.identity-image:hover::after {
  opacity: 1;
}

/* ============================================================
   7. PRODUCTS SECTION
   ============================================================ */
.products {
  padding: var(--space-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.product-card {
  position: relative;
  background: var(--color-black-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(198, 168, 90, 0.3);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-black-light);
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s var(--ease-premium), transform var(--transition-slow);
}

.product-card-image .product-img-front {
  opacity: 1;
}

.product-card-image .product-img-back {
  opacity: 0;
}

.product-card-image .product-img-front.active {
  opacity: 1;
}

.product-card-image .product-img-front:not(.active) {
  opacity: 0;
}

.product-card-image .product-img-back.active {
  opacity: 1;
}

.product-card-image .product-img-back:not(.active) {
  opacity: 0;
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-info {
  padding: var(--space-md);
  transition: transform var(--transition-base);
}

.product-card:hover .product-card-info {
  transform: translateY(-4px);
}

.product-card-info h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.product-card-info p {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ---- "Ver más" button container ---- */
.products-footer {
  text-align: center;
  margin-top: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.products-footer.revealed {
  opacity: 1;
  transform: translateY(0);
}

.btn-see-more {
  /* Override hero entrance animation from .btn-cta */
  opacity: 1;
  transform: none;
  animation: none;
}

/* ============================================================
   8. BRAND STATEMENT BANNER
   ============================================================ */
.statement {
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.statement-inner {
  max-width: 700px;
  margin-inline: auto;
}

.statement h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--color-gold);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.statement h2.revealed {
  opacity: 1;
  transform: translateY(0);
}

.statement-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-md) auto 0;
  transition: width 1.2s var(--ease-out);
}

.statement-line.revealed {
  width: 120px;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(198, 168, 90, 0.12);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-location {
  font-size: 0.85rem;
  color: var(--color-gray);
  letter-spacing: 1px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.3;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray);
  transition: color var(--transition-base);
}

.footer-socials a:hover {
  color: var(--color-gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: var(--space-sm);
}

/* ============================================================
   10. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  animation: pulse 2.5s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

/* ============================================================
   11. ANIMATIONS (KEYFRAMES)
   ============================================================ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpScale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineExpand {
  to {
    width: 80px;
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55);
  }
}

/* ============================================================
   12. RESPONSIVE DESIGN (Mobile-first breakpoints)
   ============================================================ */

/* Small phones already styled above (base = mobile-first) */

/* Tablets — 600px+ */
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop — 900px+ */
@media (min-width: 900px) {
  .identity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .identity-image img,
  .identity-image video {
    height: 480px;
  }
}

/* Large screens — 1100px+ */
@media (min-width: 1100px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

/* Mobile nav — below 768px */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 11, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}