/* Nuestra Historia - Estilos */
.story-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.story-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background: inherit;
    z-index: 0;
}

.story-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 22, 13, 0.2), rgba(26, 22, 13, 0.6) 50%, var(--bg-dark));
    z-index: 1;
}

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

.story-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.story-hero-accent {
    color: var(--primary);
    font-style: italic;
}

.story-hero-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 300;
}

@media (min-width: 768px) {
    .story-hero-title {
        font-size: 4.5rem;
    }
}

.story-chemistry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.story-chemistry-image {
    position: relative;
}

.story-chemistry-img-wrap {
    aspect-ratio: 4/5;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--primary-border);
}

.story-chemistry-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-purity-card {
    display: none;
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: rgba(34, 29, 16, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(238, 189, 43, 0.1);
    max-width: 240px;
}

.story-purity-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.3));
}

.story-purity-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--white-pure);
}

.story-purity-desc {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.story-chemistry-text {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.story-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.story-stat-card {
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--bg-dark-alt);
    border: 1px solid var(--primary-border);
}

.story-stat-card h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.story-stat-card p {
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .story-purity-card {
        display: block;
    }
}

@media (min-width: 1024px) {
    .story-chemistry-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.story-behind {
    background: rgba(34, 29, 16, 0.5);
}

.story-behind-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.story-behind-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.story-behind-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-behind-img-wrap {
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 16/9;
    position: relative;
}

.story-behind-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.story-behind-card:hover img {
    transform: scale(1.1);
}

.story-behind-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(238, 189, 43, 0.1);
    transition: background 0.3s;
}

.story-behind-card:hover .story-behind-img-wrap::after {
    background: transparent;
}

.story-behind-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-behind-card h4 .material-symbols-outlined {
    color: var(--primary);
}

.story-behind-card p {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .story-behind-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.story-timeline {
    background: var(--bg-dark);
}

.timeline {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0 1.5rem;
    /* Eliminar display: contents */
}

.timeline-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.timeline-icon-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--bg-dark-alt);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon-dot .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.25rem;
}

.timeline-icon-line {
    width: 2px;
    flex: 1;
    min-height: 2rem;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 0.25rem;
}

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

.timeline-content {
    padding-bottom: 3rem;
}

.timeline-year {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-icon .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

.timeline-line {
    width: 2px;
    flex: 1;
    min-height: 2rem;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 0.5rem;
}

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

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.7;
}