/* Bases del codigo
Colores:
#ffffff
#c6c6c6
#2b79ee
#0d5193 */

.container {
    position: relative;
}

/* Banner, titulo y texto bienvenida */

/* Estilos generales del banner */

.banner {
    background-image: url("./img/inicio.png");
    background-size: cover;
    height: 350px;
    background-position: left center;
    padding: 40px 20px;
    position: relative;
}

.texto-banner {
    color: #ffffff;
    font-size: 15px;
    margin-right: 50px;
    line-height: 1.4;
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
    margin-top: -85px;
}

.texto-banner-2 {
    font-size: 15px;
    margin-right: 10px;
}

/* Pantallas grandes (escritorio) */
@media screen and (min-width: 992px) {
    .banner {
        height: 300px; /* Ajusta según el tamaño de tu imagen */
    }
    .texto-banner {
        text-align: center;
        position: absolute;
        left: 55%;
        top: 45%;
        transform: translate(-50%, -50%);
        width: 80%;
    }
}

/* Pantallas medianas (tablets) */
@media screen and (max-width: 991px) and (min-width: 768px) {
    .banner {
        height: 250px; /* Ajusta según sea necesario */
    }
    .texto-banner {
        text-align: right;
        position: absolute;
        right: 80px;
        top: 80%;
        transform: translateY(-50%);
        width: 60%;
    }
}

/* Pantallas pequeñas (móviles) */
@media screen and (max-width: 767px) {
    .banner {
        height: 200px; /* Ajusta según sea necesario */
    }
    .texto-banner {
        text-align: right;
        position: absolute;
        right: 5px;
        bottom: 30px;
        width: 60%;
        font-size: 10px;
    }
}

.tit-1 {
    padding-left: 50px;
    margin-top: 25px;
    font-size: 20px;
}

.txt-1 {
    padding-right: 300px;
    margin-left: 50px;
    font-size: 18px;
    max-width: 80%;
}

/* servicios, titulos, textos y fondo */

.contenedor-servicios {
    background-image: url("./img/medio.png");
    background-size: cover;
    min-height: 890px;
    display: flex;
}

/* Iconos parte servicios tanto css como media querys */

.card-icon {
    position: absolute;
    color: #ffffff;
    top: -40px;
    right: -20px;
    font-size: 24px;
    border: 3px solid #c6c6c6;
    background-color: #2b79ee;
    padding: 25px;
    border-radius: 100%;
}

/* css y media querys para tablets y celulares parte servicios */
.admin-servicios,
.contratos-servicios,
.reparaciones-servicios {
    position: relative;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .contenedor-servicios .d-flex {
        flex-direction: column;
        gap: 10px;
        background-color: #ffffff;
    }
    .admin-servicios,
    .contratos-servicios,
    .reparaciones-servicios {
        width: 100%;
        margin: 0px 0;
        max-height: none;
        background-image: url("./img/medio.png");
        color: #ffffff;
    }
    .card-icon {
        display: none;
    }
}

.admin-servicios,
.contratos-servicios,
.reparaciones-servicios {
    font-size: 14px;
    min-width: 23%;
    padding: 1px 10px 5px;
    background-color: #ffffff;
    border: 1px solid black;
    flex: 1;
    margin: 2%;
    max-height: 95%;
}

.txt-admin,
.txt-reparaciones,
.txt-contratos {
    font-size: 20px;
    margin: 23px;
}

/* Textos cards */

.text-body-secondary {
    color: #ffffff !;
    margin: 20px;
    text-align: center;
    font-size: 15px;
}

.card-body {
    text-align: center;
    font-size: 15px;
}

.fede {
    color: #ffffff !important;
    text-align: center;
    font-size: 15.5px;
}

.card {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo semi-transparente */
    border-radius: 10px;
    overflow: hidden;
    margin: 10px;
    width: calc(33.33% - 20px);
    max-width: 540px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card .card-body {
    padding: 15px;
}

.card .card-title {
    color: #0d5193;
    margin-bottom: 10px;
    font-size: 15px;
}

.card .card-text,
.card small {
    color: black;
    margin-top: 15px;
}

/* Footer */

.logo {
    height: 150px;
    width: auto;
}

.logo-contenedor {
    width: 40%;
    display: flex;
    margin-top: 43px;
    margin-bottom: 20px;
    justify-content: space-around;
}

/* Estilos generales del footer */
.fondo-footer {
    background-image: url("./img/pie.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px 15px;
    color: #ffffff;
}

/* Contenedor principal para alinear todo el contenido */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Estilos para la sección de equipo */
.equipo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 40px;
}

/* Estilos para la sección del footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(
        13,
        81,
        147,
        0.8
    ); /* Color de fondo semi-transparente */
    margin-top: 10%;
    border-radius: 10px;
}

.logo-contenedor {
    width: 30%;
    display: flex;
    justify-content: center;
}

.logo-contenedor img {
    max-width: 100%;
    height: auto;
}

.footer-info {
    width: 70%;
    text-align: left;
}

.footer-info ul {
    list-style-type: none;
    padding: 0;
}

.footer-info li {
    margin-bottom: 10px;
}

.footer-info i {
    margin-right: 10px;
}

/* Media queries para la parte de equipo*/
@media (max-width: 992px) {
    .card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .equipo {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }

    .footer {
        flex-direction: column;
    }

    .logo-contenedor,
    .footer-info {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-info {
        text-align: center;
    }
}

/* Sección de bienvenida */
@media (max-width: 767px) {
    .tit-1 {
        padding-left: 0;
        text-align: center;
        margin-top: 20px;
    }

    .txt-1 {
        padding-inline-end: 0;
        margin-left: 0;
        font-size: 16px;
        text-align: justify;
        width: 100%;
    }
}

/* Sección de servicios */
@media (max-width: 767px) {
    .contenedor-servicios {
        background-image: none;
        min-height: auto;
    }

    .d-flex.align-items-end.justify-content-around {
        flex-direction: column;
    }

    .admin-servicios,
    .contratos-servicios,
    .reparaciones-servicios {
        width: 100%;
        margin: 0px 0;
        max-height: none;
        background-image: url("./img/medio.png");
        color: #ffffff;
    }

    .txt-admin,
    .txt-reparaciones,
    .txt-contratos {
        font-size: 18px;
        margin: 15px 0;
        text-align: center;
    }
}

/* Sección de equipo */
@media (max-width: 767px) {
    .equipo.d-flex {
        flex-direction: column;
        align-items: center;
    }

    .card {
        margin-bottom: 20px;
    }
}

/* Footer */
@media (max-width: 767px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-contenedor {
        width: 100%;
        margin-top: 20px;
    }

    .footer-info {
        margin-top: 20px;
        font-size: 16px;
    }
}

.footer {
    display: flex;
}

.footer-info {
    margin-top: 70px;
    font-size: 20px;
}
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Formulario */

.contact-form {
    position: absolute;
    top: -220px;
    right: 60px;
    width: 380px;
    background-color: rgba(19, 76, 161, 0.9);
    padding: 20px;
    border: 5px solid white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form select {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
select option {
    background-color: #ccc;
    color: #050505;
}
.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background-color: #2b79ee;
    font-weight: bold;
    color: rgb(255, 255, 255);
    border: 2px solid white;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 4px;
    cursor: pointer;
    max-width: 50%;
    margin: 20px 0 20px auto;
}

.contact-form button:hover {
    background-color: #2a5d8f;
}

.content-wrapper {
    position: relative;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .content-wrapper {
        padding-right: 10px;
    }

    .txt-1,
    .contenedor-servicios,
    .equipo,
    .footer {
        padding-right: 0;
    }

    .card-icon {
        display: none;
    }

    .contact-form {
        position: static;
        width: 100%;
        max-width: 500px;
        margin: 20px auto;
        top: auto;
        right: auto;
    }

    .admin-servicios,
    .contratos-servicios,
    .reparaciones-servicios {
        width: 100%;
        margin: 10px 10px;
        max-height: none;
    }

    .txt-admin,
    .txt-reparaciones,
    .txt-contratos {
        font-size: 18px;
        margin: 15px 0;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .banner {
        padding: 30px 0;
    }

    .texto-banner {
        padding-top: 20px;
    }

    .texto-banner h2 {
        font-size: 24px;
    }

    .tit-1 {
        padding-left: 0;
        text-align: center;
        margin-top: 20px;
    }

    .txt-1 {
        padding-inline-end: 0;
        margin-left: 0;
        font-size: 16px;
        text-align: justify;
        min-width: 100%;
    }

    .contact-form {
        order: 2;
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
    }

    .contenedor-servicios {
        order: 3;
        background-image: none;
        min-height: auto;
    }

    main {
        display: flex;
        flex-direction: column;
    }

    .d-flex.align-items-end.justify-content-around {
        flex-direction: column;
    }

    .admin-servicios,
    .contratos-servicios,
    .reparaciones-servicios {
        width: 100%;
        margin: 10px 0;
        max-height: none;
    }

    .txt-admin,
    .txt-reparaciones,
    .txt-contratos {
        font-size: 18px;
        margin: 15px 0;
        text-align: center;
    }

    .equipo.d-flex {
        flex-direction: column;
        align-items: center;
        padding-right: 10px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-contenedor {
        width: 100%;
        margin-top: 5px;
    }

    .footer-info {
        margin-top: 20px;
        font-size: 16px;
    }
}

@media (min-width: 1398px) {
    .contact-form {
        margin-top: -50px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden; /* Previene el scroll dentro del modal */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Media queries para responsividad */
@media screen and (max-width: 768px) {
    .modal-image {
        max-width: 95%;
        max-height: 95vh;
    }
}
