/* ==========================================================================
   IRIS GLOBAL MÉXICO - ESTILOS CORPORATIVOS
   Identidad visual de IRIS Global (#1f1333, #341f58, botones #7a46ce, #4f2a7e)
   Acentos y Valores: #d4a036, #62b372, #459bb8, #9c3f6e
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --iris-primary-950: #140b22;
  --iris-primary-900: #1f1333;
  --iris-secondary-800: #341f58;
  --iris-middle-700: #4f2a7e;
  --iris-btn-600: #7a46ce;
  --iris-btn-hover: #6534b8;
  --iris-light-lavender: #f7f4fc;
  --iris-text-dark: #1f1333;
  --iris-text-muted: #5e5274;
  --iris-border: #e9e2f5;

  /* Colores de Acento / Valores ICAP */
  --icap-gold: #d4a036;
  --icap-green: #62b372;
  --icap-cyan: #459bb8;
  --icap-magenta: #9c3f6e;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--iris-text-dark);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía editorial para citas */
.font-serif-quote {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Transiciones suaves */
a,
button,
.card-hover,
.service-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tarjetas corporativas con sombra sutil de tono violeta suave */
.corporate-card {
  background: #FFFFFF;
  border: 1px solid rgba(233, 226, 245, 0.9);
  border-radius: 1rem;
  box-shadow: 0 4px 20px -2px rgba(31, 19, 51, 0.05);
}

.corporate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(79, 42, 126, 0.12);
  border-color: rgba(122, 70, 206, 0.35);
}

/* Estilo Whitepaper Directivo (Manifiesto de Alta Dirección) */
.whitepaper-paper {
  background: #FFFFFF;
  border: 1px solid #e9e2f5;
  box-shadow: 0 20px 40px -15px rgba(31, 19, 51, 0.08);
  position: relative;
}

.whitepaper-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f1333 0%, #4f2a7e 30%, #7a46ce 65%, #d4a036 100%);
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* Barra emblemática de 4 valores IRIS: Oro, Verde, Cian, Magenta */
.brand-val-line {
  display: flex;
  height: 4px;
  width: 100%;
  overflow: hidden;
}

.brand-val-gold {
  background-color: var(--icap-gold);
}

.brand-val-green {
  background-color: var(--icap-green);
}

.brand-val-cyan {
  background-color: var(--icap-cyan);
}

.brand-val-magenta {
  background-color: var(--icap-magenta);
}

/* Separador de 4 guiones de valores como en irisgra-ec */
.iris-dash-bar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.iris-dash-bar span {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  display: inline-block;
}

/* Carrusel horizontal */
.carousel-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1c4e9 transparent;
}

.carousel-scroll::-webkit-scrollbar {
  height: 6px;
}

.carousel-scroll::-webkit-scrollbar-track {
  background: #f7f4fc;
  border-radius: 4px;
}

.carousel-scroll::-webkit-scrollbar-thumb {
  background: #d1c4e9;
  border-radius: 4px;
}

.carousel-scroll::-webkit-scrollbar-thumb:hover {
  background: #b39ddb;
}

.carousel-item-card {
  flex: 0 0 280px;
  user-select: none;
}

@media (min-width: 768px) {
  .carousel-item-card {
    flex: 0 0 320px;
  }
}

/* Botones principales corporativos (color #7a46ce solicitado) */
.btn-iris-primary {
  background-color: var(--iris-btn-600);
  color: #FFFFFF;
  border: 1px solid var(--iris-btn-600);
}

.btn-iris-primary:hover {
  background-color: var(--iris-btn-hover);
  border-color: var(--iris-btn-hover);
  box-shadow: 0 8px 20px -4px rgba(122, 70, 206, 0.4);
}

.btn-iris-dark {
  background-color: var(--iris-primary-900);
  color: #FFFFFF;
  border: 1px solid var(--iris-primary-900);
}

.btn-iris-dark:hover {
  background-color: var(--iris-secondary-800);
  border-color: var(--iris-secondary-800);
  box-shadow: 0 8px 20px -4px rgba(31, 19, 51, 0.4);
}

.btn-iris-accent {
  background-color: var(--iris-btn-600);
  color: #FFFFFF;
}

.btn-iris-accent:hover {
  background-color: var(--iris-middle-700);
  box-shadow: 0 8px 20px -4px rgba(122, 70, 206, 0.4);
}

.btn-iris-outline {
  border: 1px solid var(--iris-btn-600);
  color: var(--iris-btn-600);
  background-color: transparent;
}

.btn-iris-outline:hover {
  background-color: var(--iris-btn-600);
  color: #FFFFFF;
}

/* Indicador activo de menú */
.nav-link-active {
  color: var(--iris-btn-600) !important;
  font-weight: 600;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--iris-btn-600);
  border-radius: 1px;
}

/* Patrón sutil de fondo */
.bg-grid-subtle {
  background-image: radial-gradient(rgba(79, 42, 126, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==============================================================
   DISEÑO GRÁFICO ESPECÍFICO DE VALORES ICAP (SEGÚN IMAGEN DEL USUARIO)
   ============================================================== */
.val-card {
  background: #FFFFFF;
  border-radius: 1rem;
  border: 1px solid #e9e2f5;
  box-shadow: 0 4px 16px -2px rgba(31, 19, 51, 0.05);
  display: flex;
  overflow: hidden;
  transition: all 0.25s ease;
}

.val-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(79, 42, 126, 0.12);
  border-color: rgba(122, 70, 206, 0.3);
}

.val-graphic-box {
  width: 130px;
  min-height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .val-graphic-box {
    width: 160px;
    min-height: 155px;
  }
}

/* Gráfico I - Integridad (Cian/Azul con palabra 'Dios') */
.val-graphic-i {
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 50%, #0077b6 100%);
}

/* Gráfico C - Creatividad (Verde) */
.val-graphic-c {
  background: linear-gradient(135deg, #81c784 0%, #4caf50 50%, #2e7d32 100%);
}

/* Gráfico A - Agilidad (Violeta / Púrpura) */
.val-graphic-a {
  background: linear-gradient(135deg, #ba68c8 0%, #8e24aa 50%, #5e1675 100%);
}

/* Gráfico P - Perseverancia (Dorado / Ámbar) */
.val-graphic-p {
  background: linear-gradient(135deg, #ffb74d 0%, #f57c00 50%, #d4a036 100%);
}

/* ==========================================================================
   HERO CINEMÁTICO - AWWWARDS / APPLE / STRIPE STYLE (60 FPS)
   ========================================================================== */

/* Zoom-out cinematográfico con bezier natural [0.16, 1, 0.3, 1] */
@keyframes heroKenBurns {
  0% {
    transform: scale(1.08) translate3d(var(--hero-bg-x, 0px), var(--hero-bg-y, 0px), 0);
  }

  100% {
    transform: scale(1.0) translate3d(var(--hero-bg-x, 0px), var(--hero-bg-y, 0px), 0);
  }
}

.hero-cinematic-bg {
  animation: heroKenBurns 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
  transform-origin: center center;
}

/* Entrada escalonada de textos con blur invertido */
@keyframes heroFadeBlurUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes heroScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Resplandor pulsante continuo para la píldora superior */
@keyframes heroPillGlow {

  0%,
  100% {
    box-shadow: 0 0 14px rgba(110, 56, 247, 0.35), inset 0 0 10px rgba(122, 70, 206, 0.2);
    border-color: rgba(122, 70, 206, 0.5);
  }

  50% {
    box-shadow: 0 0 24px rgba(110, 56, 247, 0.65), inset 0 0 14px rgba(122, 70, 206, 0.4);
    border-color: rgba(167, 139, 250, 0.8);
  }
}

.hero-anim-pill {
  animation: heroScaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both, heroPillGlow 3.5s ease-in-out 1.2s infinite;
}

.hero-anim-title {
  animation: heroFadeBlurUp 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-anim-desc-1 {
  animation: heroFadeBlurUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

.hero-anim-desc-2 {
  animation: heroFadeBlurUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}

.hero-anim-cta {
  animation: heroFadeBlurUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.25s both;
}

/* Interactive Cursor Glow */
.hero-cursor-glow {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 56, 247, 0.22) 0%, rgba(79, 42, 126, 0.08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 5;
  mix-blend-mode: screen;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform, opacity;
}

/* Efecto Parallax en el contenedor de contenido */
.hero-parallax-layer {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.hero-bg-layer {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* ==========================================================================
   SECCIÓN 2: TARJETA IRIS (SCROLL REVEAL + FLOATING + 3D TILT + SPECULAR)
   ========================================================================== */

/* Estado inicial antes del scroll reveal */
.scroll-reveal-init {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Clase añadida al entrar en viewport */
.scroll-revealed {
  opacity: 1 !important;
  transform: translateY(0px) scale(1) !important;
}

/* Efecto Flotante Sutil continuo (Levitation Loop: 4s en bucle infinito) */
@keyframes irisCardFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.iris-card-floating-wrapper {
  animation: irisCardFloat 4.2s ease-in-out infinite;
  will-change: transform;
  perspective: 1000px;
}

/* Contenedor Tilt 3D interactivo */
.iris-tilt-container {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* Brillo especular diagonal reflectivo que cruza la tarjeta */
.iris-card-shine {
  pointer-events: none;
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.22) 0%, rgba(110, 56, 247, 0.12) 30%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
  z-index: 2;
  will-change: background, opacity;
}

/* Animación sutil de fondo Hero (Ken Burns effect) */
@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1.5%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

.hero-bg-animated {
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Animación y efectos para los recuadros enumerados del 1 al 6 */
@keyframes cardPulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px -2px rgba(31, 19, 51, 0.05);
  }
  50% {
    box-shadow: 0 8px 25px -4px rgba(122, 70, 206, 0.18);
  }
}

.numbered-step-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid #e9e2f5;
  overflow: hidden;
}

.numbered-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7a46ce, #d4a036);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.numbered-step-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(122, 70, 206, 0.45);
  box-shadow: 0 20px 35px -8px rgba(31, 19, 51, 0.15), 0 0 20px -4px rgba(122, 70, 206, 0.2);
}

.numbered-step-card:hover::before {
  opacity: 1;
}

.numbered-step-card .step-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.numbered-step-card:hover .step-badge {
  transform: scale(1.12) rotate(-4deg);
  background-color: #1e1332;
  color: #d4a036;
  box-shadow: 0 6px 16px rgba(30, 19, 50, 0.3);
}