.text-center {
    text-align: center;
}

.text-white {
    color: var(--blanco);
}

.bg-light {
    background-color: #f4f7f6;
    border-bottom: 1px solid #e0e0e0;
}

.parallax-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.history-hero {
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 75, 52, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.history-hero h1 {
    color: var(--amarillo-yaxha);
    font-size: 3.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.history-hero p {
    color: var(--blanco);
    font-size: 1.3rem;
    max-width: 800px;
    line-height: 1.6;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--amarillo-yaxha);
    margin-bottom: 1rem;
    display: block;
}

.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--verde-yaxha);
}

.stat-number {
    color: var(--rojo-yaxha);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-number small {
    font-size: 1.2rem;
    color: var(--texto-oscuro);
}

.stat-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.5;
}

.intro-scale {
    max-width: 900px;
    margin: 4rem auto;
}

.section-title {
    color: var(--rojo-yaxha);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--amarillo-yaxha);
    border-radius: 2px;
}

.intro-scale p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--amarillo-yaxha);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--verde-yaxha);
    border: 4px solid white;
    top: 40px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--amarillo-yaxha);
}

.right .timeline-dot {
    left: -12px;
}

.card-history {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    position: relative;
}

.card-history:hover {
    transform: translateY(-5px);
}

.time-badge {
    display: inline-block;
    background: var(--rojo-yaxha);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.timeline-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.timeline-body {
    padding: 2rem;
    border-top: 4px solid var(--verde-yaxha);
}

.timeline-body h3 {
    color: var(--verde-yaxha);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.timeline-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.mid-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 5rem 0;
}

.mid-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.mid-hero h2 {
    font-size: 2.4rem;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    color: var(--amarillo-yaxha);
    font-style: italic;
    font-weight: 300;
}

.deep-dive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.deep-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 5px solid var(--verde-yaxha);
    transition: transform 0.3s;
}

.deep-card:hover {
    transform: translateY(-8px);
}

.icon-gold {
    font-size: 3.5rem;
    color: var(--amarillo-yaxha);
    margin-bottom: 1.5rem;
}

.deep-card h3 {
    color: var(--rojo-yaxha);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

.deep-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.landmark-card {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--verde-yaxha);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.landmark-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.landmark-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 75, 52, 0.95);
    display: flex;
    flex-direction: column;
    transform: translateY(calc(100% - 85px));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.landmark-content h3 {
    color: var(--amarillo-yaxha);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0 1.5rem;
    height: 85px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.landmark-content p {
    color: white;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding: 1rem 1.5rem 0 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    overflow: visible;
}

.landmark-content p:last-child {
    padding-bottom: 2rem;
}

.landmark-card:hover .landmark-content {
    transform: translateY(0);
    overflow-y: auto;
}

.landmark-card:hover .landmark-img {
    transform: scale(1.1);
}

.landmark-card:hover .landmark-content p {
    opacity: 1;
    transform: translateY(0);
}

.landmark-content::-webkit-scrollbar {
    width: 6px;
}

.landmark-content::-webkit-scrollbar-thumb {
    background: var(--amarillo-yaxha);
    border-radius: 10px;
}

.landmark-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .landmarks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .parallax-bg {
        background-attachment: scroll;
    }

    .history-hero h1 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .mid-hero h2 {
        font-size: 1.8rem;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-dot,
    .right .timeline-dot {
        left: 8px;
    }
}

@media (max-width: 600px) {
    .landmarks-grid {
        grid-template-columns: 1fr;
    }

    .landmark-card {
        height: 400px;
    }
}