/* --- ESTILOS COMPLETOS Y DEFINITIVOS PARA SMI --- */

:root {
  --color-azul-corp: #061691;
  --color-azul-acento: #036ce2;
  --color-amarillo-accion: #fec702;
  --color-gris-fondo: #f0f2f5; /* Un gris un poco más limpio */
  --color-texto-oscuro: #2c3e50;
}

/* --- ESTILOS GENERALES --- */
body { font-family: 'Poppins', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--color-texto-oscuro); text-transform: uppercase; }
.logo-img { max-height: 50px; width: auto; }
.rd-navbar-mobile-brand .logo-img { max-height: 40px; }

/* --- CORRECCIÓN UNIVERSAL PARA NAVBAR MÓVIL --- */
@media (max-width: 991.98px) {
  .rd-navbar-fixed .rd-navbar-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }
  .rd-navbar-fixed .rd-navbar-brand {
    display: block;
    padding: 0;
  }
  .rd-navbar-toggle {
    position: static;
  }
  .rd-navbar-mobile-brand {
    display: none !important;
  }
}

/* --- HERO SECTION --- */
.hero-section-smi {
    position: relative; height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
    background-image: url('../images/background-smi.jpg'); background-size: cover; background-position: center;
    padding-top: 80px; /* Evita que el navbar tape el contenido */
}
.hero-overlay-smi { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(6, 22, 145, 0.8), rgba(3, 108, 226, 0.7)); z-index: 1; }
.hero-content-smi { position: relative; z-index: 2; max-width: 900px; padding: 20px; }
.hero-content-smi h1 { font-size: 3.5rem; color: #fff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-subtitle-smi { font-size: 1.3rem; font-weight: 300; }

/* --- BOTONES --- */
.btn-primary {
  background-color: var(--color-amarillo-accion) !important; border-color: var(--color-amarillo-accion) !important; color: #000 !important; font-weight: bold; text-transform: uppercase;
}
.btn-primary:hover {
  background-color: var(--color-azul-acento) !important; border-color: var(--color-azul-acento) !important; color: #fff !important;
}

/* --- SECCIONES Y TARJETAS --- */
.bg-lighter { background-color: var(--color-gris-fondo); }
.bg-custom-gradient { background: var(--color-azul-corp); }
.context-dark, .context-dark h5, .context-dark p { color: #fff; }
.service-card-smi {
    background: #fff; padding: 30px; text-align: center; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    margin-bottom: 30px; height: 100%;
}
.service-icon { font-size: 3rem; color: var(--color-azul-corp); margin-bottom: 15px; }

/* --- GALERÍA (CORRECCIÓN DEFINITIVA) --- */
#smi-gallery-container {
    opacity: 0; /* Oculta la galería hasta que esté lista */
    transition: opacity 0.6s ease;
}
#smi-gallery-container.isotope--loaded {
    opacity: 1; /* La muestra suavemente cuando está organizada */
}
#smi-gallery-container .isotope-item {
    padding: 5px; /* Espacio entre imágenes */
    margin: 0 !important; /* Anulamos otros márgenes para que Isotope funcione bien */
}
#smi-gallery-container .thumbnail-zoe a::after { display: none; } /* Opcional: quita el icono de lupa si no te gusta */


/* --- VIDEOS --- */
.video-preview { border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); width: 100%; margin-bottom: 30px; }

/* --- FOOTER --- */
footer.page-footer { background-color: var(--color-fondo-claro); }
footer.page-footer .footer-title { color: var(--color-texto-oscuro); }
footer.page-footer .form-control { border: 1px solid #ccc; }
footer.page-footer .list-inline .icon { font-size: 18px; width: 40px; height: 40px; line-height: 40px; }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-fancy{ position:fixed; bottom:20px; left:20px; background-color:#25d366; color:white; padding:12px 20px; font-size:18px; font-weight:bold; border-radius:50px; box-shadow:0 8px 16px rgba(0,0,0,.3); text-decoration:none; display:flex; align-items:center; gap:10px; z-index:9999; }
.whatsapp-fancy:hover{ background-color:#1ebe5d; transform:scale(1.05); }

/* --- CORRECCIÓN UNIVERSAL PARA CENTRAR MODALES --- */
.modal.show { display: flex !important; justify-content: center; align-items: center; }
.modal-dialog { margin: 0.5rem; }

@media (max-width: 767px) {
    .hero-content-smi h1 { font-size: 2.5rem; }
}