/*
 * ============================================================
 * YANACÁ ASOCIADOS — PREMIUM ENHANCEMENT v2.0
 * ============================================================
 */

/* ── 1. SKIP TO CONTENT (Accesibilidad AA) ──────────────────── */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: #0f8f36;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 4px 20px rgba(15, 143, 54, 0.4);
}
.skip-to-content:focus {
  top: 0;
}

/* ── 2. FOCUS VISIBLE GLOBAL (Accesibilidad AA) ─────────────── */
:focus-visible {
  outline: 2px solid #14ba48;
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ── 3. HEADER — Scroll indicator sutil ─────────────────────── */
.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #14ba48, #2ec4b6, #ff7b00);
  transition: width 0.1s linear;
  will-change: width;
}

/* ── 4. HERO — Mejoras premium ───────────────────────────────── */

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
  animation: hero-scroll-bounce 2.4s ease-in-out infinite;
  pointer-events: none;
}
.hero-scroll-indicator span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero-scroll-indicator svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  fill: none;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.95; }
}
.hero-company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 16px;
  width: fit-content;
}
.hero-company-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9ffd0;
  box-shadow: 0 0 0 5px rgba(169, 255, 208, 0.2);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(169, 255, 208, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(169, 255, 208, 0.1); }
}
.hero-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-badge-v2:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.hero-badge-v2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d7ffe7, #53d58b);
  flex-shrink: 0;
}

/* ── 5. STATS STRIP — Mejorar jerarquía visual ───────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.stat-card:hover::after {
  opacity: 1;
}

/* ── 6. ABOUT US — Mejorar imagen hover ──────────────────────── */
.about-us-image {
  transition: transform 0.5s ease;
}
.about-us-split:hover .about-us-image {
  transform: scale(1.06);
}

/* KPI Cards — efecto de elevación más premium */
.about-us-kpi-card {
  position: relative;
  overflow: hidden;
}
.about-us-kpi-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 186, 72, 0.08), transparent 70%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
.about-us-kpi-card:hover::before {
  opacity: 1;
  transform: scale(1.5);
}

/* ── 7. SERVICES — Mejorar service nodes ─────────────────────── */

.service-node i {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.service-node:hover i {
  background: linear-gradient(135deg, #f0fff6 0%, #e8fff0 100%);
  box-shadow: 0 14px 32px rgba(10, 41, 24, 0.14), 0 0 0 3px rgba(20, 186, 72, 0.12);
  transform: translateY(-2px);
}
.service-node-link {
  position: relative;
  padding-bottom: 1px;
}
.service-node-link::after {
  content: ' →';
  transition: letter-spacing 0.2s ease;
}
.service-node-link:hover {
  color: #b51a10;
}
.service-node-link:hover::after {
  letter-spacing: 2px;
}

/* ── 8. CLIENTS SECTION — Mejoras de cards ───────────────────── */
.client-sector-card {
  position: relative;
  overflow: hidden;
}
.client-sector-card::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #14ba48, #2ec4b6);
  transition: width 0.3s ease;
}
.client-sector-card:hover::after {
  width: 8px;
  background: linear-gradient(180deg, #ff7b00, #ffe066);
}

/* ── 9. CLOSING IMPACT — Commitment cards ───────────────────── */

.closing-commitment-card {
  position: relative;
  overflow: hidden;
}
.closing-commitment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.closing-commitment-card:hover::before {
  left: 150%;
}

/* ── 10. CONTACT SECTION — Mejoras badges ───────────────────── */
.contact-badge-item {
  color: rgba(255, 255, 255, 0.96);
}
.cta-btn--primary:hover,
.cta-btn--primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 48px rgba(200, 240, 180, 0.45);
}
.cta-btn--secondary:hover,
.cta-btn--secondary:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

/* ── 11. SOCIAL ICONS — Mejorar hover ───────────────────────── */
.social-icon-link {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease !important;
}
.social-icon-link:hover {
  transform: translateY(-4px) scale(1.12) !important;
}

/* ── 12. FOOTER PREMIUM ──────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, #0a2214 0%, #0f3320 40%, #0a2a18 100%) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 0 !important;
  border-top: none !important;
  box-shadow: none !important;
}

.footer-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand-logo {
  width: auto;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 26ch;
}
.footer-brand-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.footer-social-btn:hover {
  background: rgba(20, 186, 72, 0.25);
  border-color: rgba(20, 186, 72, 0.4);
  color: #a9ffd0;
  transform: translateY(-3px) scale(1.1);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(20, 186, 72, 0.5);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.95);
  gap: 9px;
}
.footer-links a:hover::before {
  background: #14ba48;
  transform: scale(1.4);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}
.footer-contact-item i {
  color: #14ba48;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact-item a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-divider {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(20, 186, 72, 0.15), rgba(255, 255, 255, 0.08), transparent);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}
.footer-bottom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14ba48;
  animation: footer-dot 3s ease-in-out infinite;
}
@keyframes footer-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ── 13. WHATSAPP FLOAT BUTTON ───────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: inline-grid;
  place-items: center;
  font-size: 26px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: whatsapp-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: whatsapp-ping 2.5s ease-out infinite;
  z-index: -1;
}
.whatsapp-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
}
@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes whatsapp-entry {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ── 14. SCROLL TO TOP BUTTON ────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 143, 54, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(15, 143, 54, 0.3);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: #14ba48;
  box-shadow: 0 8px 24px rgba(20, 186, 72, 0.45);
  transform: translateY(-3px);
}

/* ── 15. MEJORAS MOBILE ──────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-company {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-scroll-indicator {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 24px;
  }
  .footer-brand-desc {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .scroll-top-btn {
    bottom: 78px;
    right: 16px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* ── 16. MEJORAS NAV SUBMENU PREMIUM ─────────────────────────── */
.nav-submenu li a {
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease !important;
}
.nav-submenu li a:hover {
  padding-left: 22px !important;
  color: #0f8f36 !important;
}

/* ── 17. SERVICE CARDS (MOBILE FALLBACK GRID) ────────────────── */
@media (max-width: 768px) {
  .services-ecosystem {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    min-height: auto !important;
    aspect-ratio: unset !important;
    padding: 0 8px 8px;
  }

  .service-center-orb {
    display: none;
  }

  .service-node {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, #ffffff 0%, #f4fdf6 100%) !important;
    border: 1px solid rgba(20, 186, 72, 0.12) !important;
    border-radius: 16px !important;
    padding: 16px 12px !important;
    box-shadow: 0 4px 16px rgba(20, 186, 72, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }
  .service-node:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 28px rgba(20, 186, 72, 0.16) !important;
  }

  .service-node i {
    color: #14ba48 !important;
    background: linear-gradient(135deg, #f0fff6, #e0f7eb) !important;
    box-shadow: 0 6px 16px rgba(20, 186, 72, 0.15) !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 18px !important;
    margin: 0 auto 8px !important;
    animation: none !important;
  }

  .service-node h3 {
    font-size: 0.75rem !important;
    color: #0f3320 !important;
  }

  .service-node p {
    font-size: 0.72rem !important;
  }

  .service-node-link {
    font-size: 0.65rem !important;
    color: #0f8f36 !important;
  }
  .services-ecosystem::before,
  .services-ecosystem::after {
    display: none !important;
  }
}

/* ── 18. STATS HEADING — mejor legibilidad ──────────────────── */
.stats-heading p {
  color: #4b5563 !important;
}

/* ── 19. CLOSING SECTION GRID RESPONSIVE ───────────────────── */
@media (max-width: 900px) {
  .closing-commitments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .closing-commitments-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── 20. SECTION HEADING PILL ────────────────────────────────── */
.section-heading.with-pill h2::before {
  content: attr(data-label);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff7b00;
  margin-bottom: 6px;
}

/* ── 21. UTILITY — Cursor pointer en cards interactivas ─────── */
.stat-card,
.about-us-kpi-card,
.client-sector-card,
.closing-commitment-card {
  cursor: default;
}

/* ── 22. HOVER MEJORADO — Banner img ────────────────────────── */
.banner-img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}

/* ── 23. COVERAGE SECTION — Mejorar visual ──────────────────── */
.coverage-chip {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.coverage-chip:hover {
  transform: translateY(-2px);
  background: rgba(20, 186, 72, 0.12) !important;
}

/* ── 24. PREVENT CLS — Placeholders ─────────────────────────── */
.colombia-map-host {
  min-height: 400px;
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ed 100%);
  border-radius: 12px;
}

/* ── 25. IMPROVE REVEAL ANIMATION ───────────────────────────── */
.reveal {
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.stats-grid .stat-card:nth-child(1) { transition-delay: 0.05s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: 0.12s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: 0.19s; }

.about-us-kpi-card:nth-child(1) { transition-delay: 0.05s; }
.about-us-kpi-card:nth-child(2) { transition-delay: 0.1s; }
.about-us-kpi-card:nth-child(3) { transition-delay: 0.15s; }
.about-us-kpi-card:nth-child(4) { transition-delay: 0.2s; }

.client-sector-card:nth-child(1) { transition-delay: 0.05s; }
.client-sector-card:nth-child(2) { transition-delay: 0.1s; }
.client-sector-card:nth-child(3) { transition-delay: 0.15s; }

.closing-commitment-card:nth-child(1) { transition-delay: 0.05s; }
.closing-commitment-card:nth-child(2) { transition-delay: 0.1s; }
.closing-commitment-card:nth-child(3) { transition-delay: 0.15s; }
.closing-commitment-card:nth-child(4) { transition-delay: 0.2s; }
