/* Agrícola del Surco — capa espectacular */

/* Intro cinematográfico */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: #1a1f16;
  color: #fafbf8;
  transition: opacity 0.75s var(--ease), visibility 0.75s var(--ease);
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-mark {
  text-align: center;
  padding: 1.5rem;
}

.intro .brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  animation: intro-rise 0.95s var(--ease) both;
}

.intro .brand em {
  font-style: normal;
  color: var(--maize-bright);
}

.intro .line {
  width: 0;
  height: 2px;
  margin: 1.15rem auto;
  background: linear-gradient(90deg, transparent, var(--maize), transparent);
  animation: intro-line 0.85s 0.35s var(--ease) forwards;
}

.intro .tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 251, 248, 0.65);
  animation: intro-rise 0.85s 0.5s var(--ease) both;
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-line {
  to {
    width: min(240px, 48vw);
  }
}

body.intro-lock {
  overflow: hidden;
}

/* Atmósfera de grano */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Acento animado en títulos */
.section-head h2 {
  background-image: linear-gradient(90deg, var(--maize), transparent 72%);
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 0.4rem;
  transition: background-size 0.85s var(--ease);
}

.section-head.is-in h2 {
  background-size: 150px 2px;
}

/* Cinta de ubicación bajo el hero */
.place-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 220, 208, 0.55), transparent);
}

.place-ribbon p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.place-ribbon span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.place-ribbon a {
  text-decoration: none;
  white-space: nowrap;
}

/* Visítanos */
.visit {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .visit {
    grid-template-columns: 1fr;
  }
}

.visit-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.visit-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.visit-meta {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.visit-meta li {
  display: grid;
  gap: 0.15rem;
}

.visit-meta strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.map-frame {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--mist-deep);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}

/* Partner home strip */
.partner-home {
  padding: 3.5rem 0;
  background:
    linear-gradient(120deg, rgba(26, 31, 22, 0.94), rgba(61, 85, 64, 0.92)),
    var(--ink);
  color: var(--white);
}

.partner-home .eyebrow {
  color: var(--maize-bright);
}

.partner-home h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.035em;
  color: var(--white);
}

.partner-home p {
  margin: 0;
  max-width: 38rem;
  color: rgba(250, 251, 248, 0.86);
}

.partner-home .actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.partner-home .bank-lines {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.partner-home .bank-lines li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--maize);
  color: rgba(250, 251, 248, 0.9);
  font-size: 0.98rem;
  line-height: 1.45;
}

.partner-home .bank-note {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  font-size: 0.92rem;
  color: rgba(250, 251, 248, 0.72);
}

/* Product stagger */
.product-grid .product:nth-child(1) {
  transition-delay: 0.05s;
}
.product-grid .product:nth-child(2) {
  transition-delay: 0.12s;
}
.product-grid .product:nth-child(3) {
  transition-delay: 0.19s;
}
.product-grid .product:nth-child(4) {
  transition-delay: 0.08s;
}
.product-grid .product:nth-child(5) {
  transition-delay: 0.15s;
}
.product-grid .product:nth-child(6) {
  transition-delay: 0.22s;
}

/* Story image polish */
.story-visual {
  position: relative;
}

.story-visual::before {
  content: "";
  position: absolute;
  inset: auto -0.75rem -0.75rem auto;
  width: 42%;
  height: 42%;
  background: var(--maize);
  opacity: 0.35;
  z-index: -1;
}

/* Hero brand shimmer of presence */
.hero-copy {
  animation: rise 1.1s 0.15s var(--ease) both;
}

.is-home .hero-media img {
  animation: hero-zoom 16s var(--ease) forwards;
}

/* Trayectoria */
.trail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .trail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .trail {
    grid-template-columns: 1fr;
  }
}

.trail article {
  padding-top: 1rem;
  border-top: 2px solid var(--maize);
}

.trail .year {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--soil);
}

.trail h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.trail p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reputation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .reputation {
    grid-template-columns: 1fr;
  }
}

.reputation article {
  padding-left: 1rem;
  border-left: 3px solid var(--leaf);
}

.reputation strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.reputation p {
  margin: 0;
  color: var(--ink-soft);
}
