body {
    background-color: #132d66;
    background-image: url('IMG/fondoseri.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 120vh;
    padding-top: 110px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ===== CABEZA Y MENU ===== */
header {
    background-color: rgb(228, 230, 234);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    position: fixed;
    top: 0;
    width: 97%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.LOGO {
    width: 90px;
    cursor: pointer;
    transition: transform 0.3s;
}

.LOGO:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: #23396a;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 22px;
    margin-left: 12px;
}

nav a:hover {
    background-color: #2b236a;
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    color: #23396a;
}

/* ===== ESTRUCTURA PRINCIPAL ===== */
section > div {
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.bienvenido, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bienvenido {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.bienvenido2 {
    margin-left: 90px;
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =====  TEXTO  Y COLORES===== */
h1, h2, h3 {
    color: #27236a;
    margin-bottom: 15px;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }

p {
    font-size: 20px;
    margin-bottom: 15px;
    color: #555;
}

strong { color: #2c236a; }

/* ===== IMÁGENES ===== */
img { max-width: 100%; height: auto; }
.SALUDO, .VALORES { width: 22%; }
.TRABAJO { width: 35%; }

/* ======================================
 SECCIÓN COMPUTADORA (CAMBIAR IMAGENES) 
 ========================================== */
.PARTECOMPU {
   margin-bottom: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.olla {
    position: relative;
    width: 90%;
    max-width: 700px;
}

article {
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 3px solid #23396a;
    padding: 10px;
    display: flex;
    justify-content: center;
    position: relative;
}

#intro, #olla-img {
    width: 100%;
    border-radius: 8px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 57, 106, 0.7);
    color: white;
    border: none;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.arrow:hover {
    background: rgba(35, 57, 106, 1);
}


/*VALORES*/
#valores{
    margin-bottom: 170px;
}

/* ======================
       MISIÓN Y VISIÓN 
 ======================= */
#MisionVision.container {
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

#MisionVision.container{margin-bottom: 80px;}



#MisionVision.container h2 {
    color: #0a77e0;
    margin-top: 10px;
    font-size: 46px;
    font-weight: bold;
}

#MisionVision.container p {
    color: #f2f2f2;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.4;
}

#MisionVision .card {
    position: relative;
    width: 400px;
    height: 320px;
    padding: 30px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#MisionVision .card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(48, 47, 47, 0.625);
    backdrop-filter: blur(1px);
    z-index: 1;
    border-radius: 12px;
}

#MisionVision .card h2,
#MisionVision .card p {
    position: relative;
    z-index: 2;
}

.mision-card { background-image: url("IMG/MISION.png"); }
.vision-card { background-image: url("IMG/VISION.png"); }

/* =================
      PROYECTOS
 =================== */
#proyectos.bienvenido { background-color: transparent; }
#proyectos .bienvenido2 { 
    background-color: transparent; 
    box-shadow: none; 
    padding: 20px 0; 
    margin: 0; 
}

#proyectos .bienvenido2{margin-top: -100px; margin-bottom: 130px;}

.proyectos1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.PROYECTO {
    background-color: rgba(121, 63, 230, 0.268); 
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.363); 
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.PROYECTO:hover { transform: translateY(-5px); }

.PROYECTO img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.proyectos1 p {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ddd7d7;
    text-shadow: #333;
}

.proyectos1 h3 {
    border-radius: 2px;
    padding: 5px 10px;
    background-color: #ddd7d7;
    color: #1f4a9f;
    font-size: 25px;
}

.bienvenido2 h1,
.bienvenidos2 h1 {
    text-align: center;
    margin-bottom: 30px;
    background-color: #fbf8f8;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.bienvenidos2{margin-bottom: 200px;}

.bienvenido2 h1 { color: #1f1f9f; font-size: 28px; }
.bienvenidos2 h1 { color: #1f309f; font-size: 28px; }

/* ================= 
       SERVICIOS
================= */
#servicios.container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    align-items: center;
    padding-left: 160px;
}

#servicios.container .card:nth-child(odd),
#servicios.container .card:nth-child(even) {
    margin-top: -10px;
    padding: 30px 20px;
}

#servicios.container .card:nth-child(odd) {
    border: 6px solid #490dba;
    border-radius: 100px 50px;
}

#servicios.container .card:nth-child(even) {
    border: 6px solid #1141a9;
    border-radius: 50px 100px;
}

/* =====================
TARJETA DE LOS PRECIOS
 ====================== */
.container {
    margin-left: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

#precios{ margin-left: 100px; margin-top: 200px; margin-bottom: 150px;}

.card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: #2051e3;
    margin: 15px 0;
}

.btn {
    font-size: 20px;
    background-color: #3136ba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover { background-color: #1a2d52; }

/* =========
LAS PATAS
 =========== */
footer {
    background-color: #2c236ac4;
    color: white;
    padding: 40px 20px;
}

.pie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.columna {
    flex: 1;
    min-width: 250px;
}

.columna h2, .columna h3 { color: white; }
.columna p { color: #e0e0e0; }

iframe {
    width: 80%;
    height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ===================
 RESPONSIVE LA PAGINA
 ===================== */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    
    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: white;
        position: absolute;
        top: 70px;
        right: 10px;
        width: 220px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    nav.active { display: flex; }
    nav a:hover { background-color: #23396a; color: white; }
    
    header { width: 89%; justify-content: space-between; }
    
    #proyectos .bienvenido2 { background-color: transparent; box-shadow: none; }
    .proyectos1 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); width: 90%; }
    .PROYECTO { width: 25%; min-height: 200px; }
    
    #servicios.container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 35px;
        width: 100%;
        margin-left: 20px;
    }
    
    #servicios.container .card,
    #MisionVision .card { width: 100%; margin: 0; }
    
    #MisionVision.container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .PARTECOMPU {
        margin-top: 50px;
        width: 115%;  
        height: 115%;
        margin-bottom: 70px;
        flex-direction: column;
        text-align: center;
    }
    
    .bienvenido {
        width: 100%;
        margin-bottom: 100px;
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        padding: 0 5px;
    }
    
    .bienvenido img {
        order: -1;
        text-align: center;
        width: 95%;
        max-width: 300px;
        object-fit: cover;
    }
    
    .bienvenido .SALUDO { margin-left: 70px; width: 70%; }
    .bienvenido .VALORES { margin-top: 100px; margin-left: 70px; width: 70%; }
    .bienvenido .TRABAJO {  margin-left: 70px; width: 115%; }
    
    .bienvenido2 {
        width: 110%;
        margin-left: 9vh;
        padding: 15px 10px;
        text-align: justify;
    }
    
    .bienvenidos2 { width: 100%; padding: 0 5px; }
    
    #MisionVision.container {
        margin-bottom: 70px;
        margin-top: 20px;
        flex-direction: column;
        margin: 0;
        align-items: center;
        padding: 0 10px;
    }
    
    #MisionVision .card { width: 95%; margin-bottom: 25px; height: auto; }
    
    #proyectos .bienvenido2 { margin-left: 70px; }
    
    .proyectos1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        justify-content: center;
    }
    
    .PROYECTO {
        width: 98%;
        min-height: 260px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .PROYECTO img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    #servicios.container {
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
        gap: 25px;
    }
    
    #servicios.container .card { width: 100%; min-width: auto; max-width: 300px; }
    
    #precios.container {
        margin-left: 17px;
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }
    
    #precios .card { width: 90%; max-width: 400px; }
    
    #Contacto {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        width: 110%;
    }
    
    .servicio { margin-left: 0; width: 100%; }
    iframe { width: 100%; }
}
