/* css/style.css - Leksas Light Theme & Bootstrap 5 Overrides */

:root {
  /* Leksas Brand Colors */
  --color-black: #25343a;
  --color-orange: #FF8800;
  --color-blue: #154F8C;
  --color-bg-primary: #f8fafc; /* Gris extra claro minimalista */
  --color-bg-secondary: #ffffff;
  --color-text-main: #334155;
  --color-text-muted: #64748b;
  --color-whatsapp: #25D366;

  /* Bootstrap Variable Overrides (Injecting Brand Colors into Bootstrap) */
  --bs-primary: #FF8800;
  --bs-primary-rgb: 255, 136, 0;
  --bs-secondary: #154F8C;
  --bs-secondary-rgb: 21, 79, 140;
  --bs-body-bg: #f8fafc;
  --bs-body-color: #334155;

  /* Neumorphic / Soft Shadows */
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-headings: 'Montserrat', system-ui, -apple-system, sans-serif;
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-headings);
  font-weight: 500;
}

/* ==========================================================================
   Bootstrap Component Overrides
   ========================================================================== */

/* Buttons */
.btn {
  font-family: var(--font-headings);
  font-weight: 500;
  border-radius: 8px; /* Look más cuadrado/moderno tipo SaaS */
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}
.btn-primary:hover {
  background-color: #e67a00;
  border-color: #e67a00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.btn-secondary {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}
.btn-secondary:hover {
  background-color: #103c6b;
  border-color: #103c6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 79, 140, 0.3);
}

/* Forms */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 12px 15px;
  background-color: #ffffff;
  color: #334155;
  transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(21, 79, 140, 0.15);
}

/* Cards (Para mantener compatibilidad con panel-card viejo) */
.panel-card, .card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}
.panel-card:hover, .card:hover {
  box-shadow: var(--shadow-hover);
}
.panel-card h3 {
  color: var(--color-black);
  border-bottom: 2px solid #f8fafc;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-size: 1.4rem;
}

/* Tablas */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background-color: #f8fafc;
  color: #64748b;
  font-weight: 600;
  padding: 15px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}
.admin-table td {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}
.admin-table tr:hover td {
  background-color: #f8fafc;
}

/* Badges Extras */
.badge {
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.8rem;
}
.badge-open { background-color: #fef08a; color: #854d0e; }
.badge-closed { background-color: #dcfce7; color: #166534; }

/* ==========================================================================
   Top Navbar Layout (Replaces Sidebar)
   ========================================================================== */

.custom-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 10px 0;
  margin-bottom: 40px;
}

.custom-navbar .nav-link {
  color: #475569;
  font-weight: 400;
  padding: 10px 15px !important;
  margin: 0 5px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-navbar .nav-link i {
  color: #94a3b8;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
  color: var(--color-blue);
  background-color: #f8fafc;
}

.custom-navbar .nav-link:hover i, .custom-navbar .nav-link.active i {
  color: var(--color-orange);
}

/* Navbar Dropdown Animation */
.custom-navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block; /* To allow opacity/transform animation instead of raw display toggle */
}

.custom-navbar .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-navbar .dropdown-item {
  padding: 10px 20px;
  color: #64748b;
  font-weight: 400;
  transition: all 0.2s;
}

.custom-navbar .dropdown-item i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.custom-navbar .dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--color-blue);
}

/* User Profile Badge */
.nav-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 15px;
  border-left: 1px solid #e2e8f0;
  margin-left: 15px;
}

.nav-user-profile .user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-user-profile .user-name {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.95rem;
}

.nav-user-profile .user-company {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Contenedor Principal (Main Content) */
.main-content {
  padding: 0 20px 60px 20px;
  min-height: calc(100vh - 100px);
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-header h2 {
  margin: 0;
  color: var(--color-black);
  font-size: 1.6rem;
  font-weight: 500;
}

/* ==========================================================================
   Frontend Components (Landing Page)
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }

/* Fondos limpios para landing */
.slide-1 { background: radial-gradient(circle at right, #ffffff 0%, #f1f5f9 100%); }
.slide-2 { background: linear-gradient(120deg, #ffffff 0%, #f8fafc 100%); }
.slide-3 { background: linear-gradient(to top, #f1f5f9 0%, #ffffff 100%); }

.hero-text h1 { font-size: 3.5rem; font-weight: 800; color: var(--color-black); line-height: 1.2; margin-bottom: 1.5rem; }
.hero-text h1 span { color: var(--color-blue); }
.hero-text p { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 2.5rem; font-weight: 500; }

.section-title { text-align: center; margin-bottom: 3.5rem; color: var(--color-black); font-size: 2.5rem; font-weight: 800; }
.section-title span { color: var(--color-orange); }

/* Clients Marquee Frontend */
.clients-marquee-container { width: 100%; position: relative; overflow: hidden; background: #fff; padding: 20px 0;}
.clients-marquee-track { display: flex; width: max-content; animation: scroll-clients 50s linear infinite; align-items: center; gap: 5rem; }
.client-logo-box { width: 150px; display: flex; justify-content: center; align-items: center; opacity: 0.7; transition: 0.3s; }
.client-logo-box:hover { opacity: 1; transform: scale(1.1); }
@keyframes scroll-clients { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Vector Animations (Mantenidos) */
.vector-composite { position: relative; width: 320px; height: 320px; display: flex; justify-content: center; align-items: center; }
.vc-icon { position: absolute; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: var(--color-bg-secondary); box-shadow: var(--shadow-hover); color: var(--color-blue); }
.vc-center { width: 150px; height: 150px; font-size: 4.5rem; z-index: 2; border: 4px solid var(--color-orange); color: var(--color-black); animation: float 6s ease-in-out infinite; }
.vc-float-1 { width: 90px; height: 90px; font-size: 2.5rem; top: 5%; left: -5%; animation: float 4s ease-in-out infinite; }
.vc-float-2 { width: 80px; height: 80px; font-size: 2.2rem; bottom: 0%; right: 5%; animation: float 5s ease-in-out infinite reverse; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* Auth CSS (Login) */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--color-bg-primary); padding: 20px; }
.auth-card { background: #ffffff; padding: 50px; border-radius: 24px; box-shadow: var(--shadow-hover); width: 100%; max-width: 480px; text-align: center; border: 1px solid #f1f5f9; }
.auth-logo { height: 70px; margin-bottom: 25px; }
.auth-title { font-size: 1.8rem; margin-bottom: 30px; color: var(--color-black); font-weight: 700; }
/* ==========================================================================
   Restored Landing Page Components
   ========================================================================== */

/* Trust Bar / Partners */
.partners {
  padding: 4rem 0;
  background-color: var(--color-bg-secondary);
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.partners h3 { text-align: center; color: var(--color-text-muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; }
.trust-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 15px; color: var(--color-text-muted); font-weight: 500; font-size: 1.1rem; padding: 10px 15px; transition: 0.3s; min-width: 150px; }
.trust-badge i { font-size: 3.5rem; color: #cbd5e1; transition: 0.3s; }
.trust-badge:hover i { color: var(--color-orange); transform: scale(1.1) translateY(-5px); }

/* Services Section */
.services { padding: 8rem 0; background-color: var(--color-bg-primary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.service-card {
  background-color: var(--color-bg-secondary);
  border-radius: 20px; padding: 4.5rem 3rem; text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: 0.3s;
  border: 1px solid #f1f5f9; border-top: 6px solid var(--color-blue);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-top-color: var(--color-orange); }
.service-icon {
  width: 90px; height: 90px; margin: 0 auto 2.5rem; border-radius: 50%;
  background-color: #f1f5f9; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--color-blue); transition: 0.3s;
}
.service-card:hover .service-icon { background-color: var(--color-orange); color: #fff; transform: scale(1.1) rotate(5deg); box-shadow: 0 10px 25px rgba(255,136,0,0.3); }
.service-card h3 { font-size: 1.6rem; color: var(--color-black); margin-bottom: 1.5rem; font-weight: 600; }
.service-card p { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.7; }

/* Catalog Section */
.catalog { padding: 8rem 0; background-color: var(--color-bg-primary); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.product-card { background-color: var(--color-bg-secondary); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.3s; display: flex; flex-direction: column; border: 1px solid #f1f5f9; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-img { height: 220px; background-color: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #cbd5e1; position: relative; }
.product-img::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(21,79,140,0.05); opacity: 0; transition: 0.3s; }
.product-card:hover .product-img::after { opacity: 1; }
.product-info { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.3rem; color: var(--color-black); margin-bottom: 0.8rem; font-weight: 600; }
.product-desc { color: var(--color-text-muted); margin-bottom: 1.5rem; flex-grow: 1; }

/* Contact CTA */
.cta-section { padding: 6rem 0; background: linear-gradient(135deg, var(--color-blue), #1e293b); color: #fff; text-align: center; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.cta-section p { font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* Footer */
footer { background-color: var(--color-bg-secondary); color: var(--color-text-main); padding: 5rem 0 2rem; border-top: 1px solid #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--color-black); font-weight: 600; }
.footer-col p { color: var(--color-text-muted); margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { font-weight: 400; color: #64748b; transition: 0.3s; text-decoration: none; }
.footer-links a:hover { color: var(--color-blue); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #f1f5f9; padding-top: 2rem; text-align: center; color: #94a3b8; font-size: 0.9rem; }

/* Global Typography Override requested by user */
html, body, p, span, a, div, td, th, li, label, input, select, textarea {
    font-size: 13px !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-size: 14px !important;
}
.kpi-value {
    font-size: 20px !important; /* Keep KPI readable */
}
.kpi-icon {
    font-size: 2rem !important;
}
.badge {
    font-size: 11px !important;
}

/* Responsive tables on mobile - prevent squishing */
@media (max-width: 768px) {
    .table-responsive .table th, 
    .table-responsive .table td {
        white-space: nowrap;
    }
}
