@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;800&display=swap');

:root {
  --bg-color: #050505;
  --bg-color-alt: #0a0a0a;
  --text-primary: #f0eadd;
  --text-secondary: #999388;
  --accent-gold: #c29957;
  --accent-gold-hover: #e0b467;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand, .bottle-label {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

/* =========================================
   Typography & Reusables
   ========================================= */

.eyebrow {
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.primary-button {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition);
  border: 1px solid var(--accent-gold);
}

.primary-button:hover {
  background-color: transparent;
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(194, 153, 87, 0.4);
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Header & Nav
   ========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-gold);
  transition: width var(--transition);
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

.buy-button {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  transition: all var(--transition);
}

.buy-button:hover {
  background-color: var(--accent-gold);
  color: #000;
}

.menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(194, 153, 87, 0.1) 0%, rgba(5, 5, 5, 1) 60%);
  z-index: -1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
  max-width: 500px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 6.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #b3b3b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Image Bottle Styles */
.bottle-area {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-image-glow {
  position: absolute;
  width: 420px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 138, 67, 0.32), transparent 62%);
  filter: blur(18px);
  opacity: 0.9;
}

.hero-bottle-image {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 520px;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 80px rgba(180, 123, 55, 0.18);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.hero-bottle-image:hover {
  transform: scale(1.025);
  filter: brightness(1.06) contrast(1.05);
}

/* =========================================
   Origin Section
   ========================================= */

.origin {
  padding: 8rem 2rem;
  background-color: var(--bg-color-alt);
  position: relative;
}

.origin-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.origin h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--text-primary);
}

.origin-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.origin-text p {
  margin-bottom: 1.5rem;
}

/* =========================================
   Products Section
   ========================================= */

.products {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
      180deg,
      rgba(9, 8, 6, 0.88) 0%,
      rgba(9, 8, 6, 0.78) 45%,
      rgba(9, 8, 6, 0.92) 100%
    ),
    url("assets/viejo-brujo-expresiones-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: clamp(3rem, 5vw, 4rem);
}

.section-header > p {
  max-width: 400px;
  color: var(--text-secondary);
  text-align: right;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.product-card {
  background: rgba(16, 13, 9, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 2rem;
  border-radius: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(194, 153, 87, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.product-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.product-perfil {
  border-top: 1px solid rgba(194, 153, 87, 0.2);
  padding-top: 1rem;
}

.perfil-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.perfil-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-serif);
}

/* Product Card Details (Restored) */
.product-image {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.mini-bottle {
  width: 50px;
  height: 120px;
  background: linear-gradient(90deg, #111 0%, #2a2a2a 20%, #3d3d3d 50%, #1a1a1a 80%, #0a0a0a 100%);
  border-radius: 12px 12px 5px 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.9), inset 10px 0 15px rgba(0,0,0,0.5);
}

.mini-bottle::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 15px;
  background: linear-gradient(90deg, #111, #444, #111);
  border-radius: 2px 2px 0 0;
}

.mini-label {
  width: 35px;
  height: 45px;
  background-color: #f5f0e6;
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
  border: 1px solid rgba(194, 153, 87, 0.3);
  line-height: 1.2;
}

.product-category {
  color: var(--accent-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.product-details {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(239, 226, 198, 0.72);
}

.profile-label {
  margin-top: 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent-gold);
}

.product-description {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-serif);
  margin-top: 8px;
}

.details-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent-gold);
  border-radius: 2rem;
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition);
}

.details-button:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 15px rgba(194, 153, 87, 0.4);
}

/* =========================================
   Individual Product Page
   ========================================= */

.product-detail-page {
  background: #090806;
  color: #efe2c6;
}

.detail-header {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 8, 6, 0.88);
  border-bottom: 1px solid rgba(239, 226, 198, 0.1);
}

.product-detail-main {
  min-height: 100vh;
  padding: 70px 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(194, 138, 67, 0.18), transparent 35%),
    linear-gradient(180deg, #090806 0%, #100d09 100%);
}

.product-detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.product-detail-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8vw, 110px);
  line-height: 0.9;
  color: #f4d99e;
  margin-bottom: 24px;
}

.product-detail-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  color: #c28a43;
  margin-bottom: 34px;
}

.product-detail-text {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(239, 226, 198, 0.78);
}

.product-detail-box {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(239, 226, 198, 0.13);
  border-radius: 24px;
  background: rgba(16, 13, 9, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.box-label {
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #c28a43;
}

.product-detail-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.product-detail-visual {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(194, 138, 67, 0.24), transparent 58%);
}

.product-detail-bottle {
  position: relative;
  width: 190px;
  height: 460px;
  border-radius: 90px 90px 42px 42px;
  background: #080705;
  border: 1px solid rgba(244, 217, 158, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.product-detail-bottle::before {
  content: "";
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 130px;
  border-radius: 18px 18px 0 0;
  background: #15100c;
}

.product-detail-label {
  position: absolute;
  top: 165px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #efe2c6;
  border: 1px solid #c28a43;
  color: #090806;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

@media (max-width: 900px) {
  .product-detail-hero {
    grid-template-columns: 1fr;
  }

  .product-detail-visual {
    min-height: 420px;
  }

  .product-detail-bottle {
    width: 150px;
    height: 360px;
  }

  .product-detail-label {
    top: 130px;
    width: 105px;
    height: 105px;
    font-size: 18px;
  }
}

/* =========================================
   Contact Section
   ========================================= */

.contact {
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: linear-gradient(145deg, #0f0f0f, #050505);
  border: 1px solid rgba(194, 153, 87, 0.2);
  padding: 5rem 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.contact h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.contact p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* =========================================
   Footer
   ========================================= */

.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* =========================================
   Animations & Reveal Classes
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-bg {
    background: radial-gradient(circle at 50% 30%, rgba(194, 153, 87, 0.15) 0%, rgba(5, 5, 5, 1) 60%);
  }

  .origin-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .section-header > p {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .bottle-area {
    height: auto;
    margin-top: 30px;
  }

  .hero-bottle-image {
    width: 100%;
    max-width: 430px;
  }

  .products {
    background-attachment: scroll;
    background-position: center top;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav.active {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .buy-button {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .contact-actions {
    flex-direction: column;
  }
}