* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background-color: #132544;
    color: #fff;
}

/* HEADER */
.header {
    position: relative;
    height: 100vh;
    background: url('img/cables.png') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Filtro azul */
.header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 37, 68, 0.6);
    z-index: 0;
}

/* Barra superior con líneas arriba y abajo */
.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    background-color: #f5e5d2;
    border-top: 1px solid rgba(19, 37, 68, 0.3);
    border-bottom: 1px solid rgba(19, 37, 68, 0.3);
}

.logo {
    height: 80px;
}

/* Navegación */
.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    color: #132544;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

/* Línea divisora entre enlaces */
.nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: rgba(19, 37, 68, 0.3);
}

.nav a:hover {
    color: #E87A39;
}

/* Header texto */
.header-text {
    position: relative;
    z-index: 2;
    text-align: left;
    margin: 8rem 0 5rem 8%;
    max-width: 700px;
}

.header-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #E87A39;
    line-height: 1.2;
}

.header-text p {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #f1f1f1;
}

.btn-info {
    background-color: #fff;
    color: #132544;
    border: none;
    padding: 0.8rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.btn-info:hover {
    background-color: #E87A39;
    color: #fff;
}

/* SECCIÓN INFORMATIVA */
.info-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #132544; /* azul del sitio */
  color: #fff;
  padding: 3rem 8%;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Texto a la izquierda */
.info-box {
  flex: 1 1 55%;
  text-align: justify;
}

.info-box h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.7rem;
  color: #ffffff;
}

.info-box p {
  margin-bottom: 1.2rem;
  line-height: 1.0;
  font-size: 1.05rem;
}

/* Imagen a la derecha, misma altura */
.info-img {
  flex: 1 1 25%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.info-img img {
  width: 75%;
  max-width: 350px;
  height: auto;
  object-fit: cover; /* 🔹 llena verticalmente el espacio */
  border-radius: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .info-section {
    flex-direction: column;
    padding: 2rem 5%;
  }

  .info-box {
    flex: 1 1 100%;
    text-align: justify;
  }

  .info-img {
    justify-content: center;
    flex: 1 1 100%;
  }

  .info-img img {
    width: 90%;
    height: auto;
    border-radius: 10px;
  }
}

/* SECCIÓN CENTRAL */
.servicios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: url('img/fondo.png') no-repeat center center/cover;
    padding: 4rem 5%;
    gap: 2rem;
}

.cuadro-beige {
    background-color: #f5e5d2;
    color: #132544;
    flex: 1 1 300px;
    max-width: 300px;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.img-beige {
    width: 100%;
    border-radius: 10px;
}

.texto-beige h2 {
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1.3rem;
}
.texto-beige p {
    margin-top: 1rem; 
    font-size: 1rem;
}

/* CUADROS SERVICIOS */
.cuadros-servicios {
    flex: 3 1 600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.cuadro {
    background-color: rgba(19, 37, 68, 0.85);
    text-align: center;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.cuadro:hover {
    transform: translateY(-5px);
}

/* 🔹 Imagen más chica y estable */
.cuadro img {
    width: 90%;
    height: 140px; /* 🔹 antes 180px */
    object-fit: contain; /* 🔹 evita que se corten */
    border-radius: 10px;
    margin: 0 auto;
}

.cuadro p {
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* FOOTER */
.footer {
    background-color: #132544;
    padding: 2rem 5%;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;  /* distribuye info izquierda / logo derecha */
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    color: #fff;
    font-size: 1rem;
    flex: 1;
    text-align: left; /* texto a la izquierda */
}

.footer-logo {
    height: 90px;
    flex-shrink: 0; /* evita que el logo se deforme */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-info {
        text-align: center; /* centrado en móvil */
    }

    .footer-logo {
        margin-top: 1rem;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-text {
        margin: 6rem 5% 3rem;
        text-align: center;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .header-text p {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column;
    }

    .nav {
        margin-top: 10px;
    }

    .servicios {
        flex-direction: column;
        align-items: center;
    }

    .cuadro-beige {
        max-width: 90%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        height: 70px;
        margin-top: 1rem;
    }
}
/* RESPONSIVE */
@media (max-width: 992px) {
  .info-container {
    flex-direction: column;
    text-align: center;
  }

  .info-box {
    text-align: justify;
    flex: 1 1 100%;
  }

  .info-img img {
    width: 70%;
    max-width: 300px;
  }
}
