* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

/* HEADER */
header {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header .container.header-top {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header-top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    background: #007EBC;
}

.logo img {
    height: 40px;
}

.logo {
    background: transparent;
    padding: 0px 32px;
    height: 70px;       /* Igual que los otros bloques */
    border-radius: 0;   /* Sin curvas */
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 32px;
}

.header-center {
    background: #fff;
    padding: 0px 40px 0px 80px;
    display: flex;
    align-items: center;
    height: 70px; /* Igual que los otros bloques */
    margin: 0;
    box-shadow: none;
    text-transform: uppercase;
    flex: 1 1 auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.menu-item {
    position: relative;
}

.submenu {
    display: none !important;
    position: absolute;
    top: 100%; /* Justo debajo del padre */
    left: 0;   /* Alineado con el inicio del enlace padre */
    background: white;
    padding: 30px 0 0 0;
    margin: 0;
    list-style: none;
    border: none; /* Quitamos el borde gris */
    z-index: 9999;
}

.submenu li {
    padding: 10px;
    white-space: nowrap;
}

.submenu li a {
    display: block;
    width: 100%;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.submenu li a:hover {
    background: none;      /* sin sombreado */
    color: #00a7d1; 
}

.header-right {
    background: #fff;
    padding: 0px 20px 0px 40px;
    display: flex;
    align-items: center;
    margin: 0;
    box-shadow: none;
    height: 70px; /* Igual que los otros bloques */
    gap: 30px;
    flex-shrink: 0;
}



.btn-quote {
    background: #0056a3;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
}

.whatsapp {
    font-size: 15px;
    color: #333;
}

.whatsapp-icon {
    font-size: 22px;
    color: #25D366;
}

.whatsapp-icon img{
    height: 25px;
    width: auto;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.whatsapp-label {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    margin-bottom: 0;
}

/* HERO */
.hero {
    position: relative;
    height: 500px;
    /*background-size: cover;*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    display: flex;
    align-items: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    object-position: 50% 20%;
}

.overlay {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 🔹 cubre toda la imagen */
    background: rgba(0, 0, 0, 0.3); /* sombreado */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* encima de la imagen */
}

.hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* negro semitransparente */
    color: white;
    font-size: 14px;
    padding: 8px 20px;
    text-align: right;
    z-index: 2; /* encima de la imagen pero debajo del menú */
}


.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero-grid {
    display: flex;
    /*display: grid;*/
    grid-template-columns: minmax(250px, 300px) 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-spacer {
    height: 100% /* Ocupa el espacio equivalente a la imagen de presentación */
}

.hero-content {
    color: white;
    max-width: 600px;
    padding-left: 2rem;
}

@media (min-width: 769px) {
    .hero-grid {
        display: grid;
        grid-template-columns: minmax(250px, 300px) 1fr;
    }

    .hero-content {
        padding-left: 0; /* en escritorio, vuelve a depender del spacer */
    }

    .menu-item:hover .submenu,
  .header-center nav ul li:hover > .submenu {
      display: block !important;
  }
  
  /* Ocultar el checkbox en desktop */
  .submenu-toggle {
    display: none;
  }

}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.3;
    font-weight: bold;
}

.hero-content h1 span {
    color: #00a7d1;
}

.hero-content p {
    font-size: 1rem;
    margin-top: 10px;
}

.btn-primary {
    background: #007EBC;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
    border-radius: 4px;
}

/* Servicios */
.services {
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    padding: 20px;
    text-align: center;
    width: 150px;
    border-radius: 5px;
    border-top: 5px solid #007EBC;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card img {
    height: 60px;
    margin-bottom: 10px;
}

.service-card p {
    font-weight: bold;
    color: #007EBC;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.15);
}

/* PRESENTACIÓN */
.presentation {
    padding: 50px 0;
    background: white;
}

.presentation-grid {
    display: grid;
    grid-template-columns: minmax(250px, 300px) 1fr;
    gap: 30px;
    align-items: center;
}

.presentation-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.presentation-text h2 span {
    color: #00a7d1;
}

/* FOOTER */
footer {
    margin-top: 40px;
}

.footer-top {
    background: #007EBC;
    padding: 15px 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.social a img {
    height: 30px;
    margin-left: 10px;
}

.footer-bottom {
    background: #f8f8f8;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
}

.footer-bottom p {
    margin: 0;
}



/*Cambios 14-08*/
.celeste {
    color: #00a7d1;
    font-weight: normal;
    font-style: normal;
}

.presentation-text h2 span {
    color: #00a7d1;
}

.presentation-text h2 .negro {
    color: #222 !important;
}

.presentation-text p {
    line-height: 1.5;
}

.presentation .btn-primary {
    font-weight: bold;
}

/* ===== SOBRE NOSOTROS ===== */
.about {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 120px;
}

.about-text {
    max-width: 700px; /* 🔹 controla el ancho del texto */
}

.about-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.about-row img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
}

.celeste-bold {
    color: #00a7d1;
    font-weight: bold;
    font-style: normal;
}

.about-row div {
    flex: 1;
}

@media (max-width: 768px) {
    .about-row {
        flex-direction: column;
        text-align: center;
    }

    .about-row img {
        max-width: 100%;
    }
}

.about p {
    line-height: 1.8;
}

/* ===== EQUIPO ===== */
.team {
  background: linear-gradient(to bottom, #007EBC 50%, #ffffff 50%);
  padding: 40px 0;
}

.team-title {
  color: white;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Tarjeta */
.team-card {
  background: white;
  border-radius: 8px;
  width: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #00a7d1;
}

/* Parte superior gris con imagen */
.team-image {
  background: linear-gradient(to right, #e0e0e0, #f5f5f5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.team-image img {
  width: 150px;
  height: auto;
}

/* Caja blanca con todo el contenido */
.team-info-box {
  background: white;
  padding: 20px;
  text-align: left;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-top: -20px; /* Se superpone sobre la imagen */
  box-shadow: 0px -2px 8px rgba(0,0,0,0.1);
}

/* Encabezado: nombre + flecha */
.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.team-header h3 span {
  color: #007EBC;
}

.arrow-circle {
  background: #007EBC;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Texto descriptivo */
.team-info-box p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 15px 0;
}

/* Icono LinkedIn gris */
.linkedin-icon {
  display: inline-block;
  background: #ccc; /* gris claro */
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.linkedin-icon:hover {
  background: #999;
}


/* SERVICES*/

.services-section {
  background: #ffffff;
  padding: 40px 0;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* espacio entre tarjetas */
  margin-bottom: 40px;
}

.service-row .team-card {
  flex: 0 0 45%; /* ocupa aprox. la mitad de la fila */
  max-width: 350px; /* igual que las de team */
}

.services-section .team-image {
  padding: 0;               /* sin espacio interno */
  display: block;           /* no centrar con flex */
  height: 200px;            /* alto fijo para uniformidad */
  overflow: hidden;         /* recortar si la imagen se sale */
}

.services-section .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* llenar el espacio sin deformar */
  display: block;
}

/* CASOS DE EXITO */

.casos-exito-section {
  background: #fff;
  padding: 60px 20px;
}

.casos-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: bold;
  color: #333;
}

.casos-title span {
  color: #007EBC; /* Celeste */
}

.caso-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 40px;
}

.caso-row.reverse {
  flex-direction: row-reverse;
}

/*.caso-img {
  flex: 0 0 200px;
  text-align: center;
}

.caso-img img {
  max-width: 180px;
  border: 1px solid #ccc;
  padding: 20px;
  background: #fff;
  }*/

.caso-img {
  width: 150px;           /* ancho fijo del cuadro */
  height: 150px;          /* alto fijo del cuadro (cuadrado) */
  border: 1px solid #000; /* borde negro */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;         /* evita que se deforme */
  background: #fff;       /* fondo blanco uniforme */
}

.caso-img img {
  max-width: 80%;   /* que no sobrepase el cuadro */
  max-height: 80%;  /* mantiene proporciones dentro del cuadrado */
  object-fit: contain; /* centra sin recortar */
}


.caso-text {
  flex: 1;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

.caso-text span {
  font-weight: bold;
  color: #007EBC; /* Celeste para el nombre */
}

.casos-exito-section .container {
  max-width: 1000px; /* 🔹 Ajusta el ancho total (más centrado) */
  margin: 0 auto;    /* 🔹 Centrado en la página */
  padding: 0 20px;   /* 🔹 Espacio interno lateral */
}

.casos-detallado-section p {
  text-align: justify;
}

/* --- PAGINA 5--- */
/* --- Clientes Destacados --- */
.clientes-destacados-section {
  background: #fff;
}

.clientes-header {
  background: #fff;
  padding: 40px 20px 0 20px;
  text-align: center;
  margin-bottom: 30px;
}

.clientes-header h2 {
  font-size: 28px;
  color: #333;
}

.clientes-header h2 span {
  color: #007EBC;
}

/* Parte celeste en dos columnas */
.clientes-body {
  background: #007EBC;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;/* antes 40px → ahora más cerca */
  padding-bottom: 0; /* 🔹 quita el espacio extra debajo */
  margin-bottom: 0;  /* por si hay margen en la fila */
  position: relative;
}

.clientes-body .clientes-col {
  flex: 1;
}

.clientes-body .clientes-img {
  display: flex;
  justify-content: flex-end;
  margin-right: 80px; /* espacio entre imagen y borde derecho */
}


.clientes-body .clientes-img img {
  width: 100%;
  max-width: 380px;
  border-radius: 5px;
  margin-top: -25px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.clientes-body .clientes-lista {
  flex: 1;
}

.clientes-body .clientes-lista h2 {
  margin-bottom: 15px;
  font-size: 26px;
  font-weight: bold;
}

.clientes-body .clientes-lista ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 16px;
}

.clientes-body .clientes-lista ul li {
  margin-bottom: 10px;
}

/* --- Casos Detallados --- */
.casos-detallado-section {
  background: #fff;
  text-align: left; /* alineado normal */
  padding: 40px 10px;
  max-width: 975px;
  margin: 0 auto;
}

.casos-detallado-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.casos-detallado-section h2 span {
  color: #007EBC;
}

.casos-detallado-section p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* BLOG PAGINA 6 */


.blog-section {
  background: #fff;
  padding: 40px 0;
}

.blog-container {
  display: flex;
  gap: 0px;
}

.blog-posts {
  flex: 3;
  justify-content: flex-end;
   margin-right: 20;
  padding-right: 40px;
}

.blog-post {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.blog-img img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.blog-info h3 {
  color: #0074b8;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.blog-info .date {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 8px;
}

.blog-info p {
  color: #444;
}

.blog-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.page-btn {
  padding: 6px 12px;
  border: none;
  background: #444;
  color: white;
  cursor: pointer;
}

.page-btn.active,
.page-btn:hover {
  background: #0074b8;
}

.blog-sidebar {
  flex: 1;
  border-left: 1px solid #ddd;
  padding-left: 20px;
}

.blog-sidebar h3 {
  color: #0074b8;
  margin-bottom: 20px;
}

.recent-post {
  margin-bottom: 15px;
}

.recent-post p {
  margin: 0;
  color: #333;
}

.recent-post .date {
  font-size: 0.85rem;
  color: #777;
}

/* CONTACTOS PAGINA 7 */

.contact-section {
  background: #fff;
  padding: 40px 0;
}

.contact-container {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff; /* asegura fondo blanco */
  padding: 20px; /* espacio interno */
  box-sizing: border-box;
}

.contact-top {
  display: flex;
  gap: 30px;
}

.contact-info {
  background: #0077b6;
  color: #fff;
  padding: 30px;
  flex: 1;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h4 {
  margin-top: 20px;
  margin-bottom: 5px;
  font-weight: bold;
  text-transform: uppercase;
}

.contact-info p {
  margin: 0;
  font-size: 14px;
}

.contact-logo {
  max-width: 120px;
  margin-bottom: 20px;
}

.contact-socials {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.contact-socials img {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.contact-form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 30px;
  flex: 2;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
}

.contact-form button {
  background: #0077b6;
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #005f8a;
}

.contact-map img {
  width: 100%;
  display: block;
  border: 1px solid #ddd;
}

.contact-map {
    height: 400px; /* o la altura que prefieras */
}

/* LOGIN PAGINA 8 */
/* Fondo con overlay oscuro */
.login-section {
  position: relative;
  height: auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.login-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Contenedor blanco */
.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    z-index: 2;  /* Asegura que el formulario esté por encima de otros elementos */
    pointer-events: auto;
    position: relative;
}

.login-logo {
  max-width: 150px;
  margin-bottom: 15px;
  filter: brightness(0) saturate(100%) invert(39%) sepia(94%) saturate(2441%) hue-rotate(181deg) brightness(94%) contrast(95%);
}

.login-title {
  font-size: 18px;
  font-weight: bold;
  color: #0073b7;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

/* Inputs */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding: 5px;
}

.input-group input {
  border: 1px solid #ccc; /* borde simple */
  outline: none;
  flex: 1;
  padding: 8px;
  font-size: 14px;
  pointer-events: auto;
  z-index: 10;
  opacity: 1;
}

.input-icon {
  margin-right: 10px;
  font-size: 16px;
  color: #0073b7;
}

.input-icon img,.toggle-password img,.btn-login img {
  height: 16px;
  width: auto;
}

.toggle-password {
  margin-left: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #0073b7;
}

/* Botón y link */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-login {
  background: #0073b7;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-login:hover {
  background: #005b94;
}

.forgot-password {
  font-size: 13px;
  color: #0073b7;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/*AJUSTES PARA MOBILE*/
/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 20px;
}

/*@media (min-width: 769px) {
  .menu-item:hover .submenu,
  .header-center nav ul li:hover > .submenu {
      display: block;
  }
}*/

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }

  /* Header se convierte en barra celeste */
  .header-top {
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background: #007EBC;
  }

  .logo img {
    height: 35px;
  }

  /* Ocultar menú normal y zona derecha */
  .header-center,
  .header-right {
    display: none;
  }

  .hero,
  .header-top {
    margin: 0;
    width: 100%;
  }

  /* Botón hamburguesa visible */
  .menu-toggle {
    display: block;
  }

  /* Cuando el menú hamburguesa está activo → mostrar menú */
  #menu-toggle:checked ~ .header-center {
    display: block;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    background: #007EBC;
    padding: 15px 0;
    z-index: 1000;
    border-radius: 0 0 0 8px;
  }

  .header-center nav ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header-center nav ul li {
    margin: 0;
  }

  /*.header-center nav ul li a,
  .has-submenu label {
    display: block;
    width: 100%;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    text-decoration: none;
    cursor: pointer;
    background: #007EBC; 
  }*/
  .header-center nav ul li a {
      display: block;
      width: 100%;
      color: white;
      font-size: 16px;
      padding: 12px 20px;
      text-decoration: none;
      background: #007EBC;
    }

  .header-center nav ul li a:hover {
    background:#2691C7;
    color: white;
    outline: none;
  }


  /* 🔹 Submenú oculto por defecto */
  .has-submenu label {
    display: block;
    width: 100%;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    cursor: pointer;
    background: #007EBC;
    margin: 0; /* Asegurar que no hay márgenes extra */
    position: relative;
    z-index: 1001;
  }

  .has-submenu label:hover {
    background: #2691C7;
    color:white;

  }

  /* Configuración del submenú */
  .has-submenu {
    position: relative;
  }

  .submenu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 0;
    left: -220px; /* Mantener a la izquierda como querías */
    width: 220px;
    background: #005f8a; /* Color más oscuro para diferenciar */
    z-index: 1000;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border-radius: 0 0 8px 8px;
  }

  /* Mostrar submenú solo cuando el checkbox esté marcado */
  .submenu-toggle:checked ~ .submenu {
    display: block !important;
  }

  .submenu li {
    margin: 0;
  }

  /* Mantener visible submenú mientras hover sobre label o submenu */
  /*.has-submenu label:hover + .submenu,
  .submenu:hover {
      display: none;
  }*/

  /* 🔹 Mostrar submenú cuando el checkbox esté activado */
  .submenu-toggle {
    display: none; /* ocultar el checkbox */
  }

  .submenu li a {
    display: block;
    width: 100%;
    padding: 10px 15px; /* Padding normal para menú lateral */
    color: #fff;
    text-decoration: none;
    background: #005f8a;
    font-size: 15px;
  }

  .submenu li a:hover {
    background: rgba(255,255,255,0.15);
  }

  .menu-item:hover .submenu,
  .header-center nav ul li:hover > .submenu {
      display: none;
  } /* desactivar hover en móvil
  }

  /* PRESENTACIÓN responsiva */
  .presentation-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .presentation-image img {
    max-width: 220px;
    margin: 0 auto 20px auto;
  }

  .presentation-text {
    padding: 0 15px;
    text-align: left;
  }
}

/* ====== AJUSTES RESPONSIVE - NOSOTROS ====== */
@media (max-width: 768px) {
  /* Sección ABOUT */
  .about {
    padding: 0 20px; /* menos margen lateral */
    margin: 30px auto;
  }

  .about-row {
    flex-direction: column;  /* apilar imagen y texto */
    text-align: center;        /* mantener texto alineado a la izquierda */
    gap: 20px;
  }

  .about-row img {
    max-width: 250px;   /* reducir tamaño imagen */
    margin: 0 auto;     /* centrar en móvil */
    order: -1; /* 🔹 fuerza a que la imagen vaya primero siempre */
    margin-bottom: 15px;
  }

  .about h2 {
    font-size: 22px;
  }

  .about p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Sección EQUIPO */
  .team {
  background: linear-gradient(to bottom, #007EBC 30%, #ffffff 30%);
  padding: 40px 0;
  }

  .team-container {
    flex-direction: column;  /* apilar tarjetas */
    align-items: center;     /* centrar */
    gap: 20px;
  }

  .team-card {
    width: 100%;       /* ocupar todo el ancho disponible */
    max-width: 340px;  /* pero con un límite */
  }

  .team-info-box {
    text-align: center; /* centrar contenido en móvil */
  }

  .team-header {
    justify-content: center;
    gap: 10px;
  }

  /*PAGINA 3 Services en una sola columna */
  .service-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .service-row .team-card {
    flex: 0 0 100%;
    max-width: 90%;   /* deja márgenes a los lados */
  }

  /* PAGINA 4 Casos de Éxito en una sola columna */

  /* 🔹 Reorganizar las filas */
  .caso-row,
  .caso-row.reverse {
    text-align: center;      /* centrar contenido */
    gap: 15px;               /* espacio entre imagen y texto */
    margin-bottom: 30px;
  }

  /* 🔹 Imagen más pequeña */
  .caso-img {
    width: 120px;    /* más compacto */
    height: 120px;
    margin: 0 auto;  /* centrado */
  }

  /* 🔹 Texto más compacto */
  .caso-text {
    font-size: 0.9rem;  /* reduce tamaño de fuente */
    line-height: 1.4;   /* menos espaciado */
    padding: 0 15px;    /* respiro lateral */
  }

  .caso-text span {
    display: block;      /* nombre en línea propia */
    margin-bottom: 4px;
  }

  /** PAGINA 5 Clientes Destacados **/
  .clientes-body {
    flex-direction: column;   
    align-items: center;      
    text-align: center;       
    padding: 20px 10px; /* 🔹 dejamos el padding normal */
  }

  .clientes-body .clientes-img {
    margin: -30px 0 20px 0;  /* 🔹 la imagen sube (se mete al blanco) */
    justify-content: center;  
  }

  .clientes-body .clientes-img img {
    max-width: 250px;         /* más chica en móvil */
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  }

  .clientes-body .clientes-lista {
    flex: unset;              /* que no intente estirarse */
    text-align: center;
  }

  .clientes-body .clientes-lista ul {
    list-style: disc;       /* mantiene los puntitos */
    padding-left: 20px;     /* espacio para que se vean */
    margin: 0 auto;
    display: inline-block;  /* centra la lista */
    text-align: left;       /* pero mantiene los bullets a la izquierda */
  }

  .clientes-body .clientes-lista li {
    margin-bottom: 8px;
    font-size: 16px;
  }

  /* PAGINA 6 BLOG */
  .blog-container {
    flex-direction: column; /* Posts arriba, sidebar abajo */
  }

  .blog-posts {
    padding-right: 0;   /* quitar espacio extra */
    margin-bottom: 30px; /* separar posts del sidebar */
  }

  .blog-sidebar {
    border-left: none;  /* quitar la línea vertical */
    border-top: 1px solid #ddd; /* opcional: separar con línea arriba */
    padding-left: 0;
    padding-top: 20px;
  }

  .blog-post {
    flex-direction: column; /* imagen arriba, texto debajo */
    align-items: center;
    text-align: center;
  }

  .blog-img img {
    width: 100%;
    max-width: 280px; /* ajusta tamaño de imagen en móvil */
    margin-bottom: 10px;
  }

  .blog-info {
    text-align: left; /* o center si lo prefieres */
  }

  /* PAGINA 7 CONTACTO */
  .contact-top {
    flex-direction: row;
    gap: 20px;
  }

  /* Bloque azul ocupa todo el ancho */
  .contact-info {
    flex: 1;               /* ocupa mitad */
    max-width: 50%;        /* asegura que no se expanda demasiado */
    padding: 15px;         /* menos padding interno */
    font-size: 13px;       /* texto más compacto */
  }

  /* Formulario ocupa todo el ancho */
  .contact-form {
    flex: 1;
    max-width: 50%;        /* ocupa mitad */
    padding: 15px;
  }

  /* Inputs de Nombre y Apellido apilados */
  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-row input {
    width: 100%; /* ocupa todo el ancho */
  }

  /* Reducir un poco tipografía en general */
  .contact-form input,
  .contact-form textarea,
  .contact-form button,
  .contact-info p {
    font-size: 13px;
  }

  .contact-form textarea {
    min-height: 100px; /* un poco más compacto */
  }

  /*8 LOGIN*/
  .login-section ~ footer .footer-flex {
    flex-direction: column;   /* logo arriba, redes abajo */
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .login-section ~ footer .footer-logo {
    margin-bottom: 10px;
    height: 35px; /* un poco más pequeño para móvil */
  }

  .login-section ~ footer .social {
    justify-content: center;
  }

  .login-bg {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }

  .login-section {
    min-height: 100vh;
  }

  .login-container {
    max-width: 80%;
    box-sizing: border-box; /* asegura que el padding no cause desbordamiento */
  }


}

