/* Quimitor V3.0 index page enhancements stylesheet */

/* 1. Scroll Reveal base styles */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered grid/lists reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS or Fallback support */
.no-js .reveal,
.no-intersection-observer .reveal,
.no-js .reveal-stagger > *,
.no-intersection-observer .reveal-stagger > * {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* 2. Reduced Motion preference support */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > *,
  .slow-float-molecule,
  .floating-item,
  .floating-delayed,
  .floating,
  .star-twinkle,
  .social-icon,
  .btn,
  .lab-card,
  .why-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 3. Hero Layout Refinements */
.hero-wrapper-inner {
  position: relative;
  perspective: 1000px;
}

.mascot-placeholder-frame {
  transition: transform 0.3s ease-out;
}

/* Subtler chemical formulas (reduced amplitude, opacity, and speed) */
.floating-item.hero-float-chem-h2o,
.floating-item.hero-float-chem-nacl,
.floating-item.hero-float-chem-co2 {
  opacity: 0.15 !important;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
  animation: float-chem-slow 8s ease-in-out infinite;
}

.dark .floating-item.hero-float-chem-h2o,
.dark .floating-item.hero-float-chem-nacl,
.dark .floating-item.hero-float-chem-co2 {
  color: var(--color-accent);
}

@keyframes float-chem-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* 4. Disable infinite respiration animations on CTA buttons */
.btn-hero-accent, 
.btn-hero-outline, 
.cta-button-size {
  animation: none !important; /* Stable default */
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease-out;
}

/* Entrance fade-in-up for CTA buttons */
.btn-hero-accent,
.btn-hero-outline,
.cta-button-size {
  opacity: 0;
  animation: btn-fade-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes btn-fade-in {
  to { opacity: 1; }
}

/* Microinteractions on hover */
.btn-hero-accent:hover,
.cta-button-size:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 6px 0 var(--color-accent-hover);
}

.btn-hero-outline:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 6px 0 var(--color-primary);
}

.dark .btn-hero-outline:hover {
  box-shadow: 0 6px 0 var(--color-accent);
}

/* 5. Timeline Step Hover Adjustment */
.timeline-step:hover .timeline-icon-box {
  transform: scale(1.05) rotate(5deg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 6. Labs Cards hover state */
.lab-card-premium {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease-out;
}

.lab-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--color-primary);
}

.dark .lab-card-premium:hover {
  box-shadow: 0 8px 0 var(--color-accent);
  border-color: var(--color-accent);
}

.lab-card-premium:hover .labs-icon-img-ph {
  transform: scale(1.06);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 7. Achievements slow rotation */
.medal-item:hover .medal-placeholder-frame {
  transform: scale(1.05) rotate(6deg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 8. Testimonials Star ratings pop reduction */
.star-rating-row .rating-star-svg {
  transition: transform 0.25s ease-out;
}

.testimonial-card-padding:hover .rating-star-svg {
  transform: scale(1.08);
}

/* CTA Image element cleanup without inline styles */
.cta-mascot-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-svg-fallback-icon {
  width: 96px;
  height: 96px;
  color: var(--color-accent);
}

.time-indicator-svg {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* 10. Reto del Día visual fix (ensure visibility in light & dark themes) */
.community-card-dark {
  background-color: #0F2440 !important;
  color: #EAEFF7 !important;
  border: 4px solid var(--color-primary) !important;
  box-shadow: 0 6px 0 var(--color-primary) !important;
}

.dark .community-card-dark {
  background-color: #122A4A !important;
  border-color: #1C3966 !important;
  box-shadow: 0 6px 0 #1C3966 !important;
}

.community-dark-title {
  color: #F2B233 !important;
  font-family: var(--font-heading);
  font-size: 22px !important;
  font-weight: 900;
  margin-top: 12px;
  margin-bottom: 8px;
}

.community-dark-desc {
  color: rgba(234, 239, 247, 0.85) !important;
  font-size: 14px !important;
  line-height: 1.5;
  margin-bottom: 16px;
}

.community-card-dark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(234, 239, 247, 0.7);
}

.community-dark-meta {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #36C5BC !important;
  margin-bottom: 20px;
}

.community-dark-meta .meta-svg-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* Achievement SVG medals styling */
.achievement-svg-medal {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto;
}

/* 11. Spacing reduction to next section (Timeline) */
.section-friendly-card {
  margin-top: -30px !important; /* Reduces vertical margin by 40% */
  padding-top: 10px !important;
}

/* 12. Mascot 3 specific visual containment overrides */
.bolivia-card .mascota3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.bolivia-card .mascota3 img {
  width: 260px !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 16px rgba(8, 43, 91, 0.12)) !important;
}






/* =========================
   NAVBAR
========================= */

.navbar-container {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.navbar-logo {
    flex-shrink: 0;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;

    list-style: none;
    margin: 0;
    padding: 0;

    flex: 1;
    justify-content: center;
}

.navbar-links li {
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    border: none;
    background: transparent;

    font-size: 30px;
    color: var(--color-primary);

    cursor: pointer;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .navbar-container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .navbar-logo-img {
        width: 140px;
        height: 40px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar-links {

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;

        gap: 0;

        background: var(--bg-card);

        border-top: 2px solid var(--color-primary);

        box-shadow: 0 10px 30px rgba(0,0,0,.1);

        z-index: 1000;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links li {
        width: 100%;

        padding: 18px 24px;

        border-bottom: 1px solid rgba(0,0,0,.08);

        text-align: center;
    }

    .navbar-links li:last-child {
        border-bottom: none;
    }

}




