/* ===================================
   HISTORIA PAGE STYLES - ACOMACASA
   Elegant luxury styling inspired by Louis Vuitton
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  --color-primary: #0f0d0a;
  --color-secondary: #cf9f52;
  --color-gold: #d4c19c;
  --color-white: #ffffff;
  --color-beige: #f7f4f0;
  --color-beige-dark: #eeeae5;
  --color-text: #4a4542;
  --color-text-light: #6b6259;
  --font-primary: "Playfair Display", serif;
  --font-secondary: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===================================
   CONTAINER UTILITIES
   =================================== */
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.historia-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d2a27 0%, #0f0d0a 100%);
  background-image: url("/placeholder.svg?height=1080&width=1920"), linear-gradient(135deg, #2d2a27 0%, #0f0d0a 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 13, 10, 0.6) 0%, rgba(15, 13, 10, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: 0 2rem;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  color: var(--color-gold);
  background: rgba(212, 193, 156, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ===================================
   INTRO SECTION
   =================================== */
.historia-intro {
  padding: 8rem 2rem;
  background: var(--color-beige);
}

.intro-content {
  text-align: center;
}

.intro-year {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  opacity: 0.2;
}

.intro-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.intro-divider {
  width: 80px;
  height: 2px;
  background: var(--color-secondary);
  margin: 0 auto 2rem;
}

.intro-text {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================
   TIMELINE SECTION
   =================================== */
.historia-timeline {
  padding: 8rem 2rem;
  background: var(--color-white);
}

.timeline-heading {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 6rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Timeline center line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--color-gold);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  margin-bottom: 8rem;
  align-items: center;
}

/* Timeline marker (center dot) */
.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--color-secondary);
  border: 4px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-beige);
  z-index: 2;
  position: relative;
}

/* Left-aligned items */
.timeline-item--left .timeline-content {
  text-align: right;
  padding-right: 0;
}

.timeline-item--left .timeline-image {
  grid-column: 3;
}

/* Right-aligned items */
.timeline-item--right .timeline-content {
  text-align: left;
  padding-left: 0;
  grid-column: 3;
}

.timeline-item--right .timeline-image {
  grid-column: 1;
}

.timeline-content {
  padding: 2rem;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.timeline-text {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
}

.timeline-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.timeline-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline-image:hover img {
  transform: scale(1.05);
}

/* ===================================
   VICUÑA SECTION
   =================================== */
.vicuna-section {
  padding: 8rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.vicuna-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.vicuna-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.vicuna-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.vicuna-content {
  padding: 2rem;
}

.vicuna-tag {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  color: var(--color-gold);
  background: rgba(212, 193, 156, 0.1);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.vicuna-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.vicuna-divider {
  width: 80px;
  height: 2px;
  background: var(--color-secondary);
  margin-bottom: 2rem;
}

.vicuna-text {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.vicuna-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(212, 193, 156, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ===================================
   ARTESANÍA SECTION
   =================================== */
.artesania-section {
  padding: 8rem 2rem;
  background: var(--color-beige);
}

.artesania-header {
  text-align: center;
  margin-bottom: 5rem;
}

.artesania-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.artesania-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.artesania-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.artesania-card {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;

  /* Improve scroll rendering and prepare for JS-controlled reveal */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  opacity: 0;
  transform: translateY(20px);
}

/* Visible state applied by JS/GSAP to avoid flicker */
.artesania-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.45s ease;
}

/* Ensure internal images are GPU-accelerated for smooth transforms */
.artesania-card img {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
} 
.artesania-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-secondary) 100%);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.card-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card-text {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* ===================================
   VALORES SECTION
   =================================== */
.valores-section {
  padding: 8rem 2rem;
  background: var(--color-white);
}

.valores-heading {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 3rem;
}

/* Added animated intro text for valores section */
.valores-intro {
  max-width: 900px;
  margin: 0 auto 5rem;
  text-align: center;
}

.valores-animated-text {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
}

.animated-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 0.5rem;
}

.animated-line.visible {
  animation: fadeInUp 1s ease forwards;
}

.animated-line:nth-child(1) {
  animation-delay: 0.2s;
}

.animated-line:nth-child(2) {
  animation-delay: 0.5s;
}

.animated-line:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* </CHANGE> */

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.valor-card {
  padding: 3rem 2rem;
  border: 2px solid var(--color-beige-dark);
  border-radius: 8px;
  transition: all 0.4s ease;
  position: relative;
  background: var(--color-white);

  /* Prepare for animated reveal */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  opacity: 0;
  transform: translateY(18px);
}

.valor-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.45s ease;
}

.valor-card img {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.valor-card:hover {
  border-color: var(--color-gold);
  background: var(--color-beige);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.valor-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.2;
  margin-bottom: 1rem;
  line-height: 1;
}

.valor-title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.valor-text {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* ===================================
   CTA SECTION
   =================================== */
.historia-cta {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #2d2a27 0%, #0f0d0a 100%);
  color: var(--color-white);
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.cta-text {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.cta-btn--primary {
  background: var(--color-gold);
  color: var(--color-primary);
  border: 2px solid var(--color-gold);
}

.cta-btn--primary:hover {
  background: transparent;
  color: var(--color-gold);
  transform: translateY(-3px);
}

.cta-btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.cta-btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ===================================
   FOOTER STYLES
   =================================== */
footer {
  background: linear-gradient(180deg, #0f0d0a 0%, #1a1612 100%);
  color: #f0e8dc;
  padding: 1rem 1rem 1rem;
  margin-top: 0;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(184, 149, 106, 0.2);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(207, 159, 82, 0.4) 50%, transparent 100%);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1.5fr auto 1fr;
  gap: 0;
  margin-bottom: 2rem;
  align-items: center;
  justify-items: center;
  position: relative;
  padding: 2.5rem 2rem;
}

.footer-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 3rem;
  align-self: stretch;
  flex-shrink: 0;
}

.footer-section {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #cf9f52;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-section h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  color: #cf9f52;
  margin-bottom: 0.6rem;
  letter-spacing: 4px;
  line-height: 1.1;
  font-weight: 600;
}

.brand-desc {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: rgba(240, 232, 220, 0.9);
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0;
  position: relative;
  padding-left: 0;
}

.footer-section a,
.footer-section p {
  color: #f0e8dc;
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-section a:hover {
  color: #b8956a;
}

.reclamo-img {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
}

.reclamo-btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.copi {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  height: 100px;
  align-items: center;
  padding-top: 1rem;
}

.copi p {
  margin: 0;
  color: #f0e8dc;
  font-size: 0.95rem;
  font-weight: 300;
}

.Sabado {
  margin-top: 0.2rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 1024px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-marker {
    position: absolute;
    left: 21px;
  }

  .timeline-item--left .timeline-content,
  .timeline-item--right .timeline-content {
    text-align: left;
    padding-left: 80px;
    grid-column: 1;
  }

  .timeline-item--left .timeline-image,
  .timeline-item--right .timeline-image {
    grid-column: 1;
  }

  .vicuna-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .footer-divider {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .historia-hero {
    min-height: 600px;
  }

  .historia-intro,
  .historia-timeline,
  .vicuna-section,
  .artesania-section,
  .valores-section,
  .historia-cta {
    padding: 4rem 1.5rem;
  }

  .timeline-heading,
  .valores-heading {
    margin-bottom: 3rem;
  }

  .timeline-item {
    margin-bottom: 4rem;
  }

  .timeline-image img {
    height: 300px;
  }

  .vicuna-image img {
    height: 400px;
  }

  .vicuna-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .artesania-grid,
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}
