.historia-container {
    min-height: calc(100vh - 80px);
    background: var(--bg-primary);
    position: relative;
}

.historia-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212,175,55,0.02) 10px, rgba(212,175,55,0.02) 20px);
    pointer-events: none;
}

.hero-section {
    background: var(--bg-hero);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212,175,55,0.03) 10px, rgba(212,175,55,0.03) 20px);
    pointer-events: none;
}

.hero-ornament {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(212,175,55,0.6));
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.hero-title {
    font-family: var(--font-elegant);
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--gold);
    margin: 0 0 20px 0;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: var(--tracking-widest);
    line-height: var(--leading-tight);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: var(--font-light);
    color: var(--cream);
    font-style: italic;
    margin: 0 0 25px 0;
    letter-spacing: var(--tracking-normal);
    line-height: var(--leading-snug);
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.history-section {
    margin-bottom: 50px;
    padding: 30px 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.section-title {
    font-family: var(--font-elegant);
    font-size: 1.75rem;
    font-weight: var(--font-semibold);
    color: var(--gold);
    margin: 0 0 25px 0;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    line-height: var(--leading-tight);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--gold), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}

.section-content {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-loose);
    color: var(--cream-light);
}

.section-content p {
    margin-bottom: 20px;
}

.section-content strong {
    color: var(--gold);
    font-weight: var(--font-semibold);
}

.section-content em {
    color: var(--gold-light);
    font-style: italic;
}

.origins-section {
    background: var(--card-bg-dark);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.journey-section {
    background: var(--card-bg-dark);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.generations-section {
    background: var(--card-bg-dark);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.timeline {
    margin-top: 30px;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--terracotta), var(--wood), var(--sage-green));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 15px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -46px;
    top: 5px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border: 3px solid var(--gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: var(--elegant-dark);
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.timeline-item:nth-child(2) .timeline-marker {
    background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
    border-color: var(--bronze);
}

.timeline-item:nth-child(3) .timeline-marker {
    background: linear-gradient(135deg, var(--bronze) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-dark);
}

.timeline-content h3 {
    font-family: var(--font-elegant);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gold-light);
    margin: 0 0 10px 0;
    line-height: var(--leading-tight);
}

.timeline-content p {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--cream-light);
    margin: 0;
}

.philosophy-section {
    background: var(--card-bg-dark);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.philosophy-card {
    background: var(--card-bg-glass);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold-lg);
    border-color: var(--gold);
    background: var(--card-bg-glass);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.philosophy-card h3 {
    font-family: var(--font-elegant);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gold);
    margin: 0 0 12px 0;
    line-height: var(--leading-tight);
}

.philosophy-card p {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--cream-light);
    margin: 0;
}

.specialties-section {
    background: var(--card-bg-dark);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.specialties-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}

.specialties-list li {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-loose);
    color: var(--cream-light);
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}

.specialties-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.4rem;
    top: -2px;
    filter: drop-shadow(0 0 5px rgba(212,175,55,0.5));
}

.present-section {
    background: var(--card-bg-dark);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.historia-quote {
    margin: 30px 0 0 0;
    padding: 25px 30px;
    background: rgba(42,24,16,0.4);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    font-family: var(--font-elegant);
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    font-style: italic;
    line-height: var(--leading-loose);
    color: var(--cream);
    position: relative;
    backdrop-filter: blur(5px);
}

.historia-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 5px;
    font-family: Georgia, serif;
}

.quote-author {
    display: block;
    margin-top: 20px;
    text-align: right;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-style: normal;
    color: var(--gold);
    line-height: var(--leading-normal);
}

.cta-section {
    background: var(--bg-hero);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    box-shadow: var(--shadow-elegant);
    border: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212,175,55,0.03) 10px, rgba(212,175,55,0.03) 20px);
    pointer-events: none;
}

.cta-section h2 {
    font-family: var(--font-elegant);
    font-size: 1.75rem;
    font-weight: var(--font-bold);
    color: var(--gold);
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: var(--leading-tight);
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--cream);
    margin: 0 0 35px 0;
    line-height: var(--leading-loose);
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
}

.cta-button {
    padding: 18px 35px;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    text-decoration: none;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    line-height: var(--leading-tight);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    width: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--elegant-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    border: 3px solid var(--gold-dark);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.cta-button.secondary {
    background: transparent;
    color: var(--gold);
    border: 3px solid var(--gold);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--elegant-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.4);
}

@media (min-width: 640px) {
    .hero-section {
        padding: 80px 30px;
    }

    .hero-ornament {
        font-size: 2.25rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-divider {
        width: 100px;
    }

    .content-wrapper {
        padding: 50px 30px;
    }

    .history-section {
        padding: 40px 35px;
        margin-bottom: 60px;
    }

    .section-icon {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-title::after {
        width: 70px;
    }

    .section-content {
        font-size: var(--text-md);
    }

    .section-content p {
        margin-bottom: 22px;
    }

    .timeline {
        padding-left: 55px;
        margin-top: 35px;
    }

    .timeline::before {
        left: 18px;
        width: 2.5px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        left: -50px;
        font-size: 1.1rem;
        border-width: 3.5px;
    }

    .timeline-content h3 {
        font-size: var(--text-xl);
        margin-bottom: 11px;
    }

    .timeline-content p {
        font-size: var(--text-md);
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 35px;
    }

    .philosophy-card {
        padding: 35px 30px;
    }

    .card-icon {
        font-size: 3.25rem;
        margin-bottom: 18px;
    }

    .philosophy-card h3 {
        font-size: var(--text-xl);
        margin-bottom: 13px;
    }

    .specialties-list {
        margin-top: 28px;
    }

    .specialties-list li {
        font-size: var(--text-lg);
        padding-left: 40px;
        margin-bottom: 16px;
    }

    .specialties-list li::before {
        font-size: 1.5rem;
    }

    .historia-quote {
        padding: 30px 35px;
        margin-top: 35px;
        font-size: var(--text-xl);
    }

    .historia-quote::before {
        font-size: 4.5rem;
        left: 8px;
    }

    .quote-author {
        margin-top: 22px;
        font-size: var(--text-md);
    }

    .cta-section {
        padding: 60px 40px;
        margin-top: 70px;
    }

    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 22px;
    }

    .cta-section p {
        font-size: var(--text-lg);
        margin-bottom: 40px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 18px;
    }

    .cta-button {
        padding: 19px 40px;
        font-size: var(--text-md);
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 100px 40px;
    }

    .hero-ornament {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: var(--text-5xl);
        margin-bottom: 25px;
    }

    .hero-subtitle {
        font-size: var(--text-2xl);
        margin-bottom: 35px;
    }

    .hero-divider {
        width: 120px;
        height: 4px;
    }

    .content-wrapper {
        padding: 60px 40px;
    }

    .history-section {
        padding: 50px;
        margin-bottom: 80px;
        border-radius: 16px;
    }

    .history-section:hover {
        transform: translateY(-5px);
    }

    .section-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: var(--text-4xl);
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -10px;
    }

    .section-content p {
        margin-bottom: 25px;
    }

    .timeline {
        padding-left: 60px;
        margin-top: 40px;
    }

    .timeline::before {
        left: 20px;
        width: 3px;
    }

    .timeline-item {
        margin-bottom: 40px;
        padding-left: 20px;
    }

    .timeline-marker {
        width: 48px;
        height: 48px;
        left: -54px;
        font-size: 1.3rem;
        border-width: 4px;
    }

    .timeline-content h3 {
        margin-bottom: 12px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }

    .philosophy-card {
        padding: 40px;
    }

    .philosophy-card:hover {
        transform: translateY(-10px);
    }

    .card-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .philosophy-card h3 {
        margin-bottom: 15px;
    }

    .specialties-list {
        margin-top: 30px;
    }

    .specialties-list li {
        padding-left: 45px;
        margin-bottom: 18px;
    }

    .specialties-list li::before {
        font-size: 1.6rem;
    }

    .historia-quote {
        padding: 35px 45px;
        margin-top: 40px;
        border-left-width: 5px;
        border-radius: 10px;
    }

    .historia-quote::before {
        font-size: 5rem;
        top: 5px;
        left: 10px;
    }

    .quote-author {
        margin-top: 25px;
    }

    .cta-section {
        padding: 70px 50px;
        margin-top: 80px;
        border-radius: 16px;
    }

    .cta-section h2 {
        font-size: var(--text-4xl);
        margin-bottom: 25px;
    }

    .cta-section p {
        font-size: var(--text-xl);
        margin-bottom: 45px;
    }

    .cta-buttons {
        gap: 20px;
    }

    .cta-button {
        padding: 20px 45px;
    }

    .cta-button.primary:hover,
    .cta-button.secondary:hover {
        transform: translateY(-4px);
    }
}

@media (min-width: 1280px) {
    .hero-section {
        padding: 120px 50px;
    }

    .content-wrapper {
        padding: 80px 50px;
    }

    .history-section {
        padding: 60px;
    }

    .philosophy-grid {
        gap: 35px;
    }

    .cta-section {
        padding: 80px 60px;
    }
}
