/* =========================================
   OMNIA 7D - HOJA DE ESTILOS PRINCIPAL
   =========================================
   ÍNDICE:
   1. Variables y Base
   2. Utilidades Generales
   3. Botones
   4. Navegación (Navbar)
   5. Cabecera (Hero Section)
   6. Componentes (Tarjetas, Pasos, Listas)
   7. Acordeón (FAQ)
   8. Blog
   9. Footer
   ========================================= */

/* --- 1. VARIABLES Y BASE --- */
:root {
  --purple-main: #b146fe;
  --purple-hover: #902bdc;
  --text-dark: #333333;
  --text-muted: #6c757d;
}

html, body { 
  overflow-x: clip;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
}

/* --- 2. UTILIDADES GENERALES --- */
.text-purple {
  color: var(--purple-main) !important;
}

.bg-purple {
  background-color: var(--purple-main) !important;
  color: white !important;
}

.section-spacing {
  padding: 80px 0;
}

/* --- 3. BOTONES --- */
.btn-purple {
  background-color: var(--purple-main);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(177, 70, 254, 0.3);
}

.btn-purple:hover {
  background-color: var(--purple-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(177, 70, 254, 0.4);
}

.btn-outline-purple {
  color: var(--purple-main);
  border: 2px solid var(--purple-main);
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-purple:hover {
  background-color: var(--purple-main);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(177, 70, 254, 0.3);
  transform: translateY(-2px);
}

/* --- 4. NAVEGACIÓN (NAVBAR) --- */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.navbar-logo {
  max-height: 48px;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.03);
}

.custom-nav-link {
  color: #4a4a4a !important;
  font-size: 0.85rem;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 12px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-nav-link:hover, .custom-nav-link:focus {
  color: var(--purple-main) !important;
  background-color: rgba(177, 70, 254, 0.08);
}

.navbar .dropdown-toggle::after {
  display: none;
}

.custom-dropdown {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 10px 0;
  margin-top: 5px;
  background-color: #ffffff;
  animation: dropFade 0.3s ease forwards;
}

.custom-dropdown .dropdown-item {
  color: #555;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.custom-dropdown .dropdown-item:hover {
  background-color: rgba(177, 70, 254, 0.05);
  color: var(--purple-main);
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ajustes Navbar para Móvil */
@media (max-width: 991px) {
  .custom-navbar { padding: 15px 20px; }
  
  .navbar-collapse {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
  }

  .custom-nav-link { 
    margin-bottom: 5px; 
    text-align: left;
    padding-left: 15px !important;
  }

  .custom-dropdown {
    box-shadow: none !important;
    border: none !important;
    background-color: #fafafa;
    border-radius: 8px;
    margin: 5px 15px 10px 15px;
    padding: 5px 0;
    animation: none;
  }

  .custom-dropdown .dropdown-item {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .navbar-nav .btn-outline-purple {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
  }
}

.custom-nav-link.active-link {
  color: var(--purple-main) !important;
  background-color: rgba(177, 70, 254, 0.08);
}

/* Para los sub-enlaces de los desplegables (Líneas / Equipo) */
.custom-dropdown .dropdown-item.active-item {
  background-color: rgba(177, 70, 254, 0.05);
  color: var(--purple-main);
  font-weight: 700; /* Un poco más de grosor para destacar qué sub-página estás viendo */
}

/* Opcional: Para el botón de USUARIOS si estás dentro de esa sección */
.btn-outline-purple.active-btn {
  background-color: var(--purple-main);
  color: white !important;
}

/* --- 5. CABECERA (HERO SECTION) --- */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), var(--bg-image) center center/cover no-repeat;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* --- 6. COMPONENTES VARIOS --- */
/* Tarjetas (Cards) */
.custom-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: #fff;
  overflow: hidden;
  border-top: 4px solid var(--purple-main);
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--purple-main);
  margin-bottom: 15px;
}

/* Pasos (Círculos numerados) */
.step-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid var(--purple-main);
  color: var(--purple-main);
  font-size: 24px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(177, 70, 254, 0.2);
  margin-bottom: 20px;
}

/* Listas con check */
.check-list-icon {
  font-size: 1.5rem;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -3px;
}

/* Estilos en clientes */
.client-card {
    min-height: 180px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #fff;
    border: 1px solid #f0f0f0 !important;
}

.client-logo {
    max-height: 80px;
    width: auto;
    transition: all 0.4s ease;
}

.client-card:hover {
    border-color: var(--purple-main) !important;
    box-shadow: 0 10px 25px rgba(177, 70, 254, 0.1) !important;
}

.client-card:hover .client-logo {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
}

/* Input de subidas de archivos */
.custom-file-upload {
    position: relative;
    width: 100%;
}

.file-drop-area {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop-area:hover {
    border-color: var(--purple-main);
    background-color: rgba(177, 70, 254, 0.02);
}

.file-icon {
    background-color: var(--purple-main);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(177, 70, 254, 0.2);
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- 7. ACORDEÓN (FAQ) --- */
.accordion .card {
  border: 1px solid #f0f0f0;
  border-radius: 12px !important;
  background: #fff;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.accordion .card:hover {
  box-shadow: 0 8px 20px rgba(177, 70, 254, 0.08);
  border-color: rgba(177, 70, 254, 0.3);
}

.accordion .card-header {
  background-color: transparent;
  border-bottom: none;
  padding: 0;
}

.accordion .btn-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 1.2rem 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus,
.accordion .btn-link:active  {
  color: var(--purple-main) !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.accordion .btn-link i {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
}

.accordion .btn-link.collapsed i {
  transform: rotate(180deg);
}

.accordion .card-body {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  background: transparent;
  border-top: none !important;
  margin-top: -10px;
}

/* 8. Estilos del Blog */

.object-fit-cover {
    object-fit: cover;
}

.hover-zoom {
    transition: transform 0.5s ease;
}

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

.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Tipografía y espaciado */
.leading-relaxed {
    line-height: 1.7;
}

@media (max-width: 768px) {
    .flex-md-row {
        flex-direction: column !important;
    }
}

/* --- 9. FOOTER --- */
.custom-footer {
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    color: #555;
}

.footer-logo {
    max-height: 50px;
}

.footer-title {
    color: var(--text-dark);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, 
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover, 
.footer-contact a:hover {
    color: var(--purple-main);
    padding-left: 5px;
}

.footer-contact i, 
.social-icons i {
    color: var(--purple-main);
    font-size: 1.2rem;
    margin-right: 8px;
    vertical-align: middle;
}

.social-icons i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.1);
}

.footer-alliance-img {
    max-width: 200px;
    transition: all 0.4s ease;
}

.footer-bottom {
    background-color: #ffffff;
    border-top: 1px solid #f1f1f1;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--purple-main);
}

@media (max-width: 767px) {
    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}