body {
    background-image: url('../images/fondo-azul_.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-family: 'Outfit', sans-serif !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

.navbar {
    padding: 15px 5%;
}

.navbar-nav {
    display: flex;
    gap: 15px;
    margin-right: 0;
    padding: 0;
    list-style: none;
}

.navbar a {
    color: white !important;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}

.navbar a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar {
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .navbar {
        background-color: transparent; /* o el color que combine con tu fondo */
    }

    .navbar-toggler {
        border-color: white;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .navbar-nav .nav-link {
        color: white !important;
    }
}


.main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin: 40px 0 20px;
    padding: 0 20px;
}

.devices {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 0 20px;
}

.devices img {
    max-height: 180px;
    height: auto;
    width: auto;
    max-width: 100%;
}

@media (max-width: 600px) {
    .devices {
        gap: 15px;
    }
    
    .devices img {
        max-height: 120px;
    }
}


.btn-descubre {
    border: 3px solid white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
    margin: 20px auto;
    transition: all 0.3s;
    text-align: center;
}

.btn-descubre:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .btn-descubre {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.seccion-id {
    display: flex;
    flex-direction: column;
    padding: 30px 5%;
    color: white;
}

.texto-id {
    width: 100%;
    max-width: 100%;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.titulo-id {
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 20px;
    text-align: center;
}

.foto-id {
    width: 100%;
    display: flex;
    justify-content: center;
}

.foto-id img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.autor {
    margin-top: 30px;
    font-weight: 500;
    font-size: 1rem;
    text-align: right;
}

@media (min-width: 992px) {
    .seccion-id {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }
    
    .texto-id {
        width: 50%;
        max-width: 600px;
    }
    
    .foto-id {
        width: 50%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .texto-id {
        font-size: 1rem;
        text-align: left;
    }
}


.servicios-container {
    padding: 40px 5%;
    min-height: 100vh;
}

.servicio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}


.navbar-servicios-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-top: 40px;
}

.servicio-columns {
     display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 5%;
    gap: 80px;
}

.columna-izquierda,
.columna-derecha {
    width: 100%;
    min-width: 0;
}

.servicio-contenedor {
    display: inline-flex;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

.servicio-box {
    display: flex;
    flex-direction: row;
    border: 3px solid white;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    overflow: hidden;
    margin-bottom: 10px;
    align-items: stretch;
    width: auto;

}

.servicio-texto,
.servicio-highlight {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    padding: 10px 12px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-highlight {
    background-image: url('../images/fondo-azul.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 992px) {
    .servicio-columns {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .columna-izquierda,
    .columna-derecha {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .servicio-texto,
    .servicio-highlight {
      font-size: 1rem;
      padding: 8px;
    }
  }

  @media (max-width: 1024px) {
    .servicio-texto,
    .servicio-highlight {
      font-size: 1rem;
      line-height: 1.2;
      padding: 8px 6px;
    }
  }
  

  /* @media (max-width: 1280px) { 
    .servicio-texto,
    .servicio-highlight {
      font-size: 1rem;
      padding: 8px;
    }
  } */
  


@media (min-width: 992px) {
    .servicio-contenedor {
     margin-top: 60px;
     margin-left: 50px;
      justify-content: center;    /* centra horizontalmente las cajitas */
      display: flex;
      flex-wrap: wrap;
      width: 100%;
    }
  }
  


.social-icons {
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .social-icons a {
        margin: 0 8px;
        font-size: 1.3rem;
    }
}

.fondo-azul,
.fondo-servidores,
.fondo-robots,
.fondo-computadoras {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.fondo-servidores {
    background-image: url('../images/fondo-server.png');
}

.fondo-robots {
    /* background-image: url('../images/robots.jpg'); */
    background-color: #000 !important;
    background-image: none !important;
}

.fondo-computadoras {
    background-image: url('../images/fondo.computadoras.jpg');
}

@media (max-width: 768px) {
    .fondo-azul,
    .fondo-servidores,
    .fondo-computadoras {
        background-attachment: scroll;
    }
}


.robots-bottom-image {
    background-color: transparent;
    position: fixed;
    bottom: 0px;
    right: 20px;
    left: 220px;
    width: 250px;
    width: 100%;
    margin-top: 60px;
    text-align: center;
    z-index: 0;
}

.robots-bottom-image img {
    
    width: 100%;
    max-width: 800px;
    height: auto;
    opacity: 0.8;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px; /* espacio entre el texto y la imagen */
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;
}

.form-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 1;
}

.monograma-img {
    height: 30px; /* ajusta el tamaño según tu logo */
    width: auto;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* RESPONSIVE - para pantallas pequeñas */
@media (max-width: 600px) {
    .form-header {
        flex-direction: column;     /* apila texto y logo verticalmente */
        align-items: center;        /* centra en pantalla */
        text-align: center;
    }

    .form-header h2 {
        font-size: 1.4rem;
        white-space: normal;
    }

    .monograma-img {
        height: 35px;
        margin-top: 8px;
    }
}

.alert-success {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    transition: opacity 0.5s ease;
}




.formulario-contacto {
    position: relative;
    max-width: 600px;
    margin: 40px 0 40px 50px; /* margen arriba, abajo y más a la izquierda */
    padding: 30px;
    color: white;
    z-index: 10;
    font-family: 'Outfit', sans-serif;
    text-align: left;
}

.formulario-contacto h2 {
    text-align: left;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.8rem;
}

.formulario-contacto label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1.5px solid white;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.818); /* blanco translúcido */
    color: bl;
    font-size: 1rem;
    resize: none;
    backdrop-filter: blur(0px);
}

.formulario-contacto input::placeholder,
.formulario-contacto textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.formulario-contacto button {
    width: 100%;
    padding: 12px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.formulario-contacto button:hover {
    background-color: white;
    color: black;
}
