/**
 * Estilos sección ACTIVIDADES — archivo aparte para hosting:
 * Sube SIEMPRE este archivo junto con index.html (carpeta css/).
 */
.actividades-section {
  padding: 4rem 0;
  background: #ffffff;
}
.actividades-container { max-width: 1160px; }
.actividades-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.actividades-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2d8ae5;
  margin-bottom: 1rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.actividades-eyebrow::before,
.actividades-eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: #2d8ae5;
  border-radius: 2px;
}
.actividades-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0b2e5b;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.actividades-title em {
  font-style: normal;
  color: #2d8ae5;
}
.actividades-desc {
  font-size: 0.97rem;
  color: #5f6e83;
  font-weight: 500;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.actividades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 340px 340px;
  gap: 14px;
}
.actividades-grid .act-1 { grid-column: 1 / 3; grid-row: 1; }
.actividades-grid .act-2 { grid-column: 3 / 4; grid-row: 1; }
.actividades-grid .act-3 { grid-column: 1 / 2; grid-row: 2; }
.actividades-grid .act-4 { grid-column: 2 / 4; grid-row: 2; }
.actividad-card {
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.32s cubic-bezier(0.22, 0.68, 0, 1.15), box-shadow 0.32s ease;
  box-shadow: 0 4px 28px rgba(11, 31, 74, 0.12);
  animation: actividadesRise 0.54s ease both;
}
.actividad-card:nth-child(1) { animation-delay: 0.07s; }
.actividad-card:nth-child(2) { animation-delay: 0.16s; }
.actividad-card:nth-child(3) { animation-delay: 0.25s; }
.actividad-card:nth-child(4) { animation-delay: 0.34s; }
@keyframes actividadesRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.actividad-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 22px 56px rgba(11, 31, 74, 0.2);
}
.actividad-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.actividad-card:hover .actividad-img { transform: scale(1.06); }
.actividad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 22, 53, 0.88) 0%,
    rgba(8, 22, 53, 0.45) 45%,
    rgba(8, 22, 53, 0.1) 100%
  );
  z-index: 1;
  transition: background 0.3s;
}
.actividad-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(8, 22, 53, 0.92) 0%,
    rgba(8, 22, 53, 0.52) 50%,
    rgba(8, 22, 53, 0.14) 100%
  );
}
.actividad-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.6rem;
}
.actividad-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 5px 13px 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.actividad-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d8ae5;
  flex-shrink: 0;
  animation: actividadesPulse 2s infinite;
}
@keyframes actividadesPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
.actividad-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 0.4rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.actividad-content .actividad-title,
.actividad-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.act-1 .actividad-title,
.act-4 .actividad-title { font-size: 1.7rem; }
.actividad-desc {
  font-size: 0.835rem;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6;
  font-weight: 500;
  max-width: 420px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.actividad-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 0.9rem;
}
.actividad-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.actividad-card:hover .actividad-pill {
  background: rgba(45, 138, 229, 0.25);
  border-color: rgba(45, 138, 229, 0.4);
  color: #fff;
}
@media (max-width: 820px) {
  .actividades-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .actividades-grid .act-1 { grid-column: 1 / 3; grid-row: auto; }
  .actividades-grid .act-2 { grid-column: 1 / 2; grid-row: auto; }
  .actividades-grid .act-3 { grid-column: 2 / 3; grid-row: auto; }
  .actividades-grid .act-4 { grid-column: 1 / 3; grid-row: auto; }
  .actividad-card { min-height: 300px; }
}
@media (max-width: 500px) {
  .actividades-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .actividades-grid .act-1,
  .actividades-grid .act-2,
  .actividades-grid .act-3,
  .actividades-grid .act-4 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .actividad-card { min-height: 280px; }
}
