/* Variables de Colores */
:root {
  --color-primary: #4A6FA5;
  --color-secondary: #7BA098;
  --color-dark: #2E4057;
  --color-brown: #C8B89A;
  --color-terracotta: #5BA3A3;
  --color-light: #F5F5F0;
  --color-white: #FFFFFF;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(245, 245, 240, 0.7);
  animation: fadeInDown 0.8s ease;
}

.navbar.scrolled {
  background: var(--color-light);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-light) 0%, #E8EEF2 100%);
  overflow: hidden;
  padding: 4rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(74, 111, 165, 0.03) 10px, rgba(74, 111, 165, 0.03) 20px);
  pointer-events: none;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo {
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
  animation: logoZoomIn 1s ease;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.3s both;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  text-align: center;
}

/* CTA Button */
.cta-button {
  position: relative;
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.7s both;
  box-shadow: 0 10px 30px rgba(74, 111, 165, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 111, 165, 0.4);
}

.cta-button span {
  position: relative;
  z-index: 2;
}

.cta-button .ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover .ripple {
  width: 300px;
  height: 300px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

/* Secciones */
.section {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section:nth-child(even) {
  background: var(--color-light);
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--color-primary);
  text-align: center;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.section-description-intro {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-secondary);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.section-cta-text {
  font-size: 1rem;
  color: var(--color-brown);
  font-weight: 400;
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(74, 111, 165, 0.1);
}

.filter-btn:hover {
  background: rgba(74, 111, 165, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.filter-btn.active:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Sección de Registro */
.section-registro {
  background: var(--color-white);
  position: relative;
}

.section-registro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(74, 111, 165, 0.02) 15px, rgba(74, 111, 165, 0.02) 30px);
  pointer-events: none;
}

/* Typeform Embed Styles */
[data-tf-live] {
  width: 100%;
  height: 600px;
  max-height: 80vh;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

[data-tf-live] iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.typeform-container {
  min-height: 600px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.typeform-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.05) 0%, rgba(123, 160, 152, 0.05) 100%);
  border-radius: 10px;
  border: 2px dashed var(--color-primary);
}

.typeform-placeholder p {
  font-size: 1.2rem;
  color: var(--color-brown);
  font-style: italic;
}

/* Sección de Historia / Productos */
.section-historia {
  background: var(--color-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.product-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 245, 240, 0.3) 0%, rgba(232, 238, 242, 0.3) 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(74, 111, 165, 0.02) 15px, rgba(74, 111, 165, 0.02) 30px);
  pointer-events: none;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
  background: var(--color-white);
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-description {
  color: var(--color-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Personalization Banner */
.personalization-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(74, 111, 165, 0.3);
  max-width: 900px;
  margin: 0 auto;
}

.banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.banner-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.banner-content p {
  color: var(--color-white);
  opacity: 0.95;
  line-height: 1.6;
  font-size: 1rem;
}

/* Stagger animation delays para productos */
.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.3s; }
.product-card:nth-child(5) { transition-delay: 0.4s; }
.product-card:nth-child(6) { transition-delay: 0.5s; }
.product-card:nth-child(7) { transition-delay: 0.6s; }

/* Sección de Recetas - Slider */
.section-recetas {
  background: linear-gradient(135deg, #F9F6F0 0%, var(--color-light) 100%);
  position: relative;
}

.section-recetas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(74, 111, 165, 0.02) 20px, rgba(74, 111, 165, 0.02) 40px);
  pointer-events: none;
}

.slider-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 60px;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.recipe-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  overflow: hidden;
}

.recipe-card.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.recipe-header {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image {
  transform: scale(1.05);
}

.recipe-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.recipe-body {
  padding: 2.5rem;
}

.recipe-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.recipe-ingredients {
  margin-bottom: 2rem;
}

.recipe-ingredients h4 {
  font-family: 'Playfair Display', serif;
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.recipe-ingredients ul {
  list-style: none;
  padding: 0;
}

.recipe-ingredients li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-dark);
}

.recipe-ingredients li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.recipe-instructions {
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
}

.recipe-instructions p {
  color: var(--color-dark);
  line-height: 1.8;
  margin: 0;
}

/* Slider buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(123, 160, 152, 0.4);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-brown);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  opacity: 1;
  background: var(--color-primary);
  transform: scale(1.2);
}

.dot:hover {
  opacity: 0.7;
}

/* Sección de Proceso */
.section-proceso {
  background: var(--color-light);
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.proceso-item {
  position: relative;
  aspect-ratio: 1;
  min-height: 280px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.9);
}

.proceso-item.visible {
  opacity: 1;
  transform: scale(1);
}

.proceso-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.proceso-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Diferentes gradientes para cada item */
.proceso-item[data-step="1"] .proceso-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brown) 100%);
}

.proceso-item[data-step="2"] .proceso-placeholder {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.proceso-item[data-step="3"] .proceso-placeholder {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-brown) 100%);
}

.proceso-item[data-step="4"] .proceso-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.proceso-item[data-step="5"] .proceso-placeholder {
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-terracotta) 100%);
}

.proceso-item[data-step="6"] .proceso-placeholder {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-brown) 100%);
}

.proceso-number {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.proceso-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 44, 44, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  overflow-y: auto;
}

.proceso-item:hover .proceso-overlay {
  opacity: 1;
}

.proceso-overlay h3 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.proceso-overlay p {
  color: var(--color-light);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Stagger animation para proceso items */
.proceso-item:nth-child(1) { transition-delay: 0s; }
.proceso-item:nth-child(2) { transition-delay: 0.1s; }
.proceso-item:nth-child(3) { transition-delay: 0.2s; }
.proceso-item:nth-child(4) { transition-delay: 0.3s; }
.proceso-item:nth-child(5) { transition-delay: 0.4s; }
.proceso-item:nth-child(6) { transition-delay: 0.5s; }

/* Lightbox/Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  background: var(--color-white);
  max-width: 600px;
  width: 90%;
  border-radius: 20px;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--color-secondary);
  transform: rotate(90deg);
}

.lightbox-body {
  padding: 4rem 3rem;
  text-align: center;
}

.lightbox-image {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 10px;
}

.lightbox-number {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.lightbox-description {
  color: var(--color-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Sección de Tracking */
.section-tracking {
  background: var(--color-white);
}

.tracking-content {
  max-width: 900px;
  margin: 0 auto;
}

.tracking-form {
  margin-bottom: 3rem;
}

.tracking-input-group {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

#tracking-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

#tracking-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1);
}

#tracking-input::placeholder {
  color: var(--color-brown);
  opacity: 0.6;
}

.tracking-btn {
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tracking-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 160, 152, 0.3);
}

.tracking-error {
  color: var(--color-terracotta);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

/* Tracking Results */
.tracking-results {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.tracking-results.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tracking-timeline {
  margin-bottom: 3rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 45px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--color-light);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item.completed .timeline-marker {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.timeline-item.active .timeline-marker {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.4);
}

.timeline-item.pending .timeline-marker {
  background: #E0E0E0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
  font-size: 1.3rem;
  color: var(--color-white);
}

.timeline-item.pending .timeline-icon {
  color: #999;
}

/* Pulse animation for active state */
.timeline-marker.pulse {
  animation: pulse 2s infinite;
}

.timeline-content {
  flex: 1;
  padding-top: 0.3rem;
}

.timeline-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--color-brown);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.timeline-detail {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Tracking Map */
.tracking-map {
  background: var(--color-light);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid var(--color-primary);
}

.map-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.05) 0%, rgba(123, 160, 152, 0.05) 100%);
}

.map-placeholder p {
  font-size: 1.1rem;
  color: var(--color-brown);
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 245, 220, 0.2);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--color-light);
  opacity: 0.8;
  line-height: 1.6;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: var(--color-light);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-link:hover {
  color: var(--color-primary);
  opacity: 1;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-icon {
  font-size: 1.2rem;
}

.footer-contact a {
  color: var(--color-light);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0.8;
}

.footer-contact a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(245, 245, 220, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--color-light);
  font-size: 1.3rem;
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
  color: var(--color-white);
}

.social-link i {
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.1);
}

.social-icon {
  font-size: 1.5rem;
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
  color: var(--color-light);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(123, 160, 152, 0.4);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 111, 165, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(74, 111, 165, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoZoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    max-width: 650px;
    padding: 0 1rem;
    line-height: 1.65;
  }

  .hero-logo {
    width: 260px;
    height: 260px;
    margin-bottom: 1.5rem;
  }

  .logo-img {
    height: 50px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .proceso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-image-wrapper {
    height: 240px;
  }

  .personalization-banner {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--color-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .logo-img {
    height: 45px;
  }

  .hero {
    padding: 2rem 0;
    min-height: auto;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    max-width: 90%;
    padding: 0 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .typeform-container {
    padding: 2rem;
  }

  .slider-container {
    padding: 0 50px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-image-wrapper {
    height: 260px;
  }

  .personalization-banner {
    padding: 1.5rem;
  }

  .banner-content h3 {
    font-size: 1.5rem;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
  }

  .recipe-header {
    height: 250px;
  }

  .recipe-body {
    padding: 2rem;
  }

  .recipe-title {
    font-size: 1.6rem;
  }

  .proceso-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .proceso-item {
    min-height: 240px;
  }

  .proceso-number {
    font-size: 3.5rem;
  }

  .proceso-overlay {
    padding: 1.2rem;
  }

  .proceso-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .proceso-overlay p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .tracking-input-group {
    flex-direction: column;
  }

  .tracking-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 0;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 95%;
    padding: 0 0.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-logo {
    width: 170px;
    height: 170px;
    margin-bottom: 1rem;
  }

  .logo-img {
    height: 42px;
  }

  .nav-links {
    width: 80%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-logo-img {
    width: 60px;
    height: 60px;
  }

  .typeform-container {
    padding: 1.5rem;
    min-height: 500px;
  }

  .history-card {
    padding: 2rem 1.5rem;
  }

  .slider-container {
    padding: 0 40px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .recipe-header {
    height: 220px;
  }

  .recipe-body {
    padding: 1.5rem;
  }

  .recipe-title {
    font-size: 1.4rem;
  }

  .recipe-ingredients h4 {
    font-size: 1.1rem;
  }

  .lightbox-body {
    padding: 3rem 2rem;
  }

  .lightbox-image {
    max-width: 200px;
    max-height: 200px;
  }

  .lightbox-number {
    font-size: 4rem;
  }

  .lightbox-title {
    font-size: 1.5rem;
  }

  .product-image-wrapper {
    height: 220px;
    padding: 1.5rem;
  }

  .banner-content h3 {
    font-size: 1.3rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo {
    font-size: 1.1rem;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .timeline-item::before {
    left: 19px;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .proceso-item {
    min-height: 220px;
  }

  .proceso-number {
    font-size: 3rem;
  }

  .proceso-overlay {
    padding: 1rem;
  }

  .proceso-overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .proceso-overlay p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}