/* =============================================
   QHANTIY SOFT  ·  v6 PERSONAL — LIGHT / BLUE
   Estilo: Blanco + Azul + Navy · Minimal · Rounded
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f172a;
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #3b82f6;
  --blue-pale:   #eaf1ff;
  --blue-pale-2: #eff6ff;

  --surface-0:   #ffffff;
  --surface-1:   #f8fafc;
  --surface-2:   #f1f5f9;

  --border:      #e5eaf1;

  --text:   #0f172a;
  --text-2: #475569;
  --text-3: #64748b;

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;
}

/* ══ PRELOADER ══ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.pl-hide { opacity: 0; visibility: hidden; pointer-events: none; }

.pl-pug {
  width: 130px; height: 144px;
  background-image: url('preload-sprite.webp');
  background-repeat: no-repeat;
  background-size: 1300px 144px;
  animation: pl-wave 1s steps(10) infinite;
}
@keyframes pl-wave { from { background-position: 0 0; } to { background-position: -1300px 0; } }

.pl-logo { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pl-logo-icon { width: 24px; height: auto; flex-shrink: 0; }
.pl-logo-text { display: flex; flex-direction: column; line-height: 1.05; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: var(--navy); }

.pl-tagline {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-3); text-align: center; max-width: 260px;
}

.pl-bar { width: 200px; height: 6px; background: var(--surface-2); border-radius: var(--r-full); overflow: hidden; }
.pl-bar-fill {
  width: 0%; height: 100%; background: var(--blue); border-radius: var(--r-full);
  animation: pl-fill 2.1s ease-in-out forwards;
}
@keyframes pl-fill { 0% { width: 0%; } 70% { width: 82%; } 100% { width: 82%; } }

.pl-loading { font-size: 13px; color: var(--text-3); }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--surface-0); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

.text-blue { color: var(--blue); }

/* ══ LAYOUT ══ */
.section-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px,3.4vw,38px); font-weight: 800; line-height: 1.15;
  color: var(--navy);
}
.section-title-sm {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px,2.8vw,30px); font-weight: 800; line-height: 1.2;
}
.section-sub { color: var(--text-2); font-size: 16px; max-width: 560px; margin: 14px auto 0; }
.title-underline {
  width: 56px; height: 3px; background: var(--blue); border-radius: 2px;
  margin: 12px auto 0;
}
.title-underline-left { margin: 12px 0 20px; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; padding: 12px 24px;
  border-radius: var(--r-full); border: none; cursor: pointer;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }

.btn-primary {
  background: var(--blue); color: #ffffff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.28);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: #ffffff; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ══ NAVBAR ══ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 14px rgba(15,23,42,0.05); }

.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.nav-logo-icon { width: 30px; height: auto; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px;
  position: relative; padding-bottom: 4px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active-link { color: var(--blue); }
.nav-links a.active-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); border-radius: 2px;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s; }

/* ══ HERO ══ */
.hero { padding: 64px 0 88px; }
.hero-container {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  color: var(--blue); font-weight: 700; font-size: 12.5px; letter-spacing: 1.4px;
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--navy);
  font-size: clamp(32px,4.4vw,48px); line-height: 1.18; margin-bottom: 20px;
}
.hero-sub { color: var(--text-2); font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.ht-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-pale);
  color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px;
}

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-img { width: 100%; max-width: 480px; height: auto; display: block; }

/* ══ IMAGE PLACEHOLDERS (a reemplazar por imágenes reales) ══ */
.img-placeholder {
  border: 2px dashed #c7d5ea; border-radius: var(--r-lg);
  background: var(--surface-1); color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-align: center; padding: 20px;
}
.img-placeholder i { font-size: 26px; color: #b9c8de; }

/* ══ SERVICIOS ══ */
.services { padding: 88px 0; background: var(--surface-1); }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.serv-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px 26px; text-align: center; transition: transform 0.25s, box-shadow 0.25s;
}
.serv-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(15,23,42,0.08); }
.serv-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 20px;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.serv-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.serv-card p { font-size: 14.5px; color: var(--text-2); }
.serv-underline { width: 34px; height: 2px; background: var(--blue); border-radius: 2px; margin: 18px auto 0; opacity: 0.5; }

/* ══ PROCESO ══ */
.process { padding: 88px 0; }
.process-inner { display: flex; align-items: center; gap: 36px; }
.proceso-mascota { flex: 0 0 auto; width: 150px; height: auto; }
.process-steps { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.p-step { flex: 1; text-align: center; max-width: 220px; }
.p-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.p-icon {
  width: 68px; height: 68px; border-radius: 50%; background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 18px;
}
.p-step h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.p-step p { font-size: 14px; color: var(--text-2); }
.p-connector {
  flex: 0 0 auto; width: 60px; height: 2px; margin-top: 34px;
  background-image: linear-gradient(to right, #c7d5ea 50%, transparent 0%);
  background-size: 10px 2px; background-repeat: repeat-x;
}

/* ══ PROYECTOS DESTACADOS (carrusel) ══ */
.projects { padding: 88px 0; background: var(--surface-1); }

.proj-carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.proj-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px 10px;
  scrollbar-width: none;
}
.proj-track::-webkit-scrollbar { display: none; }

.proj-card {
  flex: 0 0 auto; width: calc((100% - 22px) / 2); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(15,23,42,0.08); }
.proj-img-slot { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: contain; background: var(--surface-1); display: block; }
.proj-body { padding: 20px 20px 24px; }
.proj-body h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin: 10px 0 8px; }
.proj-body p { font-size: 13.5px; color: var(--text-2); }

.proj-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--r-full);
}
.proj-tag-blue   { background: #e9f4fe; color: #1459ed; }
.proj-tag-purple { background: #f3eefc; color: #7649ca; }
.proj-tag-green  { background: #e9faf1; color: #299873; }
.proj-tag-orange { background: #feeee7; color: #e9522e; }

.proj-arrow {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); color: var(--navy);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.2s; font-size: 14px;
}
.proj-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.proj-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.proj-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: all 0.2s; }
.proj-dot.active { background: var(--blue); width: 22px; border-radius: 4px; }

/* ══ SOBRE MÍ ══ */
.about { padding: 88px 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-img-slot { aspect-ratio: 1/1; }
.about-text p { color: var(--text-2); font-size: 16px; margin-bottom: 26px; max-width: 480px; }

/* ══ CTA BAND ══ */
.cta-band { padding: 64px 0 96px; }
.cta-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 36px 44px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.cta-mascota { flex-shrink: 0; width: 108px; height: auto; }
.cta-text { flex: 1; min-width: 220px; }
.cta-text h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cta-text p { color: var(--text-2); font-size: 15px; }

/* ══ FOOTER ══ */
.footer { background: #ffffff; border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.f-brand p { color: var(--text-2); font-size: 14.5px; margin-top: 16px; max-width: 320px; }
.f-links h4, .f-social h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.f-links { display: flex; flex-direction: column; }
.f-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s; }
.f-links a:hover { color: var(--blue); }
.soc-row { display: flex; gap: 10px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-1); border: 1px solid var(--border);
  color: var(--navy); display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: all 0.2s;
}
.soc-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.f-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; }
.f-bottom p { color: var(--text-3); font-size: 13.5px; }

/* ══ WHATSAPP FLOTANTE ══ */
.wa-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 8px 22px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.08); }

/* ══ REVEAL ON SCROLL ══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 980px) {
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #ffffff; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15,23,42,0.08);
    padding: 12px 28px 20px; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .hamburger { display: flex; }
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .process-inner { flex-direction: column; gap: 24px; }
  .proceso-mascota { width: 120px; }
  .process-steps { flex-direction: column; align-items: center; gap: 32px; }
  .p-connector { display: none; }
  .proj-card { width: calc(46% - 12px); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .f-brand p { margin-left: auto; margin-right: auto; }
  .soc-row { justify-content: center; }
  .nav-logo-text { display: none; }
}

@media (max-width: 640px) {
  .nav-cta span { display: none; }
  .cta-card { flex-direction: column; text-align: center; }
  .cta-mascota { width: 84px; }
  .services-grid { grid-template-columns: 1fr; }
  .proj-card { width: 82%; }
  .proj-arrow { display: none; }
}

/* =============================================
   SECCIONES AÑADIDAS (productos, guías, áreas, preguntas)
   ============================================= */
.content-section { padding: 88px 0; }
.alt-bg { background: #f5f8ff; }
.section-container.narrow { max-width: 860px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px; display: flex; flex-direction: column;
}
.product-card .proj-tag { align-self: flex-start; }
.product-card h3 { font-family: 'Manrope', sans-serif; font-size: 26px; color: var(--navy); margin: 14px 0 8px; }
.product-card > p { color: var(--text-2); font-size: 15px; }
.check-list { list-style: none; margin: 18px 0 24px; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.check-list i { color: var(--blue); margin-top: 4px; font-size: 12px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.07); border-color: #c9d8f5; }
.guide-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--blue-pale); color: var(--blue);
  display: grid; place-items: center; font-size: 17px; margin-bottom: 14px;
}
.guide-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 8px; }
.guide-card p { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.guide-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--blue); }
.guide-more i { font-size: 12px; margin-left: 4px; }
.center-link { text-align: center; margin-top: 30px; }

.areas-box { margin-top: 48px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.areas-box h3 { font-family: 'Manrope', sans-serif; font-size: 20px; color: var(--navy); margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: var(--r-full); background: var(--blue-pale); color: var(--blue-dark);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease;
}
.chip:hover { background: var(--blue); color: #fff; }

.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 15.5px; }
.faq details p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.cta-text a, .f-bottom a { color: var(--blue); }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .content-section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .product-card { padding: 24px; }
  .areas-box { padding: 22px; }
}

/* =============================================
   PÁGINAS INTERNAS (servicios, blog, nosotros, contacto, términos)
   ============================================= */
.page-hero { background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%); padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--navy); font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; max-width: 860px; }
.page-hero .lead { color: var(--text-2); font-size: 18px; max-width: 760px; margin-top: 14px; }
.page-meta { color: var(--text-3); font-size: 14px; margin-top: 14px; }

.page-body { padding: 48px 0 72px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.page-layout.single { grid-template-columns: minmax(0, 780px); justify-content: center; }

.prose { color: var(--text); font-size: 16.5px; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: 'Manrope', sans-serif; font-size: 26px; color: var(--navy); margin-top: 40px; line-height: 1.25; }
.prose h3 { font-size: 19px; color: var(--navy); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--blue); overflow-wrap: anywhere; }
.prose strong { color: var(--navy); }
.prose blockquote { border-left: 4px solid var(--blue); background: var(--blue-pale); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f5f8ff; color: var(--navy); }
.prose .note { font-size: 14.5px; color: var(--text-2); font-style: italic; }
.prose figure { margin: 28px 0; }
.prose figure.fig img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); text-align: center; }
.prose .video .yt, .prose .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); overflow: hidden; background: #000; }
.prose .video .yt img { width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; transition: opacity .2s; }
.prose .video .yt:hover img { opacity: .85; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: #e11d2a; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.yt-play::after { content: ''; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }

.side-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.side-card h3 { font-family: 'Manrope', sans-serif; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.side-card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.side-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.side-links { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 8px; }
.side-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.side-links a:hover { color: var(--blue); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-grid .guide-card h3 { font-size: 18px; }
.serv-card a.serv-more { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: none; }

.related { margin-top: 56px; }
.related h2 { font-family: 'Manrope', sans-serif; color: var(--navy); font-size: 22px; margin-bottom: 18px; }

@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 28px; }
  .prose { font-size: 16px; }
}

/* =============================================
   AJUSTES PARA CELULAR
   ============================================= */
@media (max-width: 980px) {
  .nav-logo-text { display: flex; }
  .nav-cta { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .hero-visual { min-height: 0; }
  .services, .process, .projects, .about { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }
  .f-brand .nav-logo { justify-content: center; }
}
@media (max-width: 640px) {
  .nav-container { padding: 12px 18px; }
  .nav-links { top: 62px; padding: 8px 18px 16px; }
  .nav-cta { display: none; }
  .section-container, .hero-container { padding: 0 18px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-trust { gap: 10px 18px; }
  .hero-img { max-width: 340px; margin: 0 auto; }
  .services, .process, .projects, .about, .content-section { padding: 52px 0; }
  .section-header { margin-bottom: 28px; }
  .section-sub { font-size: 15px; }
  .serv-card { padding: 28px 22px; }
  .proceso-mascota { width: 96px; }
  .process-steps { gap: 26px; }
  .proj-card { width: 86%; }
  .product-card h3 { font-size: 22px; }
  .card-actions .btn { flex: 1 1 100%; justify-content: center; }
  .chip { font-size: 13.5px; padding: 8px 14px; }
  .cta-band { padding: 44px 0 64px; }
  .cta-card { padding: 28px 20px; gap: 16px; }
  .cta-text { min-width: 0; }
  .cta-card .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 22px; font-size: 15.5px; }
  .faq details { padding: 16px 18px; }
  .faq summary { font-size: 15px; }
  .footer { padding-top: 48px; }
  .footer-grid { gap: 32px; padding-bottom: 36px; }
  .page-hero .lead { font-size: 16.5px; }
  .page-body { padding: 36px 0 56px; }
  .prose h2 { font-size: 22px; margin-top: 32px; }
  .prose h3 { font-size: 18px; }
  .prose table { font-size: 14px; display: table; }
  .prose table:has(tr > :nth-child(4)) { display: block; font-size: 13px; }
  .prose th, .prose td { overflow-wrap: break-word; hyphens: auto; }
  .prose th, .prose td { padding: 8px 10px; }
  .prose code { overflow-wrap: anywhere; }
  .side-card { padding: 20px; }
  .wa-btn { width: 50px; height: 50px; font-size: 23px; bottom: 16px; right: 16px; }
}

/* =============================================
   PORTAL (qhantiysoft.com): portada, calculadoras, empleos
   ============================================= */
.footer-grid:has(> :nth-child(4)) { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

.portal-hero { background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.portal-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.portal-hero .hero-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--blue); text-transform: uppercase; }
.portal-hero h1 { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--navy); font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; margin-top: 12px; }
.portal-hero .hero-sub { color: var(--text-2); font-size: 18px; margin-top: 18px; max-width: 580px; }
.portal-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quick-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 18px 40px rgba(15,23,42,.06); }
.quick-card h2 { font-family: 'Manrope', sans-serif; font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.quick-card a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.quick-card a + a { border-top: 1px solid var(--border); }
.quick-card a:hover { background: var(--blue-pale-2); color: var(--blue); }
.quick-card a i:first-child { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-pale); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-card a small { display: block; font-weight: 400; color: var(--text-3); font-size: 13px; }
.quick-card a .fa-arrow-right { margin-left: auto; color: var(--text-3); font-size: 13px; }

.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head-row .section-title { font-size: clamp(24px, 3vw, 32px); }
.section-head-row p { color: var(--text-2); margin-top: 6px; max-width: 620px; }
.section-head-row .see-all { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head-row .see-all:hover { text-decoration: underline; }
.portal-section { padding: 64px 0; }

.card-cat { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

.jobs-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jobs-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; text-decoration: none; transition: border-color .2s, transform .2s; }
.jobs-list a:hover { border-color: #c9d8f5; transform: translateY(-2px); }
.jobs-list strong { color: var(--navy); font-size: 15.5px; line-height: 1.35; }
.jobs-list span { color: var(--text-2); font-size: 14px; }
.jobs-list .job-meta { color: var(--text-3); font-size: 13px; }
.jobs-list .job-meta i { color: var(--blue); margin-right: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.stat b { display: block; font-family: 'Manrope', sans-serif; font-size: 26px; color: var(--navy); }
.stat span { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.stat small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 8px; }

.about-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--navy); color: #dbe4f3; border-radius: var(--r-xl); padding: 40px; }
.about-band h2 { font-family: 'Manrope', sans-serif; color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.about-band p { margin-top: 12px; }
.about-band .links { display: grid; gap: 10px; }
.about-band .links a { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; padding: 14px 16px; border-radius: var(--r); font-weight: 600; }
.about-band .links a:hover { background: rgba(255,255,255,.14); }
.about-band .links small { display: block; font-weight: 400; color: #b6c3da; font-size: 13px; }

.side-stack { display: grid; gap: 18px; position: sticky; top: 96px; }
.side-stack .side-card { position: static; }
.side-jobs { background: var(--blue-pale-2); border-color: #cddcf8; }
.side-jobs h3 i { color: var(--blue); margin-right: 4px; }
.side-stack .side-links:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.side-links strong { color: var(--navy); font-size: 14.5px; }
.side-links-icons a i { width: 18px; color: var(--blue); }

/* Calculadoras */
.calc-box { background: #f7faff; border: 1px solid #d6e3fb; border-radius: var(--r-lg); padding: 24px; }
.prose .calc-box h2 { margin-top: 0; font-size: 22px; }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 16px; }
.calc-form .full { grid-column: 1 / -1; }
.calc-form label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.calc-form input[type=number], .calc-form input[type=date], .calc-form select {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--text);
}
.calc-form input:focus, .calc-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.calc-form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14.5px; color: var(--text); cursor: pointer; margin: 0; }
.calc-form .check input { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.calc-form .hint { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 400; margin-top: 4px; }
.calc-form [hidden] { display: none; }
.calc-form .btn { justify-content: center; }
.calc-result { margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.calc-result[hidden] { display: none; }
.prose .calc-result h3 { margin-top: 0; }
.prose .calc-table { display: table; font-size: 15px; margin-top: 12px; }
.prose .calc-table td:last-child, .prose .calc-table th:last-child { text-align: right; white-space: nowrap; }
.prose .calc-table tr.neg td:last-child { color: #b42318; }
.prose .calc-table tfoot th { background: var(--navy); color: #fff; font-size: 16px; }
.calc-note { font-size: 13.5px; color: var(--text-2); margin-top: 12px; }
.calc-error { color: #b42318; font-weight: 600; }

@media (max-width: 980px) {
  .portal-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .jobs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-band { grid-template-columns: 1fr; padding: 32px; }
  .side-stack { position: static; }
  .footer-grid:has(> :nth-child(4)) { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal-hero { padding: 40px 0 36px; }
  .portal-hero .hero-sub { font-size: 16.5px; }
  .portal-hero .hero-actions .btn { width: 100%; justify-content: center; }
  .portal-section { padding: 48px 0; }
  .jobs-list { grid-template-columns: 1fr; }
  .stats-grid { gap: 12px; }
  .stat { padding: 16px; }
  .stat b { font-size: 22px; }
  .about-band { padding: 24px; border-radius: var(--r-lg); }
  .calc-box { padding: 18px; }
  .calc-form { grid-template-columns: 1fr; }
  .prose .calc-table { font-size: 14px; }
  .prose .calc-table td:last-child { white-space: normal; }
}
@media (max-width: 640px) {
  .center-link .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
}

/* ===== Pug ejecutivo: mascota del portal ===== */
.nav-logo-pug { width: 36px; height: 36px; border-radius: 50%; }
.quick-card { position: relative; }
.quick-pug { position: absolute; top: -100px; right: 18px; width: 108px; height: auto; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(15,23,42,.12)); }
.head-pug { display: flex; align-items: center; gap: 16px; }
.section-pug { width: 72px; height: auto; flex-shrink: 0; }
.about-pug { width: 96px; height: auto; float: right; margin: -8px 0 8px 16px; }
.side-jobs { position: relative; overflow: hidden; }
.side-pug { display: block; width: 96px; height: auto; margin: -4px 0 6px auto; }
.page-hero .has-pug { position: relative; }
.page-hero .has-pug > :not(.hero-pug) { max-width: calc(100% - 200px); }
.hero-pug { position: absolute; right: 24px; bottom: -40px; width: 150px; height: auto; pointer-events: none; }
@media (max-width: 900px) {
  .page-hero .has-pug > :not(.hero-pug) { max-width: none; }
  .hero-pug { display: none; }
  .quick-pug { top: -78px; width: 84px; }
}
@media (max-width: 640px) {
  .section-pug { width: 52px; }
  .head-pug { gap: 12px; }
  .about-pug { width: 72px; }
}
