/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--orange-cta);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 127, 68, 0.3);
}

.btn-primary:hover { background-color: var(--orange-hover); transform: translateY(-2px); }

.btn-secondary-white {
  background: white;
  color: var(--bg-hero);
  border: 1px solid rgba(255,255,255,0.8);
}
.btn-secondary-white:hover { background: #F8FAFC; transform: translateY(-2px); }

.btn-sm { padding: 8px 20px; font-size: 0.8rem; }

/* Header */
.header {
  height: var(--nav-h);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner { display:flex; justify-content:space-between; align-items:center; height:100%; }

.logo { font-size: 1.4rem; font-family: 'Manrope', sans-serif; font-weight: 800; color: white; letter-spacing: -0.5px; }
.logo span { color: var(--orange-cta); }

.nav-links { display:flex; gap:2rem; align-items:center; }
.nav-item { color:#94A3B8; font-size:0.9rem; font-weight:600; transition:0.3s; }
.nav-item:hover { color:white; }

.hamburger { display:none; background:none; border:none; color:white; font-size:1.6rem; }

/* UX: Scroll Margin Fix */
:target {
  scroll-margin-top: 100px;
}

/* HERO */
.hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
  background-color: var(--bg-hero);
  background-image:
    radial-gradient(circle at top right, rgba(238, 127, 68, 0.08), transparent 40%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.04), transparent 40%);
  position: relative;
  overflow: hidden;
}
.hero-content { position:relative; z-index:2; max-width:950px; margin:0 auto; text-align:center; }

/* Ajuste SEO: H2 en Hero ahora se ve como el antiguo H1 */
.hero h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 2rem; color:#fff; }

.hero p { font-size:1.15rem; color:#CBD5E1; margin:0 auto 2.5rem auto; max-width:750px; line-height:1.6; font-weight:300; }
.hero-actions { display:flex; gap:15px; justify-content:center; align-items:center; flex-wrap:wrap; }

.badge-hero {
  display:inline-flex;
  align-items:center;
  padding:8px 16px;
  border-radius:50px;
  font-size:0.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange-cta);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-badge { margin-bottom: 1.5rem; }

.question-text {
  display:block;
  font-size:1.25rem;
  font-weight:800;
  letter-spacing:0.5px;
  text-transform:uppercase;
  background: linear-gradient(90deg, var(--orange-cta), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

/* Diagram */
.diagram-container {
  background: white;
  border-radius: var(--radius-soft);
  padding: 3rem;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05);
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.04);
}
.section-label {
  text-align:center;
  color:#64748B;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:2rem;
  display:block;
  font-weight:700;
}
.block-rect { fill:white; stroke-width:2.5; }
.stroke-red { stroke:#F43F5E; stroke-opacity:0.5; }
.stroke-green { stroke:#10B981; }
.stroke-dark { stroke:#0F172A; }
.fill-soft { fill:#F8FAFC; }

.block-title { font-size:14px; font-weight:800; font-family:'Manrope', sans-serif; text-transform:uppercase; }
.block-item-title { font-size:13px; font-weight:700; font-family:'Inter', sans-serif; fill:#1E293B; }
.block-item-sub { font-size:11px; font-weight:400; font-family:'Inter', sans-serif; fill:#64748B; }
.block-item { font-size:13px; font-weight:500; font-family:'Inter', sans-serif; }
.conn-line { stroke:#CBD5E1; stroke-width:2; marker-end:url(#arrow); stroke-dasharray:6 3; }

/* Friction section */
.section-friction { background:#F8FAFC; overflow:hidden; }
.friction-head { margin-bottom:3rem; }
.muted { color:#64748B; font-size:1rem; }

.card-wrapper {
  width: 100%;
  overflow-x: hidden;
  padding: 1.5rem 0;
  cursor: grab;
  position: relative;
}
.card-wrapper:active { cursor: grabbing; }

.card-container { display:flex; gap:1.5rem; width:max-content; }

.friction-card {
  min-width: 280px;
  width: 280px;
  background: white;
  border-radius: var(--radius-soft);
  padding: 2rem;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 4px 15px -5px rgba(0,0,0,0.03);
}
.friction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(238, 127, 68, 0.1);
  border-color: rgba(238, 127, 68, 0.2);
}
.friction-card h4 { font-size: 1.1rem; color:#0F172A; margin-bottom:0.5rem; }
.friction-card p { font-size: 0.95rem; color:#64748B; }
.friction-card .emoji { font-size:2rem; display:block; margin-bottom:1rem; }
.friction-card .cta { color:var(--orange-cta); font-weight:700; font-size:0.8rem; margin-top:1rem; display:block; }

/* Solution cards */
.soluciones { font-size: 1.15em; }
.sol-head { margin-bottom: 5rem; max-width:800px; margin-left:auto; margin-right:auto; }
.sol-lead { font-size:1.1em; line-height:1.6; }

h3.group-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748B;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
}
h3.group-title::before {
  content:'';
  display:inline-block;
  width:6px;
  height:6px;
  background: var(--orange-cta);
  border-radius:50%;
  margin-right:10px;
}

.sol-card {
  background: white;
  border-radius: var(--radius-soft);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px -5px rgba(0,0,0,0.03);
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  border: 1px solid #F1F5F9;
}

/* UX: Feedback animation */
.sol-card.highlight {
  animation: pulse-card 2s ease-in-out;
  border-color: var(--orange-cta);
}

@keyframes pulse-card {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(238, 127, 68, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(238, 127, 68, 0); }
  100% { transform: scale(1); }
}

.sol-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.sol-card p { font-size: 0.95rem; line-height: 1.6; color:#334155; margin-bottom:1.5rem; }
.sol-card p strong { color:#0F172A; font-weight:700; }

.sol-icon {
  width:48px; height:48px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1.5rem;
}
.sol-icon svg { width:24px; height:24px; }

.card-calm .sol-icon { background: rgba(14,165,233,0.08); color:#0EA5E9; }
.card-calm:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(14,165,233,0.15); border-color: rgba(14,165,233,0.2); }

.card-spicy .sol-icon { background: rgba(245,158,11,0.08); color:#F59E0B; }
.card-spicy:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.2); }

.card-hot .sol-icon { background: rgba(244,63,94,0.08); color:#F43F5E; }
.card-hot:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.2); }

.tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; }

.tag {
  font-family:'Inter', sans-serif;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
}
.tag-green { background:#ECFDF5; color:#059669; }
.tag-yellow { background:#FFFBEB; color:#B45309; }
.tag-red { background:#FEF2F2; color:#BE123C; }

/* Ecosystem */
.ecosistema {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: linear-gradient(90deg, #ffffff 0%, var(--bg-calm-soft) 50%, #ffffff 100%);
  background-size: 200% 100%;
  animation: bg-wave 15s ease-in-out infinite alternate;
  min-height: 60vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@keyframes bg-wave { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.ecosistema-title {
  color:#94A3B8;
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:1px;
}

.logo-item { width:200px; height:96px; display:flex; align-items:center; justify-content:center; padding:0 15px; }
.vendor-img { max-width:100%; max-height:67px; width:auto; height:auto; object-fit:contain; transition: transform 0.3s ease; }
.vendor-img:hover { transform: scale(1.1); }

.logo-slider { display:flex; width:max-content; animation: scroll 120s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* About - UX Improved Line Height */
.about-section {
  background: linear-gradient(135deg, #fdfbf7 0%, #f2ede4 100%);
  padding: 6rem 0;
  color: #334155;
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  min-height: 90vh;
  display:flex;
  align-items:center;
}
.about-content { max-width:800px; margin:0 auto; text-align:center; }
.about-section h2 { color:#0F172A; font-size:2rem; margin-bottom:2rem; }
.narrative-text p { font-style: italic; font-size:1rem; line-height:1.85; color:#475569; margin-bottom:1.8rem; }
.signature { font-family:'Manrope', sans-serif; font-weight:800; color:var(--orange-cta); margin-top:2.5rem; display:block; font-size:1.1rem; font-style:normal; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; border-bottom: 1px solid #E2E8F0; padding-bottom: 1rem; }
.faq-question {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--orange-cta); transition: transform 0.3s; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { color:#475569; line-height:1.7; margin-top:0.5rem; padding-right:2rem; font-size:0.95rem; }

/* CTA */
.cta-section {
  background: var(--bg-hero);
  padding: 8rem 0;
  color: white;
  text-align: center;
  min-height: 50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 2rem; color:#fff; }
.cta-btn { font-size: 1rem; padding: 16px 36px; }

/* Footer */
.footer { background: white; padding: 4rem 0; border-top: 1px solid #E2E8F0; }
.footer-grid { display:flex; justify-content:space-between; flex-wrap:wrap; gap:3rem; }
.footer-col { flex:1; min-width:280px; }
.footer-logo { color:#0F172A; margin-bottom:1rem; font-size:1.3rem; }
.footer-text { color:#64748B; font-size:0.95rem; }

.form-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.9rem;
  background: #F8FAFC;
}
.form-input:focus { outline:none; border-color: var(--orange-cta); background:white; }

.footer-send { width:100%; margin-top:10px; padding:12px; }

.footer-legal-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4rem;
  padding-top:2rem;
  border-top:1px solid #E2E8F0;
}
.legal-text { color:#94A3B8; font-size:0.8rem; }
.legal-text a { color:#94A3B8; text-decoration:none; transition: color 0.2s; }
.legal-text a:hover { color: var(--orange-cta); }

.data-fiscal img { width:43px; height:56px; object-fit:contain; transition: opacity 0.3s; }
.data-fiscal img:hover { opacity: 0.8; }

/* Floating WhatsApp */
.float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s;
  cursor: pointer;
}
.float-btn:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15,23,42,0.9);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top:hover { transform: translateY(-3px); }

/* Mobile */
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .hero h2 { font-size: 2.2rem; } /* Ajuste de h2 mobile */
  .nav-links { display: none; }
  .hamburger { display: block; }
  .diagram-container svg { min-width: 700px; }
  .sol-card { padding: 1.5rem; }
  .footer { padding-bottom: 100px; }
  .footer-legal-container { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* nav-open (mobile) */
.nav-links.nav-open {
  display:flex;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.98);
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}