/* Shared utilities for landing pages that include this stylesheet */
:root {
  --isat-blue-700: #1d4ed8;
  --isat-blue-600: #2563eb;
  --isat-cyan-500: #06b6d4;
  --isat-slate-950: #020617;
  --isat-slate-900: #0f172a;
  --isat-slate-700: #334155;
  --isat-slate-600: #475569;
  --isat-slate-300: #cbd5e1;
  --isat-slate-100: #f1f5f9;
  --isat-slate-50: #f8fafc;
}

.prob-gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #0ea5e9 100%);
}

.prob-section {
  padding: 5rem 0;
  position: relative;
}

.prob-section-alt {
  background-color: var(--isat-slate-50);
}

.prob-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px -20px rgba(15, 23, 42, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prob-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -26px rgba(15, 23, 42, 0.55);
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -26px rgba(15, 23, 42, 0.55);
}

.image-card {
  border: 1px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 20px 35px -28px rgba(15, 23, 42, 0.5);
}

.image-card img {
  transition: transform 0.55s ease;
}

.group:hover .image-card img {
  transform: scale(1.04);
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(18px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Impacto esperado: dark stats section */
#sequia {
  background-color: #003366;
  color: #ffffff;
}

#sequia .sequia-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
}

#sequia .container {
  position: relative;
  z-index: 2;
}

#sequia .features-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  padding: 1.7rem 1.25rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

#sequia .features-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px -30px rgba(2, 6, 23, 0.85);
}

#sequia .features-title,
#sequia .features-description {
  color: rgba(255, 255, 255, 0.96);
}

#sequia .features-title span {
  color: rgba(219, 234, 254, 0.95);
}

/* Hero metrics variant */
#hero-metrics {
  background-color: var(--isat-slate-50);
  color: #111827;
  position: relative;
  overflow: hidden;
}

#hero-metrics .sequia-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
}

#hero-metrics .container {
  position: relative;
  z-index: 2;
}

#hero-metrics .features-item {
  padding: 1.7rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--isat-slate-900);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

#hero-metrics .features-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -24px rgba(15, 23, 42, 0.65);
}

#hero-metrics .features-title {
  color: #111827 !important;
}

#hero-metrics .features-description {
  color: #374151 !important;
}

#hero-metrics h2,
#hero-metrics .text-xl,
#hero-metrics p {
  color: #111827 !important;
}

#hero-metrics .features-title span {
  color: rgba(15, 23, 42, 0.75) !important;
}

/* Problematica page scoped styles */
.problematica-page {
  --problematica-border: rgba(148, 163, 184, 0.28);
  --problematica-card-bg: #ffffff;
  --problematica-copy: #475569;
}

.problematica-reto {
  position: relative;
}

.problematica-reto__content {
  background: var(--problematica-card-bg);
  border: 1px solid var(--problematica-border);
  border-radius: 1rem;
  padding: clamp(1.35rem, 1.25vw + 1rem, 2rem);
  box-shadow: 0 22px 40px -34px rgba(15, 23, 42, 0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.problematica-reto__grid:hover .problematica-reto__content {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 28px 48px -34px rgba(30, 64, 175, 0.45);
}

.problematica-reto__icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.problematica-reto__label {
  letter-spacing: 0.13em;
}

.problematica-reto__title {
  letter-spacing: -0.02em;
}

.problematica-reto__text {
  color: var(--problematica-copy);
}

.problematica-reto__text p,
.problematica-reto__text ul,
.problematica-reto__text h3 {
  margin-top: 0;
}

.problematica-reto__text p:last-child,
.problematica-reto__text ul:last-child {
  margin-bottom: 0;
}

.problematica-reto__text strong,
.problematica-reto__text h3 {
  color: #0f172a;
}

.problematica-reto__text ul {
  padding: 0;
}

.problematica-reto__media {
  border: 1px solid var(--problematica-border);
  box-shadow: 0 26px 42px -34px rgba(15, 23, 42, 0.62);
  background: #f8fafc;
  padding: 0.55rem;
}

.problematica-reto__img {
  transition: transform 0.55s ease;
  object-fit: contain;
  object-position: center;
}

.problematica-reto__grid:hover .problematica-reto__img {
  transform: none;
}

.problematica-page .group:hover .problematica-reto__media img {
  transform: none;
}

.problematica-cierre {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.problematica-cierre__text {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.problematica-cierre__button {
  box-shadow: 0 18px 30px -20px rgba(2, 6, 23, 0.55);
}

.problematica-cierre__button:hover {
  box-shadow: 0 22px 36px -18px rgba(2, 6, 23, 0.55);
}

.dark .prob-section-alt {
  background-color: #111827;
}

.dark .prob-card {
  background: #1f2937;
  border-color: #374151;
}

.dark .problematica-reto__content {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
}

.dark .problematica-reto__title,
.dark .problematica-reto__text strong,
.dark .problematica-reto__text h3 {
  color: #f8fafc;
}

.dark .problematica-reto__text {
  color: #cbd5e1;
}

.dark .problematica-reto__media {
  border-color: rgba(148, 163, 184, 0.2);
}

.dark #hero-metrics {
  background-color: #002b4d;
  color: #ffffff;
}

.dark #hero-metrics .features-item {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.46), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.dark #hero-metrics h2,
.dark #hero-metrics .text-xl,
.dark #hero-metrics p,
.dark #hero-metrics .features-title {
  color: #f8fafc !important;
}

.dark #hero-metrics .features-description {
  color: #d1d5db !important;
}

.dark #hero-metrics .features-title span {
  color: rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 1024px) {
  .prob-section {
    padding: 4.5rem 0;
  }

  .problematica-reto__content {
    padding: 1.45rem;
  }
}

@media (max-width: 768px) {
  .prob-section {
    padding: 4rem 0;
  }

  .problematica-reto {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .problematica-cierre__text {
    font-size: 1.075rem;
  }

  .problematica-cierre__button {
    width: 100%;
    justify-content: center;
  }
}
