body {
    background-color: #e2e1e1;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}


.navbar-nav.mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


h1 {
    padding: 4rem 20rem;
    font-size: 3.5rem;
    color: #fdfdfd;
}

h2 {
    font-size: 2rem;
    color: #040272;
    margin-bottom: 0;
}

.Principal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    width: 100%;
    height: 90vh;
    background-color: rgba(25, 25, 26, 0.65);
    background-image: url(../img/FONDO.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

.parrafoprin {
    width: 50%;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1rem;
    color: #fff;
    padding-bottom: 2rem;
}

.btn1 {
    border-radius: 1rem;
    background-color: #fff;
    color: #040272;
    border: 2px solid #040272;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn1:hover {
    background-color: #040272;
    color: #fff;
    border: 2px solid #fff;
    transform: scale(1.05);
}

.btn2 {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn2:hover {
    background-color: #0d6efd;

    color: white;
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}



.contenedor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

.contenedor h2 {
    margin-bottom: 1rem;
}

.contenedor .parrafo {
    width: 50%;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.linea {
    width: 40%;
    margin: 0.5rem auto;
    border: none;
    height: 3px;
    background-color: #040272;
    border-radius: 5px;
    margin-top: 2px;
}

.fila {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
}

.tarjeta {
    flex: 1 1 250px;
    padding: 1.5rem;
    border-radius: 0rem;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0rem;

}

.tarjeta:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;

}

.tarjeta.azul {
    background-color: #040272;
    border-radius: 0rem;
}

.tarjeta.negra {
    background-color: #222;
    border-radius: 0rem;
}


.services {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    color: #040272;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.services-subtitle {
    color: #555;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: #f7f7f7;
    border: 2px solid #040272;
    border-radius: 0.8rem;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #040272;
    color: #fff;
    transform: translateY(-8px);
    cursor: pointer;
}

.service-card .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.stats {
    background: #040272;
    /* Azul fuerte */
    color: #fff;
    padding: 3rem 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0;
}

.stat-card p {
    font-size: 1rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.portfolio {
    text-align: center;
    padding: 50px 20px;
}

.portfolio h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #040272;
}

.portfolio p {
    color: #666;
    margin-bottom: 30px;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup:target {
    display: flex;
}

.popup-content {
    background: #fff;
    color: #040272;
    padding: 2rem 3rem;
    border-radius: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cerrar {
    display: inline-block;
    margin-top: 1.5rem;
}

.btn1,
.btn2,
.cerrar {
    text-decoration: none;