.index {
    background-color: #61def2;
    color: #181D38;
    border: 2px solid #61def2;
    border-radius: 6px;
    font-size: clamp(1rem, 10vw, 1.2rem); 
    font-weight: 600;
    width: 400px;
    min-width: 350px; 
    padding: 10px; 
    outline: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: scale(1);
    transition: all 0.2s ease-in;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    animation: fadeIn 2s ease-in-out 1s;
}

.index:hover {
    background-color: #181D38;
    color: #61def2;
    border-color: #61def2;
    transform: scale(0.98);
}
.certifications-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.unique-h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.cert-card {
    width: 100%;
    max-width: 300px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease-in-out;
}

.cert-card:hover {
    transform: scale(1.05);
}

.cert-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.unique-flag img {
    width: 50px;
    height: auto;
    margin-top: 10px;
}

.cert-info {
    padding: 10px;
}

.cert-info h1 {
    font-size: 18px;
    margin: 10px 0;
}

.cert-info p {
    font-size: 14px;
    color: #555;
}

.cert-info button {
    background-color: #D2B48C;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.cert-info button:hover {
    background-color: #B88A60;
}

a {
    text-decoration: none;
    color: inherit;
}
.index2 {
    background-color: #61def2;
    color: #181D38;
    border: 2px solid #61def2;
    border-radius: 6px;
    font-size: clamp(1rem, 10vw, 1.2rem); 
    font-weight: 600;
    width: 200px; 
    min-width: 200px; 
    padding: 10px; 
    outline: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: scale(1);
    transition: all 0.2s ease-in;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    animation: fadeIn 2s ease-in-out 1s;
}

.index2:hover {
    background-color: #181D38;
    color: #61def2;
    border-color: #61def2;
    transform: scale(0.98);
}

.emb {
    display: block;
    width: 100px;
    height: 50px;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
  }
  
  .emb:hover, .emb:focus {
    color: #1e2125;
    text-decoration: none;
    background-color: #f8f9fa;
  }

.nav-item .dropdown-menu a.emb {
    display: block !important;
    width: 100% !important;
    height: 40px;
    padding: 0.5rem 1rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    background-color: #000 !important; 
    text-align: left !important;
    border: 0 !important;
}

.nav-item .dropdown-menu a.emb:hover, 
.nav-item .dropdown-menu a.emb:focus {
    color: #000 !important; 
    background-color: #fff !important; 
    text-decoration: none !important;
    border: 1px solid #000 !important; 
}
/* Estilos generales */
a {
    border: none !important; /* Asegura que no haya bordes alrededor de los enlaces */
    text-decoration: none !important; /* Asegura que no haya subrayado */
}

.col-md-3 {
    border: none !important; /* Asegura que no haya bordes alrededor de las columnas */
}

/* Container for course section */
.cuadrados-container {
    background-size: cover;
    background-position: center;
    padding: 40px;
    text-align: center;
}

/* Each course square (card) */
.cuadrado {
    position: relative;
    width: 100%; /* Set to full width for smaller screens */
    max-width: 295px; /* Limit width for larger screens */
    height: auto; /* Make height responsive */
    color: white;
    display: inline-block;
    margin: 5px;
    vertical-align: top;
    padding: 0 !important;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: none !important;
}

/* Scale effect on hover */
.cuadrado:hover {
    transform: scale(1.05);
}

.cuadrado h5 {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    text-decoration: none !important;
}

/* Specific backgrounds for each course */
.cuadrado1 { background-image: url('../img/ado.jpg'); }
.cuadrado2 { background-image: url('../img/esp2.jpg'); }
.cuadrado3 { background-image: url('../img/per2.jpg'); }
.cuadrado4 { background-image: url('../img/cal3.jpg'); }
.cuadrado5 { background-image: url('../img/Grande.png'); }

/* Responsive grid */
@media (min-width: 768px) {
    .col-md-3 {
        max-width: 295px;
        flex: 1 1 30%;
    }
}

@media (max-width: 768px) {
    .col-md-3 {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 20px;
    }
}

.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Tres columnas */
    gap: 20px; /* Espaciado entre elementos */
}

.grid-item {
    background-color: #181d38; /* Fondo para los elementos */
    padding: 5px; /* Espaciado interno */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra suave */
    text-align: center;
}

.grid-item iframe {
    width: 100%; /* Ancho completo */
    height: 300px; /* Altura fija para videos */
}

.grid-item img {
    width: 100%; /* Ancho completo */
    height: auto; /* Altura automática para imágenes */
    object-fit: cover; /* Asegura que la imagen se ajuste correctamente */
}


/* Optional styling for smaller screens */
@media (max-width: 768px) {
    .grid-3x3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-3x3 {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* General square styling */
.cuadrado {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.cuadrado:hover {
    transform: scale(1.05);
}
.cuadrado {
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 200px; /* Ajusta este valor según el tamaño que deseas */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.cuadrado::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cuadrado h5 {
    position: relative;
    z-index: 2;
}

.titulo {
    color: white;
}

.subtitulo {
    font-size: 9px;
    color: white;
}
.cuadrado {
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 200px; /* Ajusta el tamaño según sea necesario */
    width: 100%;
}

.cuadrado::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cuadrado h5 {
    position: relative;
    z-index: 2;
    margin: 0; /* Elimina todo el margen para ambos textos */
}

.titulo {
    margin-bottom: 2px; /* Reducido a 2px para quitar casi todo el espacio */
    color: white;
}

.subtitulo {
    font-size: 10px;
    color: white;
}


/* Responsive layout */
@media (max-width: 576px) {
    /* For small screens, single column */
    .row .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    /* For medium screens, two columns */
    .row .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 769px) {
    /* For larger screens, three or four columns */
    .row .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.filtro-oscuro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Filtro oscuro con 50% de opacidad */
    border-radius: 15px; /* Mantiene el borde redondeado */
    z-index: 1;
}

.filtro-oscuro img {
    z-index: 2;
    border-radius: 15px;
}
