/* ========================
   CERTIFICACIONES PAGE STYLES
   ======================== */

/* Hero Section */
.certificaciones-hero {
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.certificaciones-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.certificaciones-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    max-width: 90%;
}

.certificaciones-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Responsive para hero */
@media (max-width: 768px) {
    .certificaciones-hero {
        min-height: 350px;
    }
    
    .certificaciones-hero-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificaciones-hero {
        min-height: 280px;
    }
    
    .certificaciones-hero-content h1 {
        font-size: 1.2rem;
    }
}

/* Descripción Section */
.certificaciones-descripcion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.certificaciones-descripcion-text {
    flex: 1;
    min-width: 280px;
}

.certificaciones-descripcion-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.certificaciones-descripcion-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.certificaciones-descripcion-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive descripción */
@media (max-width: 768px) {
    .certificaciones-descripcion {
        flex-direction: column;
        margin: 40px auto;
        gap: 30px;
    }
    
    .certificaciones-descripcion-text p {
        text-align: left;
    }
}

/* Gallery Section */
.certificaciones-gallery {
    text-align: center;
    padding: 40px 20px;
    background: #f5f7fa;
}

.certificaciones-gallery h2 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-weight: 600;
}

.certificaciones-gallery .separator {
    width: 80px;
    height: 4px;
    background: #ffd700;
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .certificaciones-gallery h2 {
        font-size: 1.5rem;
    }
}

/* CTA Banner Section */
.certificaciones-cta {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.certificaciones-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.certificaciones-cta-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.certificaciones-cta-content img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .certificaciones-cta {
        min-height: 200px;
    }
}

/* Ajustes adicionales para la estructura HTML */
.page-certificaciones {
    overflow-x: hidden;
}

/* Animación suave para todas las transiciones */
.certificaciones-hero,
.certificaciones-descripcion-image img,
.gallery-grid img,
.certificaciones-cta {
    transition: all 0.3s ease;
}