/* ============================================
   QUINTA P.L. - STORY SECTION
   Sección Nuestra Historia
   ============================================ */

.story {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo */
.story::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(45, 122, 62, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* === CONTENIDO PRINCIPAL === */

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  max-width: 1100px;
  margin: var(--spacing-2xl) auto 0;
}

.story-text {
  padding-right: var(--spacing-xl);
}

.story-lead {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-lg);
}

.story-lead strong {
  color: var(--color-primary-dark);
}

.story-text p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-lg);
}

.story-text p strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.story-quote {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--color-primary-dark);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(45, 122, 62, 0.08) 0%, rgba(166, 124, 82, 0.08) 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--spacing-xl);
  position: relative;
}

.story-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: var(--font-heading);
  line-height: 1;
}

.story-quote em {
  font-style: normal;
  color: var(--color-secondary);
  font-weight: var(--font-weight-semibold);
}

/* === IMAGEN === */

.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.story-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.story-image::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: var(--color-secondary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.story-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.story-image:hover img {
  transform: scale(1.03);
}

/* Badge de años */
.story-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .story-content {
    gap: var(--spacing-2xl);
  }

  .story-text {
    padding-right: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .story-text {
    padding-right: 0;
    order: 2;
  }

  .story-image {
    order: 1;
    max-height: 300px;
  }

  .story-image img {
    height: 300px;
    object-fit: cover;
  }

  .story-lead {
    font-size: var(--font-size-lg);
  }

  .story-text p {
    font-size: var(--font-size-base);
  }

  .story-quote {
    font-size: var(--font-size-lg);
    padding: var(--spacing-md);
  }

  .story-quote::before {
    font-size: 3rem;
    top: -5px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .story-image {
    max-height: 250px;
  }

  .story-image img {
    height: 250px;
  }

  .story-quote {
    font-size: var(--font-size-base);
  }
}
