/* =====================
   ESTILOS BASE
   ===================== */
html {
  scroll-behavior: smooth;
}

body, button, input, textarea {
  font-family: 'Poppins', Arial, Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

p {
  color: #737373;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

strong {
  font-weight: 600;
}

em {
  font-style: normal;
}

img {
  border-radius: 8px;
}

i {
  font-size: 3.5rem;
  margin-right: 10px;
}

/* =====================
   ACCESIBILIDAD Y SEO
   ===================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #00A754;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Mejoras de navegación por teclado */
.paso-cuadro:focus,
nav ul li a:focus,
.sidenav a:focus,
.btn:focus {
  outline: 2px solid #00A754;
  outline-offset: 2px;
}

/* Mejoras de contraste para accesibilidad */
.white-text {
  color: #ffffff !important;
}

.grey-text.text-lighten-1 {
  color: #f5f5f5 !important;
}

/* Mejoras para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================
   TIPOGRAFÍA Y ENCABEZADOS
   ===================== */
h1, h2, h3, h4, h5, h6 {
  color: #263238;
  font-family: 'Quicksand', Arial, Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

/* =====================
   NAVEGACIÓN
   ===================== */
nav {
  height: 80px;
  display: flex;
  align-items: center;
  overflow: visible !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  transition: background-color 0.3s ease;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
}

nav .brand-logo img {
  max-height: 60px;
  padding: 10px 10px 18px 10px;
  height: auto;
  width: auto;
  display: block;
  margin-top: 10px;
}

nav ul li {
  display: inline-block;
  vertical-align: middle;
}

nav ul li a {
  color: #00A754;
  font-family: 'Poppins', Arial, Tahoma, sans-serif;
  font-size: 1em;
  font-weight: 500;
  padding: 25px 20px;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  display: inline-block;
  line-height: 30px;
  text-decoration: none;
  background-color: transparent;
  border-bottom: 2px solid transparent;
  height: auto;
}

nav ul li a:hover,
nav ul li.active a {
  color: #000000;
  background-color: transparent;
  border-bottom-color: #00A754;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: auto;
  padding: 0;
}

.nav-logo {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  margin: 0 auto;
}

/* =====================
   SLIDER PRINCIPAL
   ===================== */

.slider .slides li .caption {
  background: rgba(255, 255, 255, 0.562);
  padding: 20px 20px 20px 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 400px;
  position: absolute;
  right: -100px;
  transform: translateY(-50%);
  text-align: left;
  top: 25%;
  left: 30%;
}

.slider .slides li .caption h1 {
  font-size: 1.2lh;
  letter-spacing: 2px;
  color: #00A754;
  margin-bottom: 20px;
  margin-top: 0;
  font-weight: 700;
}

.slider .slides li .caption h2 {
  font-size: 2.3lh;
  color: #222 !important;
  font-weight: 500;
  margin: 0;
}

.slider-caption {
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  width: 100%;
  max-width: none;
}

.slider-caption h4 {
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.slider-caption h3 {
  color: #222;
  font-size: 3.5rem;
}

.slider {
  height: 50vh;
  width: 100%;
  position: relative;
}

.slider .slides {
  position: relative !important;
}

.slider .slides li img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  overflow: visible !important;
}

/* =====================
   SECCIÓN NOSOTROS
   ===================== */
#nosotros {
  border-top: 4px solid #00A754;
  padding-top: 40px;
}

.quienes-somos-img {
  max-width: 100%;
  height: 100%;
}

.iconos-nosotros {
  margin-top: 64px !important;
  margin-bottom: 64px !important;
}

.iconos-nosotros img {
  width: 80px;
}

.agencia-logo-container {
  text-align: center;
  margin-top: 64px;
  margin-left: calc(50% - 50vw);
  padding: 64px 0 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: url(./images/706.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  height: 100%;
  width: 100%;
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.agencia-logo-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.agencia-logo-container > * {
  position: relative;
  z-index: 2;
}

.agencia-logo-container p {
  color: #fff !important;
}

.agencia-logo {
  max-width: 300px;
}

/* =====================
   SECCIÓN SISTEMAS
   ===================== */
#sistemas {
  padding-bottom: 64px;
}

.gestion-pasos-cuadricula {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.paso-cuadro {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.paso-cuadro:hover, .paso-cuadro.activo {
  box-shadow: 0 6px 24px rgba(0,167,84,0.15);
  transform: translateY(-6px) scale(1.03);
}

.paso-cuadro img {
  width: 150px;
  margin-bottom: 24px;
}

.paso-cuadro h6 {
  font-size: 1.2rem;
  color: #263238;
}

#paso-info {
  margin: 32px 0 0 0;
  max-width: none;
  width: 100%;
  background: var(--verde-institucional);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 32px 24px;
  display: none;
  text-align: left;
  color: #fff;
}

#paso-info.activo {
  display: block;
}

#paso-info h5, #paso-info h4, #paso-info ul, #paso-info li {
  color: #fff;
}

#paso-info ul {
  margin-top: 16px;
  margin-bottom: 16px;
}

#paso-info .btn-small.gestion-paso-btn {
  margin-top: 16px;
  width: auto;
  display: inline-block;
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.1rem;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

#paso-info .btn-small.gestion-paso-btn:hover {
  background: #fff !important;
  color: var(--verde-institucional) !important;
  border: 2px solid #fff !important;
}

.paso-info-flex {
  display: flex;
  align-items: center;
  gap: 32px;
}

.paso-info-img {
  flex: 0 0 auto;
  max-width: 90%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.paso-info-img img {
  width: 300px;
  max-width: 100%;
  display: block;
}

.paso-info-texto {
  flex: 1 1 0;
}

.beneficios-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.beneficios-lista li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #737373;
  font-family: 'Poppins', Arial, Tahoma, sans-serif;
}
.beneficios-lista li img {
  flex-shrink: 0;
  margin-right: 0;
  margin-top: 3px;
}
.beneficios-lista li span {
  display: block;
  margin-left: 0;
}

/* =====================
   SECCIÓN SOLUCIONES
   ===================== */
#soluciones {
  padding-bottom: 64px;
}

.soluciones-bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 32px;
}

.soluciones-bloque .col {
  /* flex: 1 1 0; */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.soluciones-bloque .left-align {
  text-align: left !important;
}

.soluciones-bloque img {
  max-width: 100%;
  height: 100%;
  border-radius: 16px;
}

.soluciones-bloque ul {
  padding-left: 20px;
  margin: 16px 0;
}

.soluciones-bloque ul li {
  margin-bottom: 8px;
  color: #737373;
  font-size: 1.1rem;
}

.monitoreo-img {
  max-width: 100%;
  height: 100%;
}

/* =====================
   CAROUSELS
   ===================== */
.carousel-clientes, .carousel-socios {
  height: 120px !important;
  margin: 0 auto 32px auto;
  background: transparent !important;
  overflow: hidden !important;
}

.carousel-clientes .carousel-item, .carousel-socios .carousel-item {
  width: 180px !important;
  height: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  padding: 8px !important;
  transition: transform 0.3s ease !important;
}

.carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
  max-width: 100% !important;
  max-height: 110px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s ease !important;
}

/* =====================
   SECCIÓN CONTACTO
   ===================== */
#contacto {
  background: #eceff1;
  position: relative;
}

#contacto.contacto-bg {
  background: url('./images/engranajes.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 64px 0 !important;
}

#contacto.contacto-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#contacto .row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

#contacto .contacto-info, #contacto .contacto-form {
  border-radius: 0;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 48px 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

#contacto .contacto-info {
  background: rgba(0, 167, 84, 0.95);
  border-radius: 24px 0 0 24px;
}

#contacto .contacto-form {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 0 24px 24px 0;
}

#contacto .contacto-info h2, #contacto .contacto-form h3 {
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#contacto .contacto-info p, #contacto .contacto-info a, #contacto .contacto-form label, #contacto .contacto-form input, #contacto .contacto-form textarea {
  color: #fff !important;
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

#contacto .contacto-info i {
  font-size: 2.2rem !important;
  margin-right: 16px;
  vertical-align: middle;
}

#contacto .contacto-info p {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

#contacto .contacto-form .btn {
  width: 100%;
  font-size: 1.3rem;
  border-radius: 32px;
  margin-top: 24px;
  background: #263238 !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: none !important;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  text-align: center;
  outline: none;
}

#contacto .contacto-form .btn:hover, #contacto .contacto-form .btn:focus {
  background: #00A754 !important;
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(0,167,84,0.15);
  border: none !important;
}

/* =====================
   FOOTER
   ===================== */
footer.page-footer {
  background: #263238;
  border-top: 4px solid #00A754;
  padding-top: 40px;
  color: #fff;
  font-size: 1.08rem;
}

.footer-visual {
  padding: 0;
  min-height: 300px;
}

.footer-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo {
  max-width: 110px;
  margin-bottom: 12px;
  display: block;
  margin-left: 0;
  margin-right: 0;
}

.footer-hr {
  margin: 28px auto 18px auto;
  border: none;
  border-top: 1.5px solid #00A754;
  width: 92%;
}

footer .grey-text.text-lighten-1 {
  color: #b0bec5;
  font-size: 1.08rem;
  text-align: left !important;
}

footer .white-text {
  color: #fff !important;
  text-align: left !important;
}

footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px 0;
  text-align: left !important;
}

footer ul li {
  margin-bottom: 6px;
  text-align: left !important;
}

footer ul li a {
  color: #b0bec5;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.08rem;
  text-align: left !important;
}

footer ul li a:hover {
  color: #00A754;
}

footer .fa, footer .fab {
  color: #b0bec5;
  transition: color 0.2s;
  font-size: 1em !important;
  vertical-align: middle;
  margin-right: 8px;
}

footer .fa-envelope {
  margin-right: 0 !important;
}

footer .fa:hover, footer .fab:hover {
  color: #00A754;
}

footer .footer-copyright-text {
  font-size: 1.05rem;
  display: block;
  padding: 10px 0 8px 0;
  text-align: center;
}

footer .footer-contacto p {
  margin: 0 0 8px 0;
  display: flex;
  gap: 8px;
  font-size: 1.08rem;
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

footer .footer-contacto a {
  color: #b0bec5;
  text-decoration: none;
}

footer .footer-contacto a:hover {
  color: #00A754;
}

footer .footer-social {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

@media (min-width: 993px) {
  .footer-container .row > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: 180px;
    text-align: left !important;
  }
}

@media (max-width: 992px) {
  .footer-container .row > div {
    text-align: left !important;
    margin-bottom: 18px;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  .footer-logo {
    margin-left: 0;
    margin-right: 0;
    max-width: 90px;
  }
  .carousel-clientes .carousel-item img,
  .carousel-socios .carousel-item img {
    max-width: 140px !important;
    max-height: 90px !important;
  }
}

@media (max-width: 600px) {
  .footer-container .row > div {
    text-align: left !important;
    margin-bottom: 18px;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  .footer-logo {
    margin-left: 0;
    margin-right: 0;
    max-width: 70px;
  }
  .footer-hr {
    width: 98%;
  }
  footer .fa, footer .fab {
    font-size: 1.5rem !important;
  }
  footer .footer-contacto p {
    font-size: 1rem;
  }
  footer ul li a {
    font-size: 1rem;
  }
  .carousel-clientes .carousel-item img,
  .carousel-socios .carousel-item img {
    max-width: 110px !important;
    max-height: 70px !important;
  }
}

/* =====================
   UTILIDADES
   ===================== */
.divider {
  border-top: 0.5px solid #00000013 !important;
  height: 0.5px !important;
  max-width: 90% !important;
  margin: 30px auto !important;
  overflow: hidden;
  background-color: #e0e0e0;
}

.container {
  max-width: 1060px;
  width: 90vw;
  margin: 0 auto;
}

.pt {
  padding-top: 60px;
}

.row {
  margin-bottom: 0 !important;
}

/* =====================
   COLORES
   ===================== */
.yellow-text.text-darken-2 {
  color: #ffc000;
}

.blue-text.text-darken-2 {
  color: #558ed5;
}

.green-text.text-darken-2 {
  color: var(--verde-institucional);
}

/* Sobrescribir colores verdes de Materialize con el color de la marca */
.green-text {
  color: var(--verde-institucional) !important;
}

.green.darken-2 {
  background-color: var(--verde-institucional) !important;
}

.green {
  background-color: var(--verde-institucional) !important;
}

.brand-color {
  background-color: var(--verde-institucional) !important;
}

/* =====================
   MEDIA QUERIES UNIFICADAS
   ===================== */

@media (min-width: 1200px) {
  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

@media (min-width: 600px) and (max-width: 991px) {
  nav {
    height: 60px;
  }
  .nav-logo {
    max-height: 36px;
  }
  .logo-wrapper {
    width: 44px;
    height: 60px;
    top: 0;
  }
  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  .slider .slides {
    height: 100% !important;
  }
  nav ul li a {
    font-size: 13px;
    padding: 14px 10px !important;
  }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1.1rem; }
  .slider .slides li .caption h4,
  .slider .slides li .caption h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 599px) {
  nav {
    height: 50px;
  }
  .nav-logo {
    max-height: 28px;
  }
  .logo-wrapper {
    width: 55px;
    height: 60px;
    top: 0;
}

  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  .slider .slides {
    height: 100% !important;
}
  nav ul li a {
    font-size: 12px;
    padding: 10px 6px !important;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  .slider .slides li .caption h4,
  .slider .slides li .caption h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 1200px) {
  nav {
    height: 70px;
  }
  .nav-logo {
    max-width: 160px;
  }
  .logo-wrapper {
    width: auto;
    height: auto;
    padding: 0;
  }
  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  nav ul li a {
    font-size: 12px;
    padding: 25px 17px !important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {
  nav {
    height: 70px;
  }
  .nav-logo {
    height: 48px !important;
  }
  .logo-wrapper {
    width: 80px;
    height: 85px;
    top: 0;
}
  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
.slider .slides {
    height: 100% !important;
}
  nav ul li a {
    font-size: 12px;
    padding: 20px 17px !important;
}

}

@media (min-width: 600px) and (max-width: 991px) {
  nav {
    height: 60px;
  }
  .nav-logo {
    max-height: 36px;
  }
  .logo-wrapper {
    width: 44px;
    height: 60px;
    top: 0;
  }
  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  .slider .slides {
    height: 100% !important;
}
  nav ul li a {
    font-size: 13px;
    padding: 14px 10px !important;
  }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1.1rem; }
  .slider .slides li .caption h4,
  .slider .slides li .caption h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 599px) {
  nav {
    height: 50px;
  }
  .nav-logo {
    max-height: 28px;
  }
  .logo-wrapper {
    width: 55px;
    height: 60px;
    top: 0;
}

  .slider {
    height: 50vh !important;
  }
  .slider .slides li img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  .slider .slides {
    height: 100% !important;
}
  nav ul li a {
    font-size: 12px;
    padding: 10px 6px !important;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  .slider .slides li .caption h4,
  .slider .slides li .caption h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .soluciones-bloque {
    flex-direction: column !important;
    text-align: center;
    gap: 32px;
    margin-bottom: 48px;
    padding: 24px 0;
  }
  .soluciones-bloque .col {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
    order: unset !important;
  }
  .soluciones-bloque .left-align {
    text-align: center !important;
    order: 1 !important;
  }
  .soluciones-bloque .center-align {
    order: 2 !important;
  }
  .soluciones-bloque img {
    max-width: 95vw;
    width: 100%;
    height: auto;
    margin: 24px auto 0 auto;
    display: block;
    border-radius: 16px;
  }
  .soluciones-bloque ul {
    display: inline-block;
    text-align: left;
    margin-bottom: 16px;
  }
  .soluciones-bloque h4, .soluciones-bloque h5 {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .carousel-clientes, .carousel-socios {
    max-width: 95vw;
    margin: 0 auto 24px auto;
    height: 90px !important;
  }
  .carousel-clientes .carousel-item, .carousel-socios .carousel-item {
    width: 120px !important;
    height: 90px !important;
    padding: 4px !important;
  }
  .carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
    max-width: 100% !important;
    max-height: 80px !important;
    margin: 0 auto !important;
  }
  .gestion-pasos-cuadricula {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .paso-cuadro img {
    width: 160px;
  }
  .paso-info-flex {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .paso-info-img {
    justify-content: center;
    margin-bottom: 12px;
  }
  .paso-info-img img {
    width: 90px;
  }
  .paso-info-texto {
    width: 100%;
  }
  #contacto .row {
    flex-direction: column;
    gap: 24px;
  }
  #contacto .contacto-info, #contacto .contacto-form {
    border-radius: 24px;
  }
  .beneficios-img {
    height: 300px;
    margin-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .soluciones-bloque .col {
    flex: unset !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .order-1-mobile { order: 1 !important; }
  .order-2-mobile { order: 2 !important; }
  .soluciones-bloque {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px;
    margin-bottom: 28px;
    padding: 10px 0;
  }
  .soluciones-bloque .col {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
  }
  .soluciones-bloque img {
    max-width: 90vw;
    width: 100%;
    height: auto;
    margin: 0 auto 16px auto;
    border-radius: 10px;
    display: block;
  }
  .soluciones-bloque h4,
  .soluciones-bloque ul,
  .soluciones-bloque p {
    text-align: center !important;
  }
  .carousel-clientes {
    max-width: 100vw;
    margin: 0 auto 16px auto;
    height: 110px !important;
    min-height: 90px !important;
  }
  .carousel-clientes .carousel-item {
    width: 120px !important;
    height: 90px !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .carousel-clientes .carousel-item img {
    max-width: 100px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 8px !important;
    object-fit: contain !important;
    display: block !important;
  }
  .gestion-pasos-cuadricula {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .paso-cuadro img {
    width: 120px;
  }
  #contacto .contacto-info, #contacto .contacto-form {
    padding: 20px 6px;
    border-radius: 8px;
  }
  #contacto .contacto-info h2, #contacto .contacto-form h3 {
    font-size: 2rem;
  }
  .beneficios-img {
    height: 250px;
  }
  .beneficios-lista li {
    font-size: 0.95rem;
    gap: 8px;
  }
  .paso-info-img img {
    width: 120px;
  }
  #nosotros .row.valign-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  #nosotros .quienes-somos-img {
    width: 90vw !important;
    max-width: 320px;
    margin: 0 auto 18px auto;
    display: block;
  }
  #nosotros .col.s12.m4.center-align {
    order: 1;
    width: 100% !important;
    margin-bottom: 0;
    padding: 0;
  }
  #nosotros .col.s12.m8 {
    order: 2;
    width: 100% !important;
    margin-bottom: 0;
    padding: 0 10px;
  }
  #nosotros h3 {
    text-align: center !important;
    margin-top: 0;
  }
  #nosotros p {
    text-align: left !important;
    margin-bottom: 16px;
    font-size: 1.05rem;
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-wrapper ul#nav-mobile {
  margin-left: auto;
}

/* =====================
   SECCIÓN SOLUCIONES - BREAKPOINTS
   ===================== */
/* Desktop (mayor a 992px) */
@media (min-width: 993px) {
  .soluciones-bloque {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-bottom: 56px;
    padding: 32px 0;
  }
  .soluciones-bloque .col {
    width: 50%;
    margin-bottom: 0;
    display: block;
  }
  .soluciones-bloque .left-align {
    text-align: left !important;
  }
  .soluciones-bloque .center-align {
    text-align: center !important;
  }
  .soluciones-bloque h4 {
    font-size: 2.2rem;
    margin-bottom: 18px;
  }
  .soluciones-bloque h5 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  .soluciones-bloque p {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .soluciones-bloque ul {
    margin-bottom: 18px;
    padding-left: 24px;
  }
  .soluciones-bloque ul li {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .soluciones-bloque img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    display: block;
  }

}

/* Tablet (601px a 992px) */
@media (min-width: 601px) and (max-width: 992px) {
  .soluciones-bloque {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    margin-bottom: 48px;
    padding: 24px 0;
  }
  .soluciones-bloque .col {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
  }
  .soluciones-bloque .left-align {
    text-align: center !important;
  }
  .soluciones-bloque .center-align {
    text-align: center !important;
  }
  .soluciones-bloque h4 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  .soluciones-bloque h5 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .soluciones-bloque p {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .soluciones-bloque ul {
    margin-bottom: 14px;
    padding-left: 18px;
  }
  .soluciones-bloque ul li {
    font-size: 1rem;
    margin-bottom: 7px;
  }
  .soluciones-bloque img {
    max-width: 95vw;
    width: 100%;
    height: auto;
    margin: 18px auto 0 auto;
    border-radius: 14px;
    display: block;
  }
  .carousel-clientes, .carousel-socios {
    max-width: 95vw;
    margin: 0 auto 24px auto;
    height: 90px !important;
  }
  .carousel-clientes .carousel-item, .carousel-socios .carousel-item {
    width: 120px !important;
    height: 90px !important;
    padding: 4px !important;
  }
  .carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
    max-width: 100% !important;
    max-height: 80px !important;
    margin: 0 auto !important;
  }
}

/* Mobile (hasta 600px) */
@media (max-width: 600px) {
  .soluciones-bloque {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 10px 0;
  }
  .soluciones-bloque .col {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
  }
  .soluciones-bloque .left-align {
    text-align: center !important;
  }
  .soluciones-bloque .center-align {
    text-align: center !important;
  }
  .soluciones-bloque h4 {
    font-size: 1.15rem;
    margin-bottom: 7px;
  }
  .soluciones-bloque h5 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .soluciones-bloque p {
    font-size: 0.98rem;
    margin-bottom: 7px;
  }
  .soluciones-bloque ul {
    margin-bottom: 10px;
    padding-left: 12px;
  }
  .soluciones-bloque ul li {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }
  .soluciones-bloque img {
    max-width: 98vw;
    width: 100%;
    height: auto;
    margin: 12px auto 0 auto;
    border-radius: 10px;
    display: block;
  }
  .carousel-clientes, .carousel-socios {
    max-width: 98vw;
    margin: 0 auto 12px auto;
    height: 60px !important;
  }
  .carousel-clientes .carousel-item, .carousel-socios .carousel-item {
    width: 70px !important;
    height: 60px !important;
    padding: 2px !important;
  }
  .carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
    max-width: 100% !important;
    max-height: 50px !important;
    margin: 0 auto !important;
  }
}

.carousel .indicators {
  display: none !important;
}

nav .sidenav-trigger {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
  font-size: 2rem;
  color: #263238;
  padding: 0 8px;
  display: block;
}
@media (min-width: 993px) {
  nav .sidenav-trigger {
    display: none !important;
  }
}
@media (max-width: 992px) {
  nav .sidenav-trigger {
    display: block !important;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #263238;
    padding: 0 8px;
  }
  nav .logo-wrapper {
    margin-left: 0;
    margin-right: auto;
  }
  nav .brand-logo {
    margin-left: 0;
  }
}

/* Sidenav personalizado para mobile */
.sidenav {
  background: #263238 !important;
  padding-top: 32px;
  width: 80vw !important;
  max-width: 320px;
  box-shadow: 2px 0 16px rgba(0,0,0,0.18);
}
.sidenav li {
  margin-bottom: 12px;
  border-bottom: 1px solid #37474f;
}
.sidenav li:last-child {
  border-bottom: none;
}
.sidenav a {
  color: #fff !important;
  font-size: 1.25rem;
  font-family: 'Poppins', Arial, Tahoma, sans-serif;
  font-weight: 500;
  padding: 16px 24px 16px 40px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  border-radius: 0 24px 24px 0;
}
.sidenav a:hover, .sidenav li.active a {
  background: #00A754 !important;
  color: #fff !important;
}
.sidenav i {
  margin-right: 18px;
  font-size: 1.3em;
  color: #00A754;
  min-width: 24px;
  text-align: center;
}
@media (max-width: 600px) {
  .sidenav {
    width: 95vw !important;
    max-width: 98vw;
    padding-top: 24px;
  }
  .sidenav a {
    color: #fff !important;
  }
}

@media (max-width: 1400px) {
  .container {
    max-width: 1100px;
    width: 94vw;
  }
}
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
    width: 96vw;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 800px;
    width: 98vw;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    width: 99vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 600px) {
  .container {
    max-width: 100vw;
    width: 100vw;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* =====================
   OPTIMIZACIONES DE RENDIMIENTO
   ===================== */
/* Optimización de fuentes */

/* =====================
   GOOGLE RECAPTCHA
   ===================== */
.g-recaptcha {
  margin: 20px 0;
  transform: scale(1);
  transform-origin: 0 0;
}

@media (max-width: 600px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

/* =====================
   CAROUSELS OPTIMIZADOS
   ===================== */
/* Reglas base para carousels */
.carousel {
  overflow: hidden !important;
  position: relative !important;
  height: auto !important;
}

.carousel .carousel-item {
  transition: transform 0.2s ease !important;
  will-change: transform !important;
  cursor: pointer !important;
  outline: none !important;
}

.carousel .carousel-item:focus {
  outline: none !important;
}

.carousel .carousel-item img {
  outline: none !important;
}

.carousel .carousel-item img:focus {
  outline: none !important;
}

/* Desktop (mayor a 992px) */
@media (min-width: 993px) {
  .carousel-clientes, .carousel-socios {
    height: 120px !important;
    margin: 0 auto 32px auto;
    max-width: 800px !important;
  }
  .carousel-clientes .carousel-item, .carousel-socios .carousel-item {
    width: 180px !important;
    height: 120px !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
    max-width: 100% !important;
    max-height: 110px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Tablet (601px a 992px) */
@media (min-width: 601px) and (max-width: 992px) {
  .carousel-clientes, .carousel-socios {
    max-width: 95vw;
    height: 90px !important;
    margin: 0 auto 24px auto;
  }
  .carousel-clientes .carousel-item, .carousel-socios .carousel-item {
    width: 120px !important;
    height: 90px !important;
    padding: 4px !important;
  }
  .carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
    max-width: 100% !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
  }
}

/* Mobile (hasta 600px) */
@media (max-width: 600px) {
  .carousel-clientes, .carousel-socios {
    max-width: 98vw;
    height: 60px !important;
    margin: 0 auto 12px auto;
  }
  .carousel-clientes .carousel-item, .carousel-socios .carousel-item {
    width: 70px !important;
    height: 60px !important;
    padding: 2px !important;
  }
  .carousel-clientes .carousel-item img, .carousel-socios .carousel-item img {
    max-width: 100% !important;
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
  }
}
@font-face {
  font-family: 'Quicksand';
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

/* Optimización de imágenes */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* Prevenir layout shift */
  aspect-ratio: attr(width) / attr(height);
}

/* Optimización de animaciones */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mejoras de contraste para modo oscuro */
@media (prefers-color-scheme: dark) {
  .white-text {
    color: #ffffff !important;
  }
  
  .grey-text.text-lighten-1 {
    color: #f5f5f5 !important;
  }
}

/* =====================
   MEJORAS DE ACCESIBILIDAD ADICIONALES
   ===================== */
/* Mejoras para lectores de pantalla */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mejoras de foco para navegación por teclado */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #00A754;
  outline-offset: 2px;
}

/* Mejoras de contraste para texto */
.text-high-contrast {
  color: #000000 !important;
  background-color: #ffffff !important;
}

/* =====================
   MEJORAS DE SEO VISUAL
   ===================== */
/* Mejoras para el slider principal */
.slider .slides li .caption {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mejoras para las tarjetas de pasos */
.paso-cuadro {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paso-cuadro:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 167, 84, 0.15);
}

/* Mejoras para los carousels */
.carousel .carousel-item {
  transition: transform 0.3s ease;
}

.carousel .carousel-item:hover {
  transform: scale(1.05);
}

/* =====================
   MEJORAS DE RESPONSIVIDAD
   ===================== */
/* Mejoras para dispositivos móviles */
@media (max-width: 768px) {
  .skip-link {
    top: -50px;
    left: 10px;
    padding: 12px;
    font-size: 16px;
  }
  
  .skip-link:focus {
    top: 10px;
  }
  
  /* Mejoras de contraste en móvil */
  .slider .slides li .caption {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Mejoras para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .paso-cuadro:hover {
    transform: translateY(-3px);
  }
}

/* =====================
   MEJORAS DE PERFORMANCE
   ===================== */
/* Optimización de scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Compensar el nav fijo */
}

/* Optimización de imágenes de fondo */
.contacto-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .contacto-bg {
    background-attachment: scroll; /* Mejor performance en móvil */
  }
}

/* =====================
   MEJORAS DE INTERACTIVIDAD
   ===================== */
/* Mejoras para botones */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

/* Mejoras para enlaces */
a {
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* Mejoras para formularios */
.input-field input:focus + label,
.input-field textarea:focus + label {
  color: #00A754 !important;
}

.input-field input:focus,
.input-field textarea:focus {
  border-bottom: 1px solid #00A754 !important;
  box-shadow: 0 1px 0 0 #00A754 !important;
}

/* =====================
   MEJORAS DE ACCESIBILIDAD FINALES
   ===================== */
/* Mejoras para el menú móvil */
.sidenav {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidenav a {
  color: #00A754;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidenav a:hover,
.sidenav li.active a {
  background-color: rgba(0, 167, 84, 0.1);
  color: #000000;
}

/* Mejoras para el footer */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #00A754 !important;
}

/* Mejoras para iconos */
.fas, .fab {
  transition: transform 0.3s ease;
}

.fas:hover, .fab:hover {
  transform: scale(1.1);
}

/* =====================
   MEJORAS DE SEO TÉCNICO
   ===================== */
/* Asegurar que el contenido principal sea visible */
main {
  min-height: 100vh;
}

/* Mejoras para la jerarquía visual */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Mejoras para listas */
ul, ol {
  padding-left: 1.5rem;
}

/* Mejoras para párrafos */
p {
  margin-bottom: 1rem;
}

/* Mejoras para secciones */
section {
  padding: 0;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
}

/* Ajuste para igualar alturas y evitar líneas grises */
.slider,
.slider .slides,
.slider .slides li,
.slider .slides li img {
  height: 50vh !important;
  min-height: 0 !important;
  max-height: 50vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.slider {
  overflow: hidden !important;
  background: transparent !important;
}
.slider .slides {
  background: transparent !important;
}
.slider .slides li {
  background: transparent !important;
}

@media (max-width: 600px) {
  .slider .slides li .caption {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    padding: 16px 8px !important;
    max-width: 90vw !important;
    width: 90vw !important;
    background: rgba(255,255,255,0.85) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .slider .slides li .caption h1,
  .slider .slides li .caption h2 {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Logo nav: tamaño base */
.nav-logo {
  max-width: 140px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}
.logo-wrapper {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 1200px) {
  .nav-logo {
    max-width: 160px;
  }
}

@media (max-width: 992px) {
  .nav-logo {
    max-width: 90px;
  }
}

@media (max-width: 600px) {
  .nav-logo {
    max-width: 110px;
  }
  .logo-wrapper {
    max-width: 80px;
    height: 100%;
    padding: 0;
  }
}

/* Color institucional Pantone Verde */
:root {
  --verde-institucional: #009473;
}

.green-text.text-darken-2,
.green-text,
#sistemas h2 span,
nav ul li a,
.paso-cuadro:hover, .paso-cuadro.activo,
.btn,
footer a:hover {
  color: var(--verde-institucional) !important;
}

.btn,
.btn:hover,
.btn:active {
  background-color: var(--verde-institucional) !important;
  border-color: var(--verde-institucional) !important;
}


/* Cambiar el color de borde de elementos activos */
.paso-cuadro:hover, .paso-cuadro.activo {
  border-color: var(--verde-institucional) !important;
}

/* Cambiar el color de iconos */
.fa-users,
.fa-bullseye,
.fa-lightbulb {
  color: var(--verde-institucional) !important;
}