body{
    background-color: #892735
}

section {
    background-color: #892735;
    padding: 0;
    margin: 0;
    position: relative;
    text-align: center;
}

h1 {
    font-size: 50px;
    text-align: center;
    color: #fff;
    padding: 60px 0 30px 0;
    margin: 0;
    margin-bottom: 30px;
}

.certificados {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 2;
    margin-top: 130px; /* Ajusta para que quede encima del borde blanco */
}
  
.texto {
    background-color: white;
    padding: 30px;
    border-radius: 25px;
    max-width: 1200px;
    margin: 10px auto 0 auto; /* margen top mayor para hacer lugar al SVG */
    position: relative;
    z-index: 1;
}
.columnas {
    border: 2px solid rgb(166, 25, 46);
    border-radius: 25px;
    padding: 50px 150px;
    column-count: 2;
    column-gap: 40px; 
    text-align: justify;
    max-width: 100%;
}

.columnas p {
    font-size: 18px;
    line-height: 30px;
    width: auto;
    break-inside: avoid; 
}

@media(max-width:1300px){
    .columnas {
        padding: 50px 100px;
    }  
}

@media(max-width:970px){
    .columnas {
        padding: 50px;
        column-count: 1;
    }  
    .columnas p {
        font-size: 15px;
    }
}

@media(max-width:760px){
    section{
        margin-top: 207px;
    }
}

@media(max-width:600px){
    .texto {
        background-color: white;
        padding: 30px; 
        border-radius: 25px;
        max-width: 1200px;
        margin: auto; 
    }
    
    .columnas {
        border: none;
        border-radius: 25px;
        column-gap: 40px; 
        text-align: justify;
        max-width: 100%;
        padding: 15px;
        column-count: 1;
    }
    
    .columnas p {
        font-size: 15px;
        line-height: 30px;
        width: auto;
        break-inside: avoid; 
    }
    
    h1{
        font-size: 40px;
    }

    section{
        padding: 0 30px;
    }
    .certificados{
        margin-top: 135PX;
    } 
    .certificados svg {
        width: 100%;
        max-width: 70px; /* o el tamaño que vos quieras como tope */
        height: auto;
      }
}

@media(max-width:450px){
    h1{
        font-size: 35px;
    }
    .certificados{
        margin-top: 127px;
    } 
}

@media(max-width:350px){
    h1{
        font-size: 25px;
    }
    .certificados{
        margin-top: 115px;
    } 
    .certificados img{
        width: 30px;
    }
}

/* Estilos para el Modal (Lightbox) */
.cert-imagenes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px; /* Espacio entre el texto y las imágenes */
    flex-wrap: wrap;
}

.cert-imagenes .cert-img-clickable {
    width: 250px;
    height: 250px;
    border: 2px solid #a6192e; /* Borde con color corporativo */
    border-radius: 8px;
    padding: 5px;
    background-color: #f9f9f9; /* Un fondo muy sutil para el espacio vacío */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
    /* Estilos para la imagen de fondo */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cert-imagenes .cert-img-clickable:hover {
    opacity: 0.7;
    transform: scale(1.03);
}

.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se queda en su lugar */
    z-index: 1000; /* Se asegura de que esté al frente */
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita el scroll si es necesario */
    background-color: rgb(0,0,0); /* Color de fondo */
    background-color: rgba(0,0,0,0.9); /* Negro con opacidad */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Máximo 90% del ancho de la ventana */
    max-height: 90vh; /* Máximo 90% de la altura de la ventana */
    object-fit: contain; /* Asegura que la imagen se vea completa y sin distorsión */
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-content.modal-zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    /* Opcional: un pequeño efecto al hacer zoom */
    transform: scale(1); 
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}