/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #003366;
  --blue-mid: #1d3557;
  --blue-light: #4a90e2;
  --gold: #f4c20d;
  --gold-hover: #f9d03a;
  --bg: #f4f7fb;
  --text: #333;
  --muted: #5a6a7e;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Krub", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== PAGE WRAPPER ===== */
.que-hacemos-page {
  width: 100%;
}

/* =============================================
       MISSION SECTION
    ============================================= */
.mision-section {
  padding: 100px 24px 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* background watermark text */
.mision-section::before {
  content: "MISIÓN";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 700;
  color: rgba(0, 51, 102, 0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.08em;
  user-select: none;
}

.mision-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Visual side */
.mision-visual {
  position: relative;
}

.mision-img-wrap {
  position: relative;
  border-radius: 28px;
  overflow: visible;
}

.mision-img-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 50%, #fef3a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: 0 20px 60px rgba(0, 51, 102, 0.12);
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.2);
  position: relative;
  overflow: hidden;
}

/* Inclúyeme watermark on image */
.mision-img-placeholder::before {
  content: "Inclúyeme";
  position: absolute;
  bottom: 24px;
  left: 20px;
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(0, 51, 102, 0.18);
  pointer-events: none;
  white-space: nowrap;
}

.mision-visual:hover .mision-img-placeholder {
  transform: scale(1.02) rotate(-0.5deg);
}

/* Decorative gold ring */
.mision-ring {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(244, 194, 13, 0.35);
  animation: ringPulse 4s ease-in-out infinite;
}
.mision-ring-2 {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 51, 102, 0.12);
  animation: ringPulse 5.5s 1s ease-in-out infinite reverse;
}
@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.3;
  }
}

/* Floating badge */
.mision-badge {
  position: absolute;
  bottom: -24px;
  right: 28px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.mision-badge__icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.mision-badge__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 3px;
}
.mision-badge__text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.15;
  margin-bottom: 28px;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.6s 0.3s ease;
}
.section-title.title-underlined em {
  background-size: 100% 3px;
}

.section-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* Keyword highlight chips */
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid rgba(0, 51, 102, 0.12);
  color: var(--blue-dark);
  background: rgba(0, 51, 102, 0.04);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    color 0.2s;
  cursor: default;
}
.chip:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
}
.chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* =============================================
       DIVIDER WITH ICON
    ============================================= */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  background: var(--bg);
}
.section-break__line {
  flex: 1;
  max-width: 320px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 51, 102, 0.15),
    transparent
  );
}
.section-break__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(244, 194, 13, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.08);
  animation: iconSpin 12s linear infinite;
}
@keyframes iconSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* =============================================
       VISION SECTION
    ============================================= */
.vision-section {
  padding: 80px 24px 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: "VISIÓN";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 700;
  color: rgba(0, 51, 102, 0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.08em;
  user-select: none;
}

.vision-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ODS badge strip */
.ods-strip {
  margin-top: 32px;
  background: var(--blue-dark);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ods-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 194, 13, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.ods-strip__icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.ods-strip__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.ods-strip__text strong {
  color: var(--gold);
  font-weight: 700;
}

/* Vision values list */
.vision-values {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.vision-values li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.vision-values li.feature-visible {
  opacity: 1;
  transform: none;
}
.vision-values .vv-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(244, 194, 13, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.vision-values li:hover .vv-icon {
  background: var(--gold);
  transform: scale(1.12) rotate(-4deg);
}

/* Vision visual right */
.vision-visual {
  position: relative;
}

.vision-img-placeholder {
  width: 100%;
  height: 380px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 60%, #c8e6f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 20px 60px rgba(0, 51, 102, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.2);
}

.vision-img-placeholder::after {
  content: "AUTISM";
  position: absolute;
  bottom: 24px;
  right: 20px;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(0, 51, 102, 0.12);
  letter-spacing: 0.15em;
  pointer-events: none;
}

.vision-visual:hover .vision-img-placeholder {
  transform: scale(1.02) rotate(0.5deg);
}

/* Floating stat badge */
.vision-badge {
  position: absolute;
  top: -20px;
  left: -24px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: badgeFloat 4.5s 0.5s ease-in-out infinite;
}
.vision-badge__icon {
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.vision-badge__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}
.vision-badge__text span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

/* decorative rings */
.vision-ring {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(244, 194, 13, 0.3);
  animation: ringPulse 5s ease-in-out infinite;
}
.vision-ring-2 {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(0, 51, 102, 0.12);
  animation: ringPulse 7s 2s ease-in-out infinite reverse;
}

/* =============================================
       VALUES / PILLARS STRIP
    ============================================= */
.pillars-section {
  background: var(--blue-dark);
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.pillars-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 10% 50%,
      rgba(244, 194, 13, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 70% at 90% 50%,
      rgba(74, 144, 226, 0.08) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.pillars-header {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}
.pillars-header .eyebrow-white {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244, 194, 13, 0.1);
  border: 1px solid rgba(244, 194, 13, 0.25);
  border-radius: 50px;
  padding: 5px 20px;
  margin-bottom: 16px;
}
.pillars-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
}
.pillars-header h2 span {
  color: var(--gold);
}

.pillars-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.pillar-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 194, 13, 0.35);
  transform: translateY(-8px);
}
.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card__emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.pillar-card:hover .pillar-card__emoji {
  transform: scale(1.2) rotate(-5deg);
}

.pillar-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.pillar-card__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
}

/* =============================================
       CTA SECTION
    ============================================= */
.cta-section {
  padding: 100px 24px;
  background: var(--white);
  text-align: center;
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  padding: 60px 48px;
  box-shadow: 0 16px 60px rgba(0, 51, 102, 0.08);
  position: relative;
  overflow: hidden;
  animation: ctaBreath 5s ease-in-out infinite;
}
@keyframes ctaBreath {
  0%,
  100% {
    box-shadow: 0 16px 60px rgba(0, 51, 102, 0.08);
  }
  50% {
    box-shadow: 0 24px 80px rgba(0, 51, 102, 0.14);
  }
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue-dark), var(--gold));
}

.cta-box .cta-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 20px;
}
.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-box p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--blue-mid);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(244, 194, 13, 0.35);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 194, 13, 0.5);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transition: left 0.5s ease;
}
.btn-primary:hover::after {
  left: 160%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-dark);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--blue-dark);
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
       SCROLL REVEAL
    ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.72s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.32s;
}
.reveal-d4 {
  transition-delay: 0.46s;
}

/* =============================================
       RESPONSIVE
    ============================================= */
@media (max-width: 960px) {
  .mision-inner,
  .vision-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .vision-inner {
    direction: ltr;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mision-badge {
    right: 16px;
  }
}
@media (max-width: 600px) {
  .mision-section,
  .vision-section {
    padding: 72px 20px 60px;
  }
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .mision-img-placeholder,
  .vision-img-placeholder {
    height: 260px;
  }
}

/* Chip hover shimmer */
.chip {
  position: relative;
  overflow: hidden;
}
.chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.4s ease;
  pointer-events: none;
}
.chip:hover::after {
  left: 130%;
}

/* Pillar card shimmer sweep */
.pillar-card {
  position: relative;
  overflow: hidden;
}
.pillar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transition: left 0.55s ease;
  pointer-events: none;
}
.pillar-card:hover::after {
  left: 160%;
}

/* Btn shimmer */
.btn-outline {
  position: relative;
  overflow: hidden;
}
.btn-outline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn-outline:hover::after {
  left: 160%;
}

/* ODS strip pulse border */
.ods-strip {
  position: relative;
  transition: box-shadow 0.3s;
}
.ods-strip:hover {
  box-shadow:
    0 0 0 2px var(--gold),
    0 8px 32px rgba(0, 51, 102, 0.2);
}

/* section-break line animation */
.section-break {
  padding: 40px 24px;
}
