:root {
  --hero-bg-1: #5c1f12;
  --hero-bg-2: #742d1f;
  --hero-bg-3: #4a190f;
}

/* ------- HERO ------- */
.hero {
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(225deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 40%, var(--hero-bg-3) 100%);
    padding: var(--space-xl);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero__eyebrow {
    font-size: var(--fs-300);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-size: var(--fs-900);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.hero__title em {
  color: var(--color-accent);
  font-style: italic;
}

.hero__text {
    color: rgba(253, 246, 236, 0.85);
    font-size: var(--fs-500);
    max-width: 46ch;
    margin-bottom: var(--space-lg);
}

.hero__text strong {
    color: var(--color-white);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg) var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(253, 246, 236, 0.15);
}

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

.hero__stat-number {
    font-family: var(--font-display);
    font-size: var(--fs-700);
    color: var(--color-accent);
}

.hero__stat-label {
    font-size: var(--fs-300);
    color: rgba(253, 246, 236, 0.75);
}

/* imagen */
.hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Degradado*/
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #5c1f12 0%, transparent 35%);
}


/* ------- NUESTRA HISTORIA ------- */
.history {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-xl);
    align-items: center;
}

.history__visual {
    max-width: 420px;
    margin-inline: auto;
}

.history__visual img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.history__caption {
    margin-top: var(--space-md);
    padding-left: var(--space-md);
    border-left: 3px solid var(--hero-bg-2);
    font-size: var(--fs-300);
    font-style: italic;
    color: var(--color-muted);
}

.history__content p {
    margin-bottom: var(--space-md);
}

.history__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-600);
    color: var(--color-primary);
}


/* ------- MEDIAS QUERIES ------- */
@media (max-width: 820px) {
    .hero {
        padding-inline: 0;
        padding-bottom: 0;
    }

    .hero__content,
    .history__content {
        padding-inline: var(--space-md);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero__visual{
        position: relative;
        width: auto;
        height: 300px;
        margin-inline: calc(-1 * var(--space-lg));
    }

    .hero__visual img {
        border-radius: 0;
    }

    .hero__visual::before {
        background: linear-gradient(to bottom, #5a2115 0%, transparent 40%);
    }


    .history {
        grid-template-columns: 1fr;
    }

    .history__visual {
        max-width: 340px;
        order: 2;
    }
}

@media (max-width: 560px) {
    .hero__content,
    .history__content {
        padding-inline: var(--space-sm);
    }

    .hero__visual {
        margin-inline: calc(-1 * var(--space-md));
    }
}

