* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Encabezado y Navegación */
.encabezado {
    background: #f8f9fa;
    color: rgb(0, 0, 0);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-imagen {
    width: 60px;
    height: 50px;
    border-radius: 8px;
}

.logo-texto {
    font-weight: 700;
    font-size: 1.5rem;
    color: rgb(0, 0, 0);
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

/* Sección Principal */
.principal {
    padding: 160px 0 100px;
    color: #ffffff;
    text-align: center;
    background-color: #a1ade2;
}

.principal h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.principal p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

hr {
    margin-left: 2%;
    width: 95%;
    align-items: center;
}

/* Slider*/
.seccion-slider {
    padding: 80px 0;
    background-color: white;
    position: relative;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 40px;
}

.titulo-seccion h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.titulo-seccion p {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.contenedor-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    flex-grow: 1;
    /* El slider ocupa el espacio restante */
}

.diapositiva {
    min-width: 100%;
    padding: 50px;
    text-align: center;
    background: #f8f9fa;
}

.diapositiva.mision {
    background: #a3b5e0;
    color: white;
}

.diapositiva.vision {
    background: #a3b5e0;
    color: white;
}

.icono-diapositiva {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.diapositiva h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.diapositiva p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.flecha-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #90a4e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.5rem;
    z-index: 2;
}

#flecha-izquierda {
    left: 15px;
}

#flecha-derecha {
    right: 15px;
}

/* Aqui es una mini modificacion de el color de los servicios */

.seccion-servicios1 {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Sección Servicios y Proyectos */
.seccion-servicios {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tarjeta-servicio {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tarjeta-servicio:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icono-servicio {
    height: 180px;
    background-color: #a3b5e0;
    display: flex;
    background-size: cover;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.icono-proyecto1 {
    background-image: url(../Imagenes/Proyectos/marcador.png);
    height: 180px;
    display: flex;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.icono-proyecto2 {
    background-image: url(../Imagenes/Proyectos/sharas-slider.png);
    height: 180px;
    display: flex;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.icono-proyecto3 {
    background-image: url(../Imagenes/Proyectos/juego.png);
    height: 180px;
    display: flex;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.contenido-servicio {
    padding: 25px;
}

.contenido-servicio h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contenido-servicio p {
    color: #6c757d;
    margin-bottom: 20px;
}

.enlace-servicio {
    display: inline-block;
    color: #90a4e0;
    font-weight: 600;
    text-decoration: none;
}

.enlace-servicio:hover {
    color: #7a93d2;
}

/* Nueva sección de Objetivos y Valores */
.seccion-valores {
    padding: 80px 0;
    background-color: #fff;
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tarjeta-valor {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tarjeta-valor h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.tarjeta-valor ul {
    list-style: none;
    padding-left: 0;
}

.tarjeta-valor li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.tarjeta-valor li:before {
    content: "\2022";
    /* Unicode para el bullet point */
    color: #90a4e0;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Sección Contacto */
.seccion-contacto {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contenido-contacto {
    display: flex;
    gap: 40px;
}

.info-contacto {
    flex: 1;
}

.info-contacto h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.info-contacto p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.detalles-contacto {
    margin-top: 30px;
}

.detalle-contacto {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detalle-contacto i {
    width: 40px;
    height: 40px;
    background: #90a4e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.formulario-contacto {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.grupo-formulario {
    margin-bottom: 20px;
}

.grupo-formulario label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.grupo-formulario input,
.grupo-formulario select,
.grupo-formulario textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.grupo-formulario input:focus,
.grupo-formulario select:focus,
.grupo-formulario textarea:focus {
    border-color: #90a4e0;
    outline: none;
}

.boton-enviar {
    background: #90a4e0;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.boton-enviar:hover {
    background: #7a93d2;
}

/* futer */
.pie-pagina {
    background: #a3b5e0;
    color: white;
    padding: 50px 0 20px;
}

.contenido-pie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.columna-pie h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.columna-pie p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.enlaces-pie {
    list-style: none;
}

.enlaces-pie li {
    margin-bottom: 10px;
}

.enlaces-pie a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.enlaces-pie a:hover {
    opacity: 1;
    color: #050505;
}

.redes-sociales {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.redes-sociales a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}

.redes-sociales a:hover {
    background: #90a4e0;
}

.base-pie {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .principal h1 {
        font-size: 2.2rem;
    }

    .contenido-contacto {
        flex-direction: column;
    }

    .contenedor-slider {
        flex-direction: column;
    }

    .flecha-slider {
        margin: 15px 0;
        /* Ajusta el margen para estar arriba/abajo en pantallas pequeñas */
    }

    .slider {
        order: 2;
        /* Para que el slider esté debajo de las flechas */
    }

    #flecha-izquierda {
        order: 1;
        /* Para que la flecha izquierda esté arriba */
    }

    #flecha-derecha {
        order: 3;
        /* Para que la flecha derecha esté abajo */
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .principal h1 {
        font-size: 1.8rem;
    }

    .diapositiva {
        padding: 30px 20px;
    }

    .icono-servicio {
        height: 150px;
        font-size: 2.8rem;
    }

    .flecha-slider {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Reglas para la nueva sección en móviles */
    .grid-valores {
        grid-template-columns: 1fr;
    }
}