/* -------------------------------------------------------------
   DOMINIO DEL LIFTADO - STYLESYSTEM
   Design system for Rafa Nadal's premium Jumilla wine project
   ------------------------------------------------------------- */

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

:root {
  /* Color Tokens */
  --bg-dark: #010101;
  --bg-dark-card: #111111;
  --text-dark: #ffffff;
  --text-dark-muted: #a0a09c;
  
  --bg-light: #f4f3ec;
  --bg-light-card: #eae8df;
  --text-light: #151514;
  --text-light-muted: #6e6c64;
  
  --gold: #c5a880;
  --gold-hover: #e0caaa;
  --terracotta: #a86d44;
  --terracotta-hover: #c48b5f;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;
  
  --navbar-height: 90px;
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
  
  --border-dark: rgba(197, 168, 128, 0.15);
  --border-light: rgba(168, 109, 68, 0.15);
  
  --container-width: 1400px;
}

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

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

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

body.theme-light {
  background-color: var(--bg-light);
  color: var(--text-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
}

p {
  font-weight: 300;
}

/* Layout Containers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* --- HEADER & NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #000000;
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition-medium);
}


/* Scrolled Navbar Style */
.navbar.scrolled {
  background-color: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-dark);
  height: 80px;
}


.navbar-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}
.navbar-container > .logo { justify-self: start; }
.navbar-container > .nav-menu { justify-self: center; }
.navbar-container > .lang-selector { justify-self: end; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  height: 35px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  padding: 10px 0;
  opacity: 0.75;
}

.nav-link:hover {
  opacity: 1;
}

/* Underline link effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  opacity: 1;
}

/* Lang Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-dropdown:hover .dropdown-menu {
  display: block !important;
}
.lang-toggle::after {
  display: none !important;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-hamburger {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--text-dark);
  position: relative;
  transition: background-color 0.3s;
}



.menu-hamburger::before,
.menu-hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: inherit;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.menu-hamburger::before { top: -6px; }
.menu-hamburger::after { top: 6px; }

/* Hamburger open state */
.menu-toggle.active .menu-hamburger {
  background-color: transparent;
}
.menu-toggle.active .menu-hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-toggle.active .menu-hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Responsive Nav Menu */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  

  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
}

/* --- HERO SECTIONS --- */

/* Hero type 1 (Dark Home) */
.hero-dark {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.05);
  transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dark:hover .hero-bg-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,7,0.5) 0%, rgba(7,7,7,0.2) 50%, rgba(7,7,7,1) 95%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Aboreto', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.play-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.play-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--gold);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-medium);
}

.play-btn:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.play-btn:hover::before {
  opacity: 0.15;
  transform: scale(1);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  z-index: 2;
  margin-left: 3px;
  transition: fill 0.3s;
}

/* Hero type 2 (Light Collage for Historia/Productos) */
.hero-light-collage {
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-collage-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 992px) {
  .hero-light-collage {
    padding-bottom: 40px;
  }
  .hero-collage-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-collage-text {
  max-width: 550px;
}

.hero-collage-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.hero-collage-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .hero-collage-title {
    font-size: 2.5rem;
  }
}

.hero-collage-desc {
  font-size: 1.05rem;
  color: var(--text-light-muted);
  line-height: 1.7;
}

.hero-collage-images {
  position: relative;
  height: 550px;
  width: 100%;
}

.collage-img-main {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  z-index: 2;
}

/* Subtle decorative frames in background */
.collage-decoration {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-light);
  pointer-events: none;
  z-index: 1;
  transform: translate(-15px, 15px);
}

/* --- COMMON CONTENT SECTIONS --- */
.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* Fine structural vertical lines */
.structural-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-dark);
  z-index: 1;
}

body.theme-light .structural-line {
  background-color: var(--border-light);
}

.line-left { left: 10%; }
.line-right { right: 10%; }

/* Segment block with grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Left panel text card */
.text-panel {
  grid-column: span 4;
}

.text-panel.panel-right {
  grid-column: 9 / span 4;
}

@media (max-width: 992px) {
  .text-panel, .text-panel.panel-right {
    grid-column: 1 / -1;
  }
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

body.theme-light .section-label {
  color: var(--terracotta);
}

.section-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 25px;
  font-weight: 300;
}

body.theme-light .section-title {
  color: var(--text-light);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

body.theme-light .section-desc {
  color: var(--text-light-muted);
}

/* Quote/Highlight texts */
.quote-highlight {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
}

body.theme-light .quote-highlight {
  color: var(--terracotta);
  border-left-color: var(--terracotta);
}

/* Side quotes panels */
.side-quotes {
  grid-column: span 3;
}

.side-quotes.quotes-right {
  grid-column: 10 / span 3;
}

@media (max-width: 992px) {
  .side-quotes, .side-quotes.quotes-right {
    grid-column: 10 / span 3;
    display: none; /* Hide decorative quotes columns on tablet/mobile */
  }
}

.quote-block {
  margin-bottom: 40px;
}

.quote-small-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dark-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

body.theme-light .quote-small-title {
  color: var(--text-light-muted);
}

.quote-small-text {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

body.theme-light .quote-small-text {
  color: var(--text-light);
}

/* Image panels */
.image-panel {
  grid-column: 5 / span 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 992px) {
  .image-panel {
    grid-column: 1 / -1;
    margin: 20px 0;
  }
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.image-element {
  width: 100%;
  height: auto;
  transition: var(--transition-slow);
}

.image-wrapper:hover .image-element {
  transform: scale(1.04);
}

/* Layout Variation: Centered Block */
.section-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-centered-image {
  max-width: 700px;
  margin: 40px auto;
}

/* Sub-header decoration */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.divider-line {
  height: 1px;
  width: 80px;
  background-color: var(--border-dark);
}

body.theme-light .divider-line {
  background-color: var(--border-light);
}

.divider-icon {
  color: var(--gold);
}

body.theme-light .divider-icon {
  color: var(--terracotta);
}

/* Scroll Fade Animation Helper */
.fade-up-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-trigger.animated {
  opacity: 1;
  transform: translateY(0);
}

/* --- PRODUCT PAGE DETAILS --- */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: calc(var(--navbar-height) + 40px);
}

@media (max-width: 992px) {
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.product-image-container {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 120px;
  padding: 20px;
}

.product-image-card {
  max-width: 500px;
  position: relative;
}

.product-info-card {
  max-width: 600px;
}

.product-meta-attributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 480px) {
  .product-meta-attributes {
    grid-template-columns: 1fr;
  }
}

.attribute-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background-color: var(--bg-light-card);
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.attribute-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.attribute-icon {
  color: var(--terracotta);
  flex-shrink: 0;
}

.attribute-details {
  display: flex;
  flex-direction: column;
}

.attribute-label {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attribute-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Purchase Actions block */
.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
}

.btn-primary {
  background-color: var(--text-light);
  color: var(--bg-light);
}

.btn-primary:hover {
  background-color: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 109, 68, 0.2);
}

.btn-outline {
  background: none;
  border: 1px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-text-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-text-link:hover {
  color: var(--terracotta);
}

/* Timeline/Slider for Añadas */
.timeline-section {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  margin-top: 40px;
  display:none;
}

.timeline-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.timeline-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

/* Horizontal line bar */
.timeline-track-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--terracotta);
  z-index: 2;
  transition: width var(--transition-medium);
}

.timeline-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 2px solid var(--text-light-muted);
  transition: var(--transition-fast);
}

.timeline-node:hover .timeline-dot,
.timeline-node.active .timeline-dot {
  border-color: var(--terracotta);
  background-color: var(--terracotta);
  transform: scale(1.3);
}

.timeline-node.active .timeline-dot {
  box-shadow: 0 0 10px rgba(168, 109, 68, 0.4);
}

.timeline-year {
  font-size: 0.85rem;
  margin-top: 12px;
  color: var(--text-light-muted);
  font-weight: 500;
  transition: var(--transition-fast);
}

.timeline-node:hover .timeline-year,
.timeline-node.active .timeline-year {
  color: var(--terracotta);
  font-weight: 600;
}

/* Panoramic overlay section at bottom */
.panoramic-section {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0px;
}

.panoramic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  z-index: 1;
}

.panoramic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(244, 243, 236, 0.6) 0%, rgba(244, 243, 236, 0) 50%, rgba(184, 134, 95, 0.2) 100%);
  z-index: 2;
}

.panoramic-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.panoramic-title {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.panoramic-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 500;
}

.panoramic-desc {
  font-size: 0.95rem;
  color: var(--text-light-muted);
  line-height: 1.7;
}

/* Solid Terracotta Block at bottom of pages */
.terracotta-bar {
  background-color: #ba8159;
  height: 250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terracotta-bar::after {
  content: '✦';
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.5rem;
}

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  max-width: 1050px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.contact-info {
  max-width: 550px;
}

.contact-title {
  font-family: 'Aboreto', sans-serif;
  font-size: 1.15rem;
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-icon {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-detail-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 5px;
}

.contact-detail-value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.contact-form-container {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 50px;
  border-radius: 4px;
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 30px 20px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
  transition: border-color var(--transition-fast);
  outline: none;
}

textarea.form-input {
  resize: none;
  height: 120px;
}

.form-label {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  font-weight: 300;
  pointer-events: none;
  transition: transform 0.3s, color 0.3s, font-size 0.3s;
  transform-origin: left;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-22px) scale(0.8);
  color: var(--gold);
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.btn-submit {
  width: 100%;
  background-color: var(--gold);
  color: var(--bg-dark);
  font-weight: 600;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--gold-hover);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 168, 128, 0.25);
}

/* Form success message */
.form-success-message {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.success-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.success-desc {
  color: var(--text-dark-muted);
}

/* --- FOOTER (MATCHING footer.jpg) --- */
.footer {
  background-color: #000000;
  padding: 80px 0;
  color: #ffffff;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* top line */
}

body.theme-light .footer {
  background-color: #000000; /* remains black for consistency */
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }
}

.footer-col-logo {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .footer-col-logo {
    justify-content: center;
  }
}

/* Center menu column */
.footer-col-menu {
  display: flex;
  justify-content: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start; /* left-aligned text */
}

@media (max-width: 768px) {
  .footer-nav {
    align-items: center;
  }
}

.footer-nav-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-nav-link:hover,
.footer-nav-link.active {
  color: #ffffff;
}

/* Right legal column */
.footer-col-legal {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .footer-col-legal {
    justify-content: center;
  }
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start; /* left-aligned text */
}

@media (max-width: 768px) {
  .footer-legal {
    align-items: center;
  }
}

.footer-legal-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-legal-link:hover {
  color: #ffffff;
}

/* --- LIGHTBOX & MODALS --- */

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s;
  padding: 10px;
}

.modal-close-btn:hover {
  opacity: 1;
}

/* Video Modal */
.video-modal-content {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  background-color: #000;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active .video-modal-content {
  transform: scale(1);
}

.video-placeholder-container {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.video-placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

.video-pulse-animation {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Gallery Lightbox */
.gallery-modal-content {
  width: 90%;
  max-width: 1200px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .gallery-modal-content {
  transform: scale(1);
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-slides-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-slide-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background-color: #111;
}

.gallery-caption {
  color: #fff;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.gallery-nav-btn:hover {
  background-color: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.gallery-prev-btn { left: 20px; }
.gallery-next-btn { right: 20px; }

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.theme-light .page-transition-overlay {
  background-color: var(--bg-light);
}

.page-transition-overlay.animating {
  opacity: 1;
}

/* --- HOME PAGE (TERRENO) EXCLUSIVE STYLES --- */
.home-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.home-decor-line {
  position: absolute;
  top: 140px; /* Align with top of text/symbol */
  width: 1.5px;
  height: 130px; /* Approximately height of title+paragraph */
  background-color: var(--gold);
  z-index: 5;
}

.home-decor-left {
  left: 40px;
}

.home-decor-right {
  right: 40px;
}

.home-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}

.home-col-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  z-index: 2;
  padding: 30px 0;
}

.home-col-center {
  text-align: center;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  z-index: 2;
  padding: 30px 0;
}

.right-bottom-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Tighter spacing between paragraph, line, and quote */
}

/* Image styles */
.center-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 2px;
  transition: var(--transition-slow);
}


.center-img:hover {
  transform: scale(1.01);
}

/* Title and typography styles for left col */
.section-title-left {
  font-family: 'Aboreto', sans-serif;
  font-size: 2.25rem;
  letter-spacing: -0.05em;
  line-height: 1.4;
  margin-bottom: 8px; /* Tighter vertical spacing */
  color: var(--text-dark);
  text-transform: uppercase;
  display: inline-block;
}

.desc-left-col {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 100;
  max-width: 400px;
  margin-left: 0;
}

/* Right column styles */
.symbol-wrapper-right {
  margin-bottom: 20px;
}

.symbol-img {
  width: 120px;
  height: auto;
}

.quote-right-col-small {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #ffffff; /* White color */
  line-height: 1.4;
  font-weight: 100;
  margin-bottom: 4px;
}

.quote-right-col-large {
  font-family: 'Aboreto', sans-serif;
  font-size: 1.3rem;
  color: #ffffff; /* White color */
  line-height: 1.6;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-top: 4px;
}

/* Column Line Dividers */
.line-left-col {
  height: 0.8px;
  width: 92%; /* Occupies almost the entire title width */
  background-color: #ffffff; /* White color */
  margin: 0 0 12px 0; /* Tighter vertical spacing */
}

.line-right-col {
  height: 1px;
  width: 60px;
  background-color: rgba(197, 168, 128, 0.25);
  margin: 20px 0;
}

/* Custom Line with Circle Dot on the Left */
.line-with-dot {
  display: flex;
  align-items: center;
  margin: 12px 0; /* Tighter vertical spacing */
  width: 100%;
}

.line-with-dot .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 0.8px solid #ffffff; /* White dot border */
  background-color: transparent;
  margin-right: 8px;
  flex-shrink: 0;
}

.line-with-dot .line {
  flex-grow: 1;
  height: 1.5px;
  background-color: #ffffff; /* White line */
  max-width: 180px;
}

/* Centered content layout (Sections 3 & 4) */
.home-centered-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  padding: 40px 0;
}

.centered-title {
  font-family: 'Aboreto', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.centered-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 20px auto 40px;
  border-radius: 2px;
}

.centered-desc {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 20px;
}

.centered-line {
  height: 1px;
  width: 100%;
  max-width: 530px;
  background-color: #ffffff;
  margin: 25px auto;
}

.centered-quote {
  font-family: 'Aboreto', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  border-bottom: 1.5px solid var(--gold);
  display: inline-block;
  padding-bottom: 6px;
  text-transform: uppercase;
}

/* Section 3 & 4 short vertical decorative lines (aligning with margins) */
.section-decor-line {
  position: absolute;
  top: 40px; /* Align near the top center elements */
  width: 1.5px;
  height: 155px; /* Taller than symbol + title block */
  background-color: var(--gold);
  z-index: 5;
}

.section-decor-left {
  left: 40px;
}

.section-decor-right {
  right: 0;
}

/* Full section divider touching outer vertical margins */
.full-section-divider {
  height: 1px;
  background-color: #8cc63f;
  margin: 60px -40px; /* pull it to touch the vertical guide lines exactly */
  z-index: 2;
  position: relative;
}

/* Centered symbols */
.symbol-wrapper-centered {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.symbol-centered-img {
  width: 48px;
  height: auto;
}

/* Section divider with symbol in center (still used between Sec 1 and 2) */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 60px 0;
  z-index: 2;
  position: relative;
}

.divider-line-half {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(197, 168, 128, 0.15);
}

.divider-symbol-img {
  width: 32px;
  height: auto;
  margin: 0 25px;
  opacity: 0.8;
}

/* Section 4 Stacking Vintage List (replacing border box toggle) */
.vintage-list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 240px;
  margin: 30px auto;
  position: relative;
  z-index: 3;
}

.vintage-list-line {
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.18);
}

.vintage-list-item {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.vintage-list-item:hover {
  color: #ffffff;
}

.vintage-list-item.active {
  color: #ffffff;
  font-weight: 700; /* Bold! */
}

.centered-quote-group {
  max-width: 800px;
  margin: 40px auto 60px;
}

.centered-quote-title {
  font-family: 'Aboreto', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.centered-quote-text {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-dark-muted);
}

.highlight-text {
  color: #ffffff;
  display: block;
  margin: 20px auto 0;
  max-width: 320px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .home-vertical-line {
    display: none;
  }
  
  .home-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
  }
  
  .home-col-left, .home-col-right {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    margin: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
  
  .right-bottom-group {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .center-img {
    padding-top: 0 !important;
    margin: 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .divider-line-left, .divider-line-right {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 60px !important;
  }
  
  .section-decor-line {
    display: none !important;
  }

  .desc-left-col, .quote-right-col-small, .quote-right-col-large {
    margin: 0 auto !important;
    text-align: center !important;
  }
  
  .line-left-col, .line-right-col {
    margin: 15px auto !important;
  }
  
  .line-with-dot {
    justify-content: center;
  }
  
  .line-with-dot .line {
    max-width: 120px;
  }
  
  .home-section {
    padding: 40px 0 !important;
    margin-top: 0 !important;
  }
  
  .section-divider {
    margin: 40px 0;
  }
}


/* --- HISTORIA PAGE STYLES --- */
.historia-page h1,
.historia-page h2,
.historia-page h3,
.historia-page h4,
.historia-page .section-title,
.historia-page .hero-collage-title {
  font-family: 'Aboreto', cursive, sans-serif !important;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.historia-page-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.historia-hero {
  position: relative;
  padding-top: 90px; /* Aligns history-header-1.jpg directly touching the navbar */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--bg-light);
  overflow: visible;
}

.historia-hero-bg {
  width: 100%;
  max-width: 1200px;
  height: 580px; /* Increased from 480px */
  overflow: hidden;
  position: relative;
}

.historia-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia-hero-fg-wrapper {
  position: relative;
  margin-top: -415px; /* Pulls image up, adjusted 60px down from previous -475px */
  width: 480px; /* Increased by 100px */
  height: 630px; /* Scaled proportionally */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.historia-fg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.historia-hero-title {
  position: absolute;
  top: 22%; /* lowered the title */
  margin-top: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 20;
  letter-spacing: 0.35em;
  font-family: 'Aboreto', sans-serif;
  text-align: center;
  width: max-content;
  white-space: nowrap;
  line-height: 1.2;
}

/* Decorative Vertical Lines for Historia Page */
.historia-line-left {
  position: absolute;
  left: calc(50% - 465px); /* shifted 50px further left to open space */
  top: 720px; /* moved down 20px to keep bottom aligned while reducing height */
  width: 1px;
  height: 165px; /* reduced by 20px */
  background-color: #cb9161;
  z-index: 5;
}

.historia-line-right {
  position: absolute;
  right: calc(50% - 465px); /* shifted 50px further right to open space */
  top: 700px; /* starts vertically with a 30px gap below the background image */
  width: 1px;
  height: 1030px; /* extended to end slightly below the bottom of the first section content */
  background-color: #cb9161;
  z-index: 5;
}

.historia-line-right-branch {
  position: absolute;
  top: 998px; /* aligned perfectly with the bottom edge of the paragraph / left image */
  right: 0;
  width: 60px;
  height: 1px;
  background-color: #cb9161;
}

/* Grid Sections */
.historia-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--bg-light);
  width: 100%;
}

.historia-page .container {
  max-width: 1200px;
  padding: 0;
}

@media (max-width: 768px) {
  .historia-page .container {
    padding: 0 20px;
  }
}

.historia-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 1200px) {
  .historia-grid {
    grid-template-columns: 620px 1fr; /* Aligned with mockup width ratio (~52% image) */
    column-gap: 70px; /* Reduced from 120px to bring text block closer to the image */
    align-items: flex-end; /* Aligns both columns by the bottom edge */
  }
}

.historia-col-img {
  display: flex;
  justify-content: flex-start; /* Aligns image to the left edge of the column to align with header bg */
}

.historia-sec-img {
  width: 100%;
  max-width: 620px; /* Increased from 420px to match mockup proportions */
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.historia-col-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.historia-sec-title {
  font-size: 1.55rem; /* Reduced by 1.5 points (approx 1 point in pt) */
  margin-bottom: 20px; /* Reduced margin */
  color: var(--text-light);
  letter-spacing: 0.12em;
  line-height: 1.22; /* Reduced interline-height */
}

.historia-sec-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; /* Changed from Semibold (600) to Medium (500) */
  font-style: normal;
  font-size: 0.95rem; /* Reduced by 1 point (from 1.05rem to 0.95rem) */
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 95%;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.historia-sec-paragraph {
  margin-left: 35px;
  color: var(--text-light-muted);
  font-size: 0.80rem; /* Reduced to exactly 0.80rem */
  line-height: 1.2; /* Tighter line height matching mockup */
}

.historia-sec-paragraph p {
  margin-bottom: 12px;
}

/* Philosophy Section Spec */
.filosofia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (min-width: 1200px) {
  .filosofia-grid {
    grid-template-columns: 490px 1fr; /* 490px text column, remaining for image */
    column-gap: 40px;
    align-items: flex-start; /* Align top edges to match mockup */
  }
}

.filosofia-col-left {
  position: relative;
  z-index: 1;
}

.filosofia-col-right {
  position: relative;
  z-index: 5; /* overlaps on top of .tierra-img */
}

.tierra-img-wrapper {
  width: 100%;
  margin-top: -50px; /* lowered by 30px to match mockup layout precisely */
  margin-bottom: 20px; /* spacing below soil image before the text starts */
  position: relative;
  z-index: 1;
}

.tierra-img {
  width: calc(100% + 42px); /* extends to touch and slightly overlap historia-2.jpg to prevent any gaps */
  max-width: none; /* override global max-width: 100% to allow it to expand into the gap */
  margin-left: 0; /* align with the left edge of the previous section image */
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* blends the white background into the cream page background */
  position: relative;
  z-index: 1;
}

.tall-img {
  max-width: 670px; /* increased from 440px to match mockup proportions */
  width: 100%;
  border: 1px solid var(--border-light);
}

/* Philosophy Corner Line (L-shape) */
.filosofia-text-container {
  position: relative;
  z-index: 10; /* render on top of the soil image */
  margin-left: 60px; /* shift the text column to the right, closer to historia-2.jpg */
}

.filosofia-text-container .historia-sec-paragraph {
  margin-left: 70px; /* paragraph starts after the shorter horizontal line */
}

.filosofia-text-container .corner-line-wrapper {
  position: relative;
  margin-left: 0; /* starts at left edge of the shifted text container */
  width: 70px; /* reduced horizontal green line length matching paragraph start */
  height: 35px; /* vertical line height going down */
  margin-bottom: 25px;
  margin-top: 25px;
}

.corner-line-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #a8b877; /* green line at the top */
}

.corner-line-vertical {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%; /* spans full height of the wrapper, going down */
  background-color: #a8b877; /* green line on the left */
}

/* Gallery / Barrel Section */
.gallery-hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.gallery-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.gallery-title {
  font-size: 2.2rem;
  letter-spacing: 0.25em;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-family: 'Aboreto', sans-serif;
}

.gallery-line-white {
  width: 180px;
  height: 1px;
  background-color: #ffffff;
  margin-bottom: 30px;
}

.gallery-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 15px 40px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

/* Bounding lines around the barrel block */
.gallery-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.gallery-hero-line-left {
  position: absolute;
  left: 40px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: #a8b877; /* green lines descending */
  z-index: 5;
}

.gallery-hero-line-right {
  position: absolute;
  right: 40px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: #a8b877; /* green lines descending */
  z-index: 5;
}

/* Terracotta bottom block */
.terracotta-bottom-block {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* rompe cualquier contenedor padre */
  height: 180px;
  background-color: #d59566;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.terracotta-inner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rectángulo interior bordeado (visible en el boceto) */
.terracotta-border-rect {
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* Vertical lines continuing inside terracotta block in white */
.terracotta-line-left {
  position: absolute;
  left: 40px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
}

.terracotta-line-right {
  position: absolute;
  right: 40px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
}

.bottom-symbol-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 15;
}

.symbol-horizontal-line {
  width: 120px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.55);
}

.cruceta-symbol {
  width: 32px;
  height: auto;
}

@media (max-width: 992px) {
  .historia-grid, .filosofia-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .tall-img, .historia-sec-img {
    max-width: 100%;
  }
  .tierra-img-wrapper {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .tierra-img {
    width: 100%;
    margin-left: 0;
  }
  .historia-sec-paragraph {
    margin-left: 0;
  }
  .filosofia-text-container {
    margin-left: 0;
  }
  .filosofia-text-container .historia-sec-paragraph {
    margin-left: 0;
  }
  .corner-line-wrapper {
    margin-left: 0;
  }
  .filosofia-text-container .corner-line-wrapper {
    display: none;
  }
  .historia-line-left, .historia-line-right,
  .gallery-hero-line-left, .gallery-hero-line-right,
  .terracotta-line-left, .terracotta-line-right {
    display: none;
  }
  .historia-hero-fg-wrapper {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 3/4;
    margin-top: -160px;
  }
  .historia-hero-bg {
    height: 300px;
  }
  .historia-hero-title {
    font-size: 1.2rem;
  }
}

/* ==============================================
   PRODUCT PAGE — NUEVO LAYOUT
   ============================================== */

.prod-main-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  padding-top: calc(var(--navbar-height) + 60px);
  padding-bottom: 80px;
}

.prod-line-left,
.prod-line-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(168, 109, 68, 0.22);
  z-index: 0;
}
.prod-line-left  { left: 40px; }
.prod-line-right { right: 40px; }

.prod-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .prod-grid { grid-template-columns: 1fr; gap: 40px; }
}

.prod-col-bottle {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.prod-bottle-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

.prod-col-info { padding-top: 0; padding-right:20px; }

.prod-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-style: normal;
  color: var(--text-light);
  font-size: 2rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 25px;
  text-transform: uppercase;
  margin-left:-250px;
}

.prod-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.prod-attributes {
  margin-left:-250px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.prod-attr-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prod-attr-icon {
  color: var(--text-light-muted);
  flex-shrink: 0;
  display: flex;
}

.prod-attr-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 3px;
}

.prod-attr-value {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.2;
  transition: opacity 0.25s ease;
}

.prod-section-label {
font-family: 'Aboreto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

.prod-desc {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.75;
}



@media (max-width: 992px) {
.prod-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-style: normal;
  color: var(--text-light);
  font-size: 2rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 25px;
  text-transform: uppercase;
  margin-left:0px;
}


.prod-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  margin-left:0px; max-width: 100%;
}

}


/* ==============================================
   SECCIÓN PANORÁMICA PRODUCTOS
   Ocupa el mismo ancho que el contenedor (1200px)
   La capa blanca se alinea con la columna botella
   ============================================== */

.prod-panoramic-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display:none;
}

/* Las líneas laterales continúan desde prod-main-wrapper */
.prod-panoramic-wrapper .prod-line-left,
.prod-panoramic-wrapper .prod-line-right {
  top: 0;
  bottom: 0;
}

/* La imagen sobresale ~100px por cada lado del contenedor */
.prod-panoramic {
  position: relative;
  width: calc(100% + 200px);
  margin-left: -100px;
  height: 460px;
  overflow: hidden;
}

.prod-panoramic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Grid interior: compensamos el bleed de -100px para alinear con la columna botella de arriba.
   La capa blanca empieza en el borde izquierdo del contenedor (no del bleed) */
.prod-panoramic-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px;   /* compensa el margin-left: -100px del padre */
  right: 100px;  /* compensa el ancho extra por la derecha */
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

/* Columna izquierda: capa blanca semiopaca alineada con la botella */
.prod-panoramic-overlay {
  background-color: rgba(244, 243, 236, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 56px 50px 40px;
}

/* Columna derecha: transparente, imagen se ve */
.prod-panoramic-col-right { /* vacío, solo ocupa espacio */ }

.prod-panoramic-title {
  font-family: 'Aboreto', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.prod-panoramic-subtitle {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.prod-panoramic-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0.85;
}

@media (max-width: 992px) {
  .prod-panoramic-grid { grid-template-columns: 1fr; gap: 0; }
  .prod-panoramic { height: auto; }
  .prod-panoramic-overlay { padding: 40px 24px; }
  .prod-panoramic-col-right { display: none; }
}

/* ==============================================
   TERRACOTTA BOTTOM BLOCK (compartido historia/productos)
   ============================================== */
.terracotta-bottom-block {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 180px;
  background-color: #d59566;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.terracotta-inner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terracotta-border-rect {
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

.terracotta-line-left {
  position: absolute;
  left: 40px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
}

.terracotta-line-right {
  position: absolute;
  right: 40px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
}

.bottom-symbol-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 15;
}

.symbol-horizontal-line {
  width: 120px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.55);
}

.cruceta-symbol {
  width: 32px;
  height: auto;
}
