/* Página "próximamente", alineada a omnipay.cl con la paleta oficial. */

:root {
  --navy: #082f49;
  --blue: #0c5484;
  --cyan: #1b94ae;
  --cyan-bright: #8fd4e2;
  --gray: #6e6e70;
  --white: #ffffff;
  --mist: #f7f9fc;
  --line: rgba(27, 148, 174, 0.22);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--white);
  color: #172b3a;
  font-family: var(--font);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 84, 132, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 84, 132, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.bg-glow--1 {
  top: -200px;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 148, 174, 0.16) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

.bg-glow--2 {
  right: -100px;
  bottom: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(12, 84, 132, 0.12) 0%, transparent 70%);
  animation: pulse-glow-corner 10s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

@keyframes pulse-glow-corner {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.12); }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.hero {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 720px;
  text-align: center;
}

.hero__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.9s ease both;
}

.hero__logo-glow {
  position: absolute;
  width: 320px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 148, 174, 0.18) 0%, transparent 68%);
  filter: blur(36px);
  animation: logo-pulse 4s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
  from { opacity: 0.5; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1.08); }
}

.hero__logo {
  position: relative;
  width: min(420px, 82vw);
  filter: drop-shadow(0 8px 18px rgba(8, 47, 73, 0.08));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 84, 132, 0.06);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  animation: fade-up 0.9s 0.15s ease both;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-bright);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__title {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  animation: fade-up 0.9s 0.3s ease both;
}

.hero__title-accent {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  max-width: 560px;
  color: var(--gray);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  animation: fade-up 0.9s 0.45s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  animation: fade-up 0.9s 0.6s ease both;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #156f92 100%);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(27, 148, 174, 0.32);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(27, 148, 174, 0.45);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.pillars {
  padding: 1rem 1.5rem 3rem;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.pillar-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid #e5edf3;
  border-radius: var(--radius);
  background: var(--mist);
  backdrop-filter: blur(12px);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  animation: fade-up 0.9s ease both;
}

.pillar-card:nth-child(1) { animation-delay: 0.7s; }
.pillar-card:nth-child(2) { animation-delay: 0.85s; }
.pillar-card:nth-child(3) { animation-delay: 1s; }

.pillar-card:hover {
  border-color: rgba(27, 148, 174, 0.45);
  box-shadow: 0 12px 40px rgba(8, 47, 73, 0.35);
  transform: translateY(-6px);
}

.pillar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(27, 148, 174, 0.28);
  border-radius: 12px;
  background: rgba(27, 148, 174, 0.12);
  color: var(--blue);
}

.pillar-card__icon svg {
  width: 22px;
  height: 22px;
}

.pillar-card__title {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.pillar-card__desc {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer {
  padding: 1.5rem;
  border-top: 1px solid #e5edf3;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 960px;
  margin: 0 auto;
}

.footer__isotipo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(27, 148, 174, 0.35));
}

.footer__copy {
  color: var(--gray);
  font-size: 0.8rem;
}

.footer__email {
  color: var(--blue);
  font-size: 0.8rem;
  transition: opacity var(--ease);
}

.footer__email:hover {
  opacity: 0.75;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .pillars__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__logo-glow {
    width: 240px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .hero__inner {
    gap: 1.4rem;
  }

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

  .pillar-card {
    padding: 1.4rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
