/* ===== Marketing additions (button + footer + chatbot) ===== */

:root{
  --rtl-orange: #ff9800;
  --rtl-orange-soft: #ffb347;
  --rtl-ink-dark: #241300;
  --rtl-card: rgba(15, 23, 42, 0.82);
  --rtl-border: rgba(255, 255, 255, 0.16);
  --text-muted: rgba(255, 255, 255, 0.78);
}

.wrap{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Icons block */
.marketing-icons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.marketing-icon{
  height: 44px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

/* Marketing CTA button */
.marketing-cta-wrap{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-marketing{
  background: var(--rtl-orange);
  color: var(--rtl-ink-dark);
  border: 1px solid #ffbd59;
  box-shadow: 0 14px 30px rgba(255, 152, 0, 0.45);
  animation: marketing-glow-pulse 1.55s ease-in-out infinite;
}

.btn-marketing:hover{
  background: #ffad1f;
  transform: translateY(-1px);
}

.btn-marketing-xl{
  min-height: 60px;
  padding: 0.95rem 2.4rem;
  font-size: 1.14rem;
  font-weight: 900;
}

@keyframes marketing-glow-pulse{
  0%{
    box-shadow: 0 0 0 rgba(255, 138, 0, 0.32), 0 0 24px rgba(255, 138, 0, 0.44);
    filter: brightness(1);
  }
  50%{
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.52), 0 0 36px rgba(255, 152, 0, 0.62);
    filter: brightness(1.08);
  }
  100%{
    box-shadow: 0 0 0 rgba(255, 138, 0, 0.32), 0 0 24px rgba(255, 138, 0, 0.44);
    filter: brightness(1);
  }
}

/* CTA + Footer (igual a home) */
.cta-rail{
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.cta-rail > div{
  display: grid;
  gap: 6px;
}

.cta-title{
  font-size: clamp(18px, 2.5vw, 22px);
}

.cta-rail .cta-title,
.cta-rail span{
  color: #f8fbff;
}

.text-muted{
  color: rgba(255, 255, 255, 0.78);
}

footer{
  border-top: none;
  margin-top: 48px;
  background: #0f1f36;
  color: #f7f9fb;
}

.footer-content{
  padding: 48px 0 96px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
}

.footer-icons{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7f9fb;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  transition: all 0.2s ease;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
}

.footer-phone:hover{
  border-color: #ff9a8b;
  background: rgba(0,0,0,.04);
  transform: translateY(-1px);
}

.footer-icon{
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #f7f9fb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-icon:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}

/* Chatbot Ranquel Tech Lab (idéntico a HOME) */
#chatbot-container{
  --background: #0f1116;
  --foreground: #f5f7fb;
  --secondary: #1c2230;
  --muted-foreground: #a6b2c8;
  --accent: #f2a49b;
  --ink-on-accent: #0b0f16;
  --border: #2a3142;
  --ring: #f2a49b;
  --radius: 10px;
  --shadow-md: 0 16px 32px rgba(14, 30, 58, 0.12);
  --shadow-lg: 0 26px 50px rgba(14, 30, 58, 0.18);
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 90;
  font-family: inherit;
}

.chatbot-toggle{
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-weight: 700;
}

.chatbot-toggle:hover{ filter: brightness(0.96); }
.chatbot-toggle:active{ transform: translateY(1px); }

.chatbot-badge{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 11px;
}

.chatbot-panel{
  width: min(380px, calc(100vw - 32px));
  max-height: min(75vh, 540px);
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 640px), (max-height: 600px){
  .chatbot-panel{
    max-height: calc(100vh - 120px);
  }
}

.chatbot-input,
.chatbot-textarea,
.chatbot-select{
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  outline: none;
}

.chatbot-textarea{ min-height: 76px; resize: vertical; }

.chatbot-input:focus,
.chatbot-textarea:focus,
.chatbot-select:focus{
  box-shadow: 0 0 0 4px oklch(70.5% 0.015 286.067 / 0.18);
  border-color: var(--ring);
}

.chatbot-btn-primary{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--accent);
  color: var(--ink-on-accent);
  cursor: pointer;
  font-weight: 700;
}

.chatbot-btn-primary:hover{ filter: brightness(0.96); }
.chatbot-btn-primary:active{ transform: translateY(1px); }

.chatbot-btn-link{
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  text-decoration: underline;
}

.chatbot-legal{
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.35;
}

.chatbot-panel p,
.chatbot-panel span,
.chatbot-panel strong{
  color: #111111;
}

.chatbot-hidden{ display: none; }
