/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.mobile-link {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

/* ===== Reveal on scroll ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Floating hero badge ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}
.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

/* ===== Service cards ===== */
.service-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(26, 92, 245, 0.25);
  border-color: #d9ebff;
}
.service-card .service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a5cf5;
}
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: #eef6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5cf5;
}
.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.service-card:hover .service-icon {
  background: #1a5cf5;
  color: #fff;
}
.service-card--featured {
  border-color: #8ec5ff;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 55%);
  position: relative;
}
.service-card--featured .service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #1a5cf5;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
}
.feature-glow {
  transition: transform 0.25s ease, background 0.25s ease;
}
.feature-glow:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
}

/* ===== Tech logo carousel (fila horizontal) ===== */
.tech-carousel-section {
  overflow: hidden;
}
.tech-carousel {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.tech-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.25rem;
  width: max-content;
  animation: tech-marquee 32s linear infinite;
}
.tech-carousel:hover .tech-carousel-track {
  animation-play-state: paused;
}
.tech-carousel-item {
  box-sizing: border-box;
  flex: 0 0 auto !important;
  width: auto;
  min-width: 5.5rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
}
.tech-carousel-item img,
.tech-carousel-item .tech-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  /* simple-icons SVGs son negros; los teñimos al color de marca */
  filter: invert(28%) sepia(98%) saturate(1800%) hue-rotate(210deg) brightness(90%) contrast(95%);
}
.tech-carousel-item span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a358d;
  white-space: nowrap;
  line-height: 1.1;
}
@keyframes tech-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .tech-carousel-item {
    min-width: 4.75rem;
    padding: 0.4rem 0.5rem;
  }
  .tech-carousel-item img {
    width: 1.9rem;
    height: 1.9rem;
  }
}

/* ===== Service detail page ===== */
.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: #eef6ff;
  color: #1547e0;
  font-size: 0.85rem;
  font-weight: 600;
}
.example-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  padding: 1.5rem;
  height: 100%;
}
.example-card.example-card--media {
  padding: 0;
  overflow: hidden;
}
.example-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #141f52;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a5cf5;
}

/* ===== Process steps ===== */
.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #59a4ff, #1a5cf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

/* ===== Portfolio ===== */
.portfolio-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #eef2f7;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.2);
}
.portfolio-thumb {
  height: 12rem;
  overflow: hidden;
  background: #eef6ff;
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

/* ===== Pricing ===== */
.price-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card--highlight {
  background: linear-gradient(160deg, #1a5cf5, #141f52);
  border: none;
  color: #fff;
  transform: scale(1.03);
}
.price-card .badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #1a5cf5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.price-btn {
  margin-top: 2rem;
  text-align: center;
  background: #eef6ff;
  color: #1a5cf5;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.price-btn:hover {
  transform: translateY(-2px);
  background: #d9ebff;
}
.price-btn--light {
  background: #fff;
  color: #1a5cf5;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
}
.faq-question span {
  transition: transform 0.25s ease;
  color: #1a5cf5;
  font-size: 1.25rem;
}
.faq-item.open .faq-question span {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
}
.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== Contact form ===== */
.form-input {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: #59a4ff;
  box-shadow: 0 0 0 3px rgba(89, 164, 255, 0.25);
}

/* ===== Social icons ===== */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== WhatsApp floating button ===== */
#waFloat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.75rem;
  height: 3.75rem;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 50;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.75); }
}

/* ===== Quote calculator ===== */
.quote-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  padding: 1.75rem;
}
.quote-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
}
.quote-select,
.quote-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-select:focus,
.quote-input:focus {
  border-color: #8ec5ff;
  box-shadow: 0 0 0 4px rgba(26, 92, 245, 0.1);
}
.quote-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.quote-option:has(input:checked) {
  border-color: #1a5cf5;
  background: #eef6ff;
  color: #1547e0;
}
.quote-option input {
  accent-color: #1a5cf5;
}
.quote-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #eef2f7;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
  background: #f8fafc;
}
.quote-check input {
  accent-color: #1a5cf5;
}
.quote-result {
  background: linear-gradient(160deg, #141f52 0%, #1a5cf5 100%);
  border-radius: 1.5rem;
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 20px 40px -20px rgba(26, 92, 245, 0.45);
}
@supports not selector(:has(*)) {
  .quote-option {
    justify-content: flex-start;
    padding-left: 1rem;
  }
}

/* ===== Web analyzer ===== */
.analyzer-section {
  color: #fff;
}
.analyzer-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  padding: 1rem;
  backdrop-filter: blur(10px);
}
.analyzer-input {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: 9999px;
  padding: 0.95rem 1.25rem;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
}
.analyzer-btn {
  border: 0;
  border-radius: 9999px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  background: #fff;
  color: #1547e0;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.analyzer-btn:hover {
  background: #eef6ff;
  transform: translateY(-1px);
}
.analyzer-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.analyzer-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}
.analyzer-check .mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.analyzer-check.ok .mark {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.analyzer-check.bad .mark {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}
.analyzer-check .title {
  font-weight: 600;
  font-size: 0.9rem;
}
.analyzer-check .desc {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.8);
  margin-top: 0.15rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
