/* ========================================
   RASTI - Historia Fundadora (Slavia)
   Estilo editorial profesional, alineado con /nuestro-equipo
   ======================================== */

.historia-page {
    background-color: var(--background-color, #F7F5F0);
    padding-top: 120px;
}

.historia-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ───── HEADER ───── */
.historia-header {
    text-align: center;
    margin-bottom: 56px;
}

.historia-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent-color, #D64560);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.historia-title {
    font-family: var(--font-family-primary);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color, #2D3748) 0%, var(--accent-color, #D64560) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.historia-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #4A5568);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ───── PORTRAIT BLOCK ───── */
.historia-portrait-block {
    text-align: center;
    margin-bottom: 56px;
}

.historia-portrait-frame {
    width: 260px;
    height: 260px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.historia-portrait-frame:hover {
    transform: translateY(-4px);
}

.historia-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    display: block;
}

.historia-portrait-frame:hover .historia-portrait-img {
    filter: grayscale(0%);
}

.historia-portrait-name {
    font-size: 1.05rem;
    color: var(--primary-color, #2D3748);
    font-weight: 700;
    margin: 0;
}

.historia-portrait-role {
    font-size: 0.82rem;
    color: var(--accent-color, #D64560);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 4px 0 0;
}

/* ───── OPENING QUOTE ───── */
.historia-opening {
    max-width: 640px;
    margin: 0 auto 48px;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--accent-color, #D64560);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color, #4A5568);
}

/* ───── BODY ───── */
.historia-body {
    max-width: 640px;
    margin: 0 auto;
}

.historia-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2D3748;
    margin: 0 0 1.4rem;
}

.historia-paragraph strong {
    color: var(--primary-color, #2D3748);
    font-weight: 700;
}

.historia-pullquote {
    margin: 2.2rem 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--accent-color, #D64560);
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--primary-color, #2D3748);
    font-weight: 500;
}

/* ───── MILESTONES ───── */
.historia-milestones {
    max-width: 850px;
    margin: 80px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.historia-milestone {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.historia-milestone:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.historia-milestone-number {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color, #2D3748) 0%, var(--accent-color, #D64560) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1;
}

.historia-milestone-label {
    font-size: 0.95rem;
    color: var(--text-color, #4A5568);
    font-weight: 600;
    line-height: 1.4;
}

/* ───── CLOSING / CTA ───── */
.historia-closing {
    max-width: 720px;
    margin: 72px auto 0;
    padding: 0 24px 120px;
    text-align: center;
}

.historia-closing-line {
    font-size: 1.05rem;
    color: var(--text-color, #4A5568);
    margin-bottom: 16px;
}

.historia-closing-quote {
    font-size: 1.55rem;
    line-height: 1.5;
    color: var(--primary-color, #2D3748);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 36px;
}

.historia-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
    .historia-page {
        padding-top: 100px;
    }
    .historia-title {
        font-size: 2rem;
    }
    .historia-subtitle {
        font-size: 1.05rem;
    }
    .historia-portrait-frame {
        width: 200px;
        height: 200px;
    }
    .historia-opening {
        font-size: 1rem;
    }
    .historia-paragraph {
        font-size: 1rem;
        line-height: 1.75;
    }
    .historia-pullquote {
        font-size: 1.1rem;
    }
    .historia-milestones {
        grid-template-columns: 1fr;
        margin-top: 56px;
    }
    .historia-closing {
        margin-top: 56px;
        padding-bottom: 80px;
    }
    .historia-closing-quote {
        font-size: 1.25rem;
    }
}
