/* =============================
   Variables de color
============================= */
:root {
  --bg-body: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --primary: #2563eb;
  --success: #16a34a;
  --danger: #dc2626;
}

/* =============================
   Body & Global
============================= */
body {
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
  background: var(--bg-body);
  color: var(--text-primary);
}

/* =============================
   Hero Section
============================= */
.overlay-section {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background-image: url("../img/back_danzo.png");
  background-size: cover;       /* hace que la imagen cubra todo */
  background-position: center;  /* centra la imagen */
  background-repeat: no-repeat; /* evita repeticiones */
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.overlay-gradient {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.6), rgba(68,68,68,0.6));
  z-index: 1;
}

.overlay-content {
  position: relative;
  z-index: 2;
  text-align: bottom;
  max-width: 900px;
  padding: 0 1rem;
}

.animated-title {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 9rem;
  animation: fadeIn 1s ease-in-out;
  transform: translateY(-10px); /* sube 10px */
}


.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 600;
  border-radius: 0px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(235, 169, 37, 0.4);
}

/* =============================
   Animaciones
============================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================
   Responsive
============================= */
@media (max-width: 768px) {
  .animated-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* =============================
   About Section
============================= */
.about-section {
  padding: 4rem 1rem;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.company-card {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.company-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.company-card h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #e879f9, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.company-desc {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =============================
   Stats Grid
============================= */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.stat {
  flex: 1 1 120px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: scale(1.1);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
}

/* =============================
   Cards Section
============================= */
.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4rem 1rem;
}

.modern-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  background: #f9fafb;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}


/* Colores de los títulos */
.primary { color: var(--primary); }
.success { color: var(--success); }
.danger  { color: var(--danger); }

/* =============================
   Animations
============================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================
   Responsive
============================= */
@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .company-desc {
    align-items: center;
    text-align: center;
  }
  .stats-grid {
    justify-content: center;
  }
}
