/* ==========================================================================
   LUBRA SERVICIOS - Design System & Dynamic Animations Stylesheet
   Modern, responsive, vibrant aesthetic matching official Lubra Servicios logo colors
   ========================================================================== */

:root {
  /* Colors from official Lubra Servicios Logo (Green / Lime palette) */
  --primary: #52B744;          /* Vibrant Emerald Green */
  --primary-hover: #3F9833;    /* Deeper Forest Green */
  --primary-dark: #2D7722;
  --primary-light: #F0FDF4;    /* Soft mint tint for badges/backgrounds */
  
  --logo-yellow: #8EC63F;      /* Bright Lime Green accent from logo */
  --logo-yellow-dark: #74A72E;
  
  --secondary: #1E293B;        /* Slate Industrial Dark */
  --secondary-hover: #0F172A;
  
  --dark-bg: #111827;          /* Premium Deep Background */
  --dark-card: #1F2937;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-light: #F9FAFB;
  
  --border-color: #E5E7EB;
  --border-radius: 14px;
  --border-radius-sm: 8px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(82, 183, 68, 0.18);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframe Animations */
@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(82, 183, 68, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(82, 183, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 183, 68, 0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--dark-bg);
  color: #9CA3AF;
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 3px solid var(--primary);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info-item i {
  color: var(--logo-yellow);
}

.top-phone-link {
  transition: var(--transition);
  padding: 2px 6px;
  border-radius: 4px;
}

.top-phone-link:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* Main Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

/* Brand & Modern Logo Styling */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  border-radius: 4px;
  transition: var(--transition);
  object-fit: contain;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: linear-gradient(135deg, #52B744 0%, #3F9833 100%);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(82, 183, 68, 0.35);
  animation: pulseGlow 3s infinite;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #3F9833 0%, #2D7722 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 183, 68, 0.45);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark-bg);
  cursor: pointer;
  padding: 4px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
}

/* Page Header Hero */
.page-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1F2937 100%);
  color: var(--white);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--primary);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(82, 183, 68, 0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero-title i {
  color: var(--logo-yellow);
}

.page-hero-subtitle {
  color: #9CA3AF;
  font-size: 1.1rem;
  max-width: 700px;
}

/* Section Blocks */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Animated Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(82, 183, 68, 0.14);
  border-color: rgba(82, 183, 68, 0.4);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  height: 200px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(4deg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-bg);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Home Hero Special */
.home-hero {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(31, 41, 55, 0.94) 100%), url('../images/hero_banner.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  border-bottom: 4px solid var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(82, 183, 68, 0.22);
  border: 1px solid rgba(82, 183, 68, 0.5);
  color: var(--logo-yellow);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: floatAnim 3s infinite ease-in-out;
}

.hero-h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-h1 span {
  color: var(--primary);
  background: linear-gradient(90deg, #52B744, #8EC63F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-p {
  font-size: 1.15rem;
  color: #D1D5DB;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #52B744 0%, #3F9833 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(82, 183, 68, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3F9833 0%, #2D7722 100%);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(82, 183, 68, 0.55);
}

.btn-outline {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-color: var(--white);
}

.hero-card-widget {
  background: rgba(31, 41, 55, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(82, 183, 68, 0.4);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: floatAnim 4s infinite ease-in-out;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.widget-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(82, 183, 68, 0.25);
  color: var(--logo-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Stats Counter Section */
.stats-section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 45px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-card {
  text-align: center;
  padding: 15px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

.stat-label {
  color: #9CA3AF;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Form Controls & Quotation Form Styling (Restored & Enhanced)
   ========================================================================== */
.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-bg);
  font-size: 0.95rem;
}

.form-control {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 18px !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: var(--border-radius-sm) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  color: var(--text-main) !important;
  background-color: #FFFFFF !important;
  transition: var(--transition) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
  appearance: auto;
}

.form-control:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(82, 183, 68, 0.18) !important;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FF3B00'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Catalog Filters */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(82, 183, 68, 0.3);
}

.catalog-item {
  transition: var(--transition);
}

.catalog-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.custom-table th {
  background: var(--dark-bg);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--primary);
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background: #F3F4F6;
}

/* Accordion FAQ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: var(--white);
}

.accordion-header:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.accordion-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-item.active .accordion-body {
  padding: 16px 22px 22px;
  max-height: 300px;
}

/* Phone Card Button Link */
.phone-card-link {
  transition: var(--transition);
}

.phone-card-link:hover {
  border-color: var(--primary) !important;
  background: var(--primary-light) !important;
  transform: translateX(4px);
}

.footer-phone-link {
  transition: var(--transition);
}

.footer-phone-link:hover {
  color: var(--logo-yellow) !important;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #9CA3AF;
  padding: 60px 0 25px;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.footer-brand-text {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #9CA3AF;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  text-align: center;
  font-size: 0.88rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 3px solid var(--primary);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-h1 {
    font-size: 2.3rem;
  }
  
  .top-bar .container {
    justify-content: center;
  }
}
