/* ==========================================================================
   CONFIGURACIONES GLOBALES Y VARIABLES PARA LA SECCIÓN
   ========================================================================== */
:root {
  --bg-dark-main: #020617;
  --bg-dark-card: #0f172a;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --accent-color: #10b981;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Títulos de sección unificados */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--text-main);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Botones Genéricos Profesionales */
.btn-primary, .btn-secondary, .btn-secondary-outline {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary-outline:hover {
  background: #fff;
  color: var(--bg-dark-main);
}

/* Badges */
.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 100px 0;
  background: radial-gradient(circle at top, #0f172a 0%, var(--bg-dark-main) 70%);
  display: flex;
  align-items: center;
}

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

.hero-text h1 {
  font-size: 46px;
  color: var(--text-main);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 20px 0 35px 0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   TRUST / BENEFICIOS (CON ICONOS)
   ========================================================================== */
.trust {
  padding: 90px 0;
  background: var(--bg-dark-main);
  border-top: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.trust-item {
  background: var(--bg-dark-card);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.trust-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.trust-item h4 {
  color: var(--text-main);
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT / PILARES (MISIÓN, VISIÓN, COMPROMISO)
   ========================================================================== */
.about-section {
  padding: 90px 0;
  background: #070c1e;
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-card {
  background: var(--bg-dark-main);
  padding: 40px 35px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.about-card .card-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0.7;
}

.about-card h3 {
  color: var(--text-main);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.about-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   PRODUCTS / DIVISIONES COMERCIALES
   ========================================================================== */
.products {
  padding: 90px 0;
  background: var(--bg-dark-main);
  border-top: 1px solid var(--border-subtle);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-dark-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.product-img-wrapper {
  overflow: hidden;
  width: 100%;
  height: 220px;
  background: #1e293b;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-info {
  padding: 30px;
}

.product-info h3 {
  color: var(--text-main);
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.product-info p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.4);
}

.product-card:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   CTA BANNER FINAL
   ========================================================================== */
.banner {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #020617 100%);
  border-top: 1px solid rgba(59,130,246,0.2);
  text-align: center;
}

.banner-content {
  max-width: 750px;
  margin: 0 auto;
}

.banner h2 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.banner p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.banner-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DE ALTA PRECISIÓN)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image img {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 26px;
  }
  .section-title p {
    font-size: 16px;
  }
  .banner h2 {
    font-size: 28px;
  }
  .banner p {
    font-size: 16px;
  }
  .about-grid, .product-grid, .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-buttons .btn-primary, 
  .hero-buttons .btn-secondary,
  .banner-actions a {
    width: 100%;
    text-align: center;
  }
}