/* ==========================
   ESTILOS GLOBALES CRONUS ERP
   ========================== */

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #1E3A5F;
  overflow-x: hidden;
}

main .bg-white {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tabla-modulos th,
.tabla-modulos td {
  vertical-align: middle;
  text-align: center;
}

.tabla-modulos th:first-child,
.tabla-modulos td:first-child {
  width: 60%;
  text-align: left;
}

.tabla-modulos th:nth-child(2),
.tabla-modulos td:nth-child(2),
.tabla-modulos th:nth-child(3),
.tabla-modulos td:nth-child(3) {
  width: 20%;
}

.tabla-modulos td i.fa-check {
  color: #28a745;
}

.tabla-modulos td i.fa-times {
  color: #999;
}

/* Color y transparencia compartidos */
:root {
  --cronus-bar-bg: rgba(10, 25, 50, 0.95);
}

#correo-texto:hover {
  color: #388E3C;
  text-decoration: underline;
}

.bg-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* --- VIDEO DE FONDO --- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  background-color: #000;
}

/* --- CONTENEDOR PRINCIPAL (overlay) --- */
.overlay {
  background: transparent;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* =====================================================
   HEADER Y BARRA SUPERIOR – ALINEACIÓN REAL CON LOGO
   ===================================================== */

/* HEADER PRINCIPAL */
header.encabezado {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* CONTENEDOR INTERNO BOOTSTRAP (d-flex) */
header.encabezado > .d-flex {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 2.5rem; /* igual a px-5 */
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* LOGO A LA IZQUIERDA */
.logo-superior {
  width: 120px;
  height: auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  margin: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.logo-superior:hover {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* LINKS A LA DERECHA */
.encabezado-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 1.2rem;
  transition: color 0.3s ease;
}

.encabezado-link:hover {
  color: #8cd1ff;
}

.encabezado-link i {
  color: #0d6efd;
  margin-right: 4px;
}

.encabezado-link:last-child i {
  color: #388E3C;
}

/* --- BARRA HORIZONTAL PERFECTAMENTE ALINEADA --- */
.barra-titulo {
  background: rgba(10, 25, 50, 0.95);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 0 0 10px 10px;
  padding: 1rem 2.5rem; /* igual que el header px-5 */
  width: 100%;
  box-sizing: border-box;
}

.barra-titulo h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  overflow-wrap: break-word;
}

/* ==========================
   SECCIÓN MEDIA
   ========================== */

.btn-outline-success:hover {
  background-color: #388E3C;
  color: #fff;
  border-color: #388E3C;
  transform: scale(1.03);
  transition: all 0.2s ease;
}

.bloque-fluido {
  background: rgba(240, 240, 240, 0.95);
  backdrop-filter: blur(3px);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.lista-beneficios {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.lista-beneficios li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 2rem;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.lista-beneficios li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #388E3C;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Imagen lateral */
.img-seccion-media {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0.97;
  transition: transform 0.3s, opacity 0.3s;
}

.img-seccion-media:hover {
  transform: scale(1.02);
  opacity: 1;
}

/* Íconos y enlaces */
.iconos-bloque {
  margin-top: 0.5rem;
}

.icono-info {
  padding: 20px 15px;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icono-info p {
  line-height: 1.3;
  height: 25px;
}

.icono-info small {
  color: #444;
  font-size: 0.9rem;
  display: block;
  margin-top: 4px;
}

.icono-info:hover {
  background: rgba(56,142,60,0.1);
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
}

.enlace-icono {
  display: block;
  color: inherit;
}

.enlace-icono:hover {
  text-decoration: none;
}

/* ==========================
   SECCIÓN DE PRODUCTOS
   ========================== */

.productos {
  padding-left: 5%;
  padding-right: 5%;
}

/* === ESTILO DE TARJETAS DE PRODUCTOS CORE === */
.producto-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.producto-card h4 {
  color: #1E3A5F;
}

.producto-card ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  color: #333;
  font-size: 0.95rem;
  text-align: left;
}

.producto-card ul li {
  margin-bottom: 4px;
}

/* Líneas de color por módulo */
.producto-configuracion {
  border-top: 6px solid #1E3A5F;
}

.producto-ventas {
  border-top: 6px solid #388E3C;
}

.producto-contable {
  border-top: 6px solid #2C6B2F;
}

.producto-compras {
  border-top: 6px solid #0077B6;
}

.producto-inventario {
  border-top: 6px solid #1565C0;
}

.producto-planillas {
  border-top: 6px solid #5E35B1;
}

/* Ajuste visual para altura uniforme */
.producto-card img {
  object-fit: cover;
  height: 220px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .producto-card img {
    height: 180px;
  }
}

.producto-card:hover img {
  transform: scale(1.05);
}

/* ==========================
   FOOTER (ALINEADO CON HEADER)
   ========================== */

.footer {
  background: rgba(10, 25, 50, 0.95);
  font-size: 0.95rem;
  padding: 3rem 2.5rem;
  width: 100%;
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid rgba(56, 142, 60, 0.5);
  box-sizing: border-box;
  margin: 0;
}

.footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer a {
  color: #E0E0E0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #4CAF50;
}

.footer hr {
  border-color: rgba(255,255,255,0.2);
}

.footer p {
  margin-top: 1.5rem;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
}

.footer ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.footer ul li {
  margin-bottom: 0.6rem;
  color: #E0E0E0;
  display: flex;
  align-items: center;
}

.icono-demo {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: brightness(1.2);
}

.footer-cierre {
  background: transparent;
  color: #ffffffcc;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-top: 0.5rem;
}

/* BADGES DE TIENDAS MÓVILES */
.store-icons a {
  margin-right: 10px;
}

.store-badge {
  height: 38px;
  margin-top: 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ==========================
   AJUSTES GENERALES
   ========================== */

.bloque-fluido,
.productos {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 📱 RESPONSIVO */
@media (max-width: 768px) {
  .barra-titulo {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* ocupa todo el ancho del viewport */
    margin: 0;
    padding: 0.9rem 0.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 25, 50, 0.95);
  }

  .encabezado-link {
    margin-left: 0;
    display: inline-block;
    margin-right: 0.75rem;
  }

  .barra-titulo {
    border-radius: 0;
    padding: 0.75rem 1rem;
  }

  .barra-titulo h2 {
    margin: 0;
    padding: 0 0.3rem;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    color: #fff;
    font-size: clamp(0.9rem, 3.8vw, 1.1rem);
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }

  .footer {
    padding: 2rem 1rem;
    border-radius: 0;
  }

}
/* =====================================================
   🔹 Altura uniforme para tarjetas de productos
   ===================================================== */
.productos-cronus .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.productos-cronus .col-lg-6,
.productos-cronus .col-md-12 {
  display: flex;
}

.productos-cronus .producto-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.productos-cronus .producto-card:hover {
  transform: translateY(-3px);
}

.productos-cronus .producto-card .p-3 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Asegura que todos los carruseles tengan misma proporción visual */
.productos-cronus .carousel {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* En pantallas pequeñas las tarjetas siguen siendo iguales pero apiladas */
@media (max-width: 768px) {
  .productos-cronus .col-md-12 {
    margin-bottom: 1rem;
  }
}

/* =====================================================
   🔹 Ajuste de proporciones del carrusel (imagen más alta)
   ===================================================== */
.productos-cronus .carousel {
  position: relative;
  width: 100%;
  height: 230px; /* Aumenta ligeramente la altura del área de imagen */
  overflow: hidden;
  border-radius: 12px;
}

.productos-cronus .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La imagen llena el espacio sin distorsión */
  display: block;
}

/* 🔹 Alineación del contenido para evitar huecos grandes */
.productos-cronus .producto-card .p-3 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 1rem;
}

/* 🔹 Margen inferior del carrusel más ajustado */
.productos-cronus .producto-card .carousel {
  margin-bottom: 0.5rem;
}

