/* ==========================================
   HERO SECTION - PÁGINA HISTORIA
   ========================================== */
.hero-historia {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    position: relative;
    height: 350px;
    overflow: hidden;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-historia {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.hero-historia .hero-title {
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    font-weight: 700 !important;
    font-variant: small-caps !important;
    font-size: 48px !important;
    color: #ffffff !important;
    text-align: center !important;
    text-shadow: 0em 0.08em 0em rgba(0,0,0,0.3) !important;
    margin-bottom: 20px;
}

.hero-historia .hero-subtitle {
    font-weight: 700 !important;
    font-size: 24px !important;
    color: var(--accent-yellow) !important;
    letter-spacing: 2px !important;
    line-height: 1.1em !important;
    text-align: center !important;
}

/* ==========================================
   INFORMACIÓN EMPRESA - PÁGINA HISTORIA
   ========================================== */
.company-intro {
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.company-intro p {
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--dark-gray);
    text-align: justify;
}

.company-intro strong {
    color: var(--dark-gray);
    font-weight: bold;
}

/* ==========================================
   GALERÍA HISTÓRICA - PÁGINA HISTORIA
   ========================================== */
.historical-gallery {
    margin: 60px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    gap: 50px;
    margin-top: 40px;
}

.historical-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.historical-item:nth-child(even) .historical-image {
    order: 2;
}

.historical-item:nth-child(even) .historical-description {
    order: 1;
}

.historical-image {
    position: relative;
}

.historical-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.historical-photo:hover {
    transform: scale(1.02);
}

.historical-description h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.historical-description p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 16px;
    text-align: justify;
}

/* ==========================================
   VALORES EMPRESA - PÁGINA HISTORIA
   ========================================== */
.company-values {
    margin: 80px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f0f0 100%);
    border-radius: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.value-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* ==========================================
   FUTURO EMPRESA - PÁGINA HISTORIA
   ========================================== */
.company-future {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    border-radius: 16px;
    color: var(--white);
}

.future-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.future-content .section-title-center {
    color: var(--white);
    margin-bottom: 30px;
}

.future-content strong {
    color: var(--accent-yellow);
    font-weight: bold;
}

/* ==========================================
   MEDIA QUERIES - PÁGINA HISTORIA
   ========================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .historical-item {
        padding: 25px;
        gap: 30px;
    }
    
    .historical-photo {
        height: 280px;
    }
}

@media (max-width: 768px) {
    /* Hero Historia */
    .hero-historia .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-historia .hero-subtitle {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
    }
    
    .hero-historia {
        height: 250px;
    }
    
    /* Galería histórica */
    .historical-item,
    .historical-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .historical-item:nth-child(even) .historical-image,
    .historical-item:nth-child(even) .historical-description {
        order: unset;
    }
    
    .historical-photo {
        height: 250px;
    }
    
    .historical-description h3 {
        font-size: 1.3rem;
    }
    
    .historical-description p {
        text-align: left;
        font-size: 15px;
    }
    
    /* Valores */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Futuro */
    .company-future {
        padding: 30px 20px;
    }
    
    .future-content p {
        text-align: left;
        font-size: 16px;
    }
    
    /* Texto general */
    .company-intro {
        padding: 0 15px;
    }
    
    .company-intro p {
        text-align: left;
    }
}