/* ==========================================================
   Unichaco — overrides sobre Tailwind CDN
   ========================================================== */

:root {
  --navy:       #0B1F3A;
  --navy-700:   #13294B;
  --navy-900:   #050E1E;
  --orange:     #F39200;
  --orange-600: #D97E00;
  --gray-bg:    #F4F5F7;
  --gray-card:  #FFFFFF;
  --gray-line:  #E5E7EB;
  --text:       #1A1A1A;
  --text-muted: #6B7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  /* Textura sutil en el fondo gris */
  background-color: var(--gray-bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11, 31, 58, 0.035) 1px, transparent 0);
  background-size: 20px 20px;
}

/* Colores custom utilitarios */
.bg-navy { background-color: var(--navy); }
.bg-navy-700 { background-color: var(--navy-700); }
.bg-navy-900 { background-color: var(--navy-900); }
.text-navy { color: var(--navy); }
.border-navy { border-color: var(--navy); }

.bg-orange { background-color: var(--orange); }
.bg-orange-600 { background-color: var(--orange-600); }
.text-orange { color: var(--orange); }
.border-orange { border-color: var(--orange); }

.hover\:bg-orange-600:hover { background-color: var(--orange-600); }
.hover\:bg-navy-700:hover { background-color: var(--navy-700); }
.hover\:text-orange:hover { color: var(--orange); }

/* ==========================================================
   Hero con overlay diagonal + gradiente oscuro + parallax
   ========================================================== */
.hero-wrapper {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

/* Imagen de fondo (parallax: se desplaza con --hero-shift vía JS) */
.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: -10% 0 -10% 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  filter: brightness(0.85) saturate(1.1) contrast(1.05);
  transform: translate3d(0, calc(var(--hero-shift, 0px) * -1), 0) scale(1.08);
  transition: transform .05s linear;
  z-index: 0;
  will-change: transform;
}

/* Degradado oscuro azul marino (bottom → top) para legibilidad del texto */
.hero-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.35) 0%, rgba(11, 31, 58, 0.60) 45%, rgba(11, 31, 58, 0.92) 100%),
    linear-gradient(135deg, transparent 50%, rgba(243, 146, 0, 0.85) 50%, rgba(243, 146, 0, 0.85) 54%, transparent 54%) right top / 60% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}

.hero-wrapper > * { position: relative; z-index: 2; }

/* Indicador scroll (abajo del hero) */
.hero-wrapper .hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.8);
  animation: heroBob 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroBob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.85; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* Curva orange decorativa (inspirada en el logo) */
.curve-accent {
  position: relative;
  padding-bottom: 6px;
}
.curve-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 72px; height: 8px;
  background: var(--orange);
  border-radius: 999px;
}

/* Card con corner-cut diagonal sutil */
.card-corner {
  position: relative;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    0 100%
  );
}

/* Banda diagonal para banner promo estilo SOAS pero naranja */
.promo-band {
  background: var(--orange);
  color: white;
  position: relative;
}
.promo-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, var(--orange-600), transparent);
  opacity: 0.4;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(243, 146, 0, 0.5);
}
.btn-outline {
  border: 2px solid white;
  color: white;
}
.btn-outline:hover {
  background: white;
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-700); }

/* Títulos con personalidad */
h1, h2 { letter-spacing: -0.02em; }
.h-display {
  font-weight: 800;
  line-height: 1.05;
}

/* Nav sticky blur */
.nav-glass {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background-color: rgba(255, 255, 255, 0.92);
}

/* Rich-text areas (noticias, páginas) */
.prose-unichaco { color: var(--text); line-height: 1.75; }
.prose-unichaco h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 1.75rem 0 0.75rem; }
.prose-unichaco h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 1.25rem 0 0.5rem; }
.prose-unichaco p  { margin: 0.75rem 0; }
.prose-unichaco ul, .prose-unichaco ol { margin: 0.75rem 0 0.75rem 1.25rem; }
.prose-unichaco ul { list-style: disc; }
.prose-unichaco ol { list-style: decimal; }
.prose-unichaco a  { color: var(--orange); text-decoration: underline; }
.prose-unichaco strong { color: var(--navy); }
.prose-unichaco img { border-radius: 0.75rem; margin: 1rem 0; }

/* Animaciones entry */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fadeUp .7s ease both;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Scroll-snap para testimonios mobile */
.snap-x-row {
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
}
.snap-x-row > * { scroll-snap-align: start; }
