/* ==========================================
   CIFIVE - MEJORAS ESTÉTICAS INDUSTRIALES
   Diseño corporativo moderno y profesional
   ========================================== */

/* ==========================================
   TIPOGRAFÍA MEJORADA - Sans-serif moderna
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Actualización de fuentes a sans-serif moderna */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* Paleta de colores corporativa industrial */
  --color-primary: #1e3a5f;        /* Azul marino oscuro industrial */
  --color-primary-dark: #142942;   /* Azul más oscuro */
  --color-primary-light: #2d5a8f;  /* Azul medio */

  --color-accent: #8b6f47;         /* Ocre/marrón cartón */
  --color-accent-light: #a38a66;   /* Ocre claro */

  --color-bg: #ffffff;
  --color-bg-light: #f5f7fa;       /* Gris muy claro */
  --color-text: #2c3e50;           /* Texto principal oscuro */
  --color-text-light: #5a6c7d;    /* Texto secundario */
}

/* Aplicar tipografía a todo el sitio */
body {
  font-family: var(--font-secondary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

h1 {
  font-weight: 800;
  font-size: 2.5rem;
}

h2 {
  font-weight: 700;
  font-size: 2rem;
}

/* ==========================================
   ESPACIADO - Aumentar padding de secciones
   ========================================== */
.section {
  padding: 5rem 2rem !important;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 1.5rem !important;
  }
}

/* ==========================================
   TARJETAS (CARDS) - Diseño mejorado
   ========================================== */
.card-industrial,
[style*="background: white"][style*="padding: 1.5rem"],
[style*="background: white"][style*="padding: 2rem"] {
  border: 1px solid rgba(30, 58, 95, 0.08) !important;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08) !important;
  transition: all 0.3s ease !important;
}

.card-industrial:hover,
[style*="background: white"][style*="padding: 1.5rem"]:hover,
[style*="background: white"][style*="padding: 2rem"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15) !important;
  border-color: rgba(30, 58, 95, 0.15) !important;
}

/* ==========================================
   HERO BANNER - Mejor legibilidad
   ========================================== */
.hero {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero p {
  color: #ffffff !important;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   BOTONES CTA - Diseño industrial
   ========================================== */
.btn-cta {
  background: var(--color-primary) !important;
  color: white !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  padding: 1rem 2.5rem !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2) !important;
}

.btn-cta:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3) !important;
}

/* ==========================================
   TIMELINE MEJORADA (Página Nosotros)
   ========================================== */
.timeline-year {
  font-family: var(--font-primary) !important;
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: var(--color-primary) !important;
  line-height: 1 !important;
  margin-bottom: 0.5rem !important;
  display: block;
  letter-spacing: -0.03em;
}

.timeline-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
  border-left: 5px solid var(--color-accent);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 24px rgba(30, 58, 95, 0.15);
}

.timeline-content h3 {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.timeline-content p {
  line-height: 1.8;
  color: var(--color-text);
}

/* ==========================================
   SECTION TITLES - Mayor jerarquía visual
   ========================================== */
.section-title {
  font-family: var(--font-primary) !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: var(--color-primary) !important;
  text-align: center;
  margin-bottom: 3rem !important;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ==========================================
   TARJETAS DE APLICACIONES - Home
   ========================================== */
.aplicacion-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(30, 58, 95, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.aplicacion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.15);
  border-color: rgba(30, 58, 95, 0.12);
}

.aplicacion-card h4 {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ==========================================
   BLOQUES DE DESCARGA PDF - Estilo mejorado
   ========================================== */
a[href$=".pdf"] {
  border: 2px solid rgba(30, 58, 95, 0.1) !important;
  transition: all 0.3s ease !important;
}

a[href$=".pdf"]:hover {
  border-color: var(--color-primary) !important;
  background: linear-gradient(to bottom, white, rgba(30, 58, 95, 0.02)) !important;
}

/* ==========================================
   FOOTER - Diseño profesional
   ========================================== */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem 2rem;
  font-family: var(--font-secondary);
}

.footer p {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   RESPONSIVE - Ajustes para móviles
   ========================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2, .section-title {
    font-size: 1.75rem !important;
  }

  .timeline-year {
    font-size: 2.5rem !important;
  }

  .btn-cta {
    padding: 0.875rem 2rem !important;
    font-size: 0.9rem !important;
  }
}
