@font-face {
    font-family: "P-Regular";
    src: url("/assets/fonts/Poppins-Regular.ttf");
}
@font-face {
    font-family: "P-Light";
    src: url("/assets/fonts/Poppins-Light.ttf");
}
@font-face {
    font-family: "P-Bold";
    src: url("/assets/fonts/Poppins-Bold.ttf");
}
@font-face {
    font-family: "P-Medium";
    src: url("/assets/fonts/Poppins-Medium.ttf");
}
@font-face {
    font-family: "P-SemiBold";
    src: url("/assets/fonts/Poppins-SemiBold.ttf");
}

body{
    background-color: black;
    color:white;
    font-family: P-Regular;
}
.hero{
    min-height: 100vh;
    background-image: url('/assets/img/bg3.jpg');
    background-size: 1800px;
    background-position: bottom;
    background-repeat: no-repeat;
    width: 100%;
    display: flex;
    align-items: center;
}
.hero h1{
    font-family: P-Medium;
}
.hero h1 b{
    font-family: P-Bold;
}
.hero h2{
    font-size:20px;
}
.hero img{
    width: 50%;
}
.button {
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border: none; /* Elimina bordes molestos */
    border-radius: 2rem;
    display: inline-block;
    transition: all 0.3s ease-in-out;
  }

.button-primary {
    color: white;
    font-family: P-SemiBold;
    transition: 0.3s;
    outline:2px solid #cccccc;
    background-color: transparent;
}

.button-primary:hover {
    background: linear-gradient(90deg, #482981, #9b5de5);
    outline:none;
    color: white;
}

.button-primary-reverse {
    font-family: P-SemiBold;
    background: linear-gradient(90deg, #833ab4, #9b5de5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: none; /* por si hay un default */
  }

  .button-primary-reverse:hover {
    background: linear-gradient(90deg, #9900ff, #9b5de5);
    gap: 10px;
    color: white;
  }

.value-prop {
    background-image: url('/assets/img/bg4.jpg');
    background-size: 1800px;
    background-repeat: no-repeat;
    background-position: top;
    min-height: 100vh;
}
.section-title{
    font-family: P-SemiBold;
}

.vp-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 transparent;
}

.vp-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.2);
    transform: translateY(-5px);
}

.vp-card i {
    color: white;
}

.vp-card h5 {
    font-family: P-SemiBold;
    font-size: 18px;
}

.vp-card p {
    font-size: 14px;
    color: #cccccc;
    margin: 0 auto;
    max-width: 280px;
}

/* services */
.service-options{
    min-height: 100vh;
    background-image: url('/assets/img/bg5.jpg');
    background-size: cover;
    background-position: start;
    background-repeat: no-repeat;
}
.service-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    text-align: left;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.1);
}
.service-card small{
    font-family: P-Light;
}
.service-card p{
    font-family: P-Regular;
    font-size:16px;
}
.service-card ul li i{
    color:#d28fff;
}

/* partners */
.partners {
    background-color: #0d0d0d;
  }

  .partners .section-title {
    font-family: P-SemiBold;
    font-size: 24px;
  }

  .grayscale-logo {
    max-height: 60px;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all 0.3s ease-in-out;
  }

  .grayscale-logo:hover {
    filter: none;
    opacity: 1;
  }

  /* offcanvas */
  .dark-offcanvas {
    background-color: #121212;
    max-width: 460px;
    border-left: 1px solid #2c2c2c;
  }

  .dark-offcanvas .form-label {
    font-family: P-SemiBold;
    color: #ffffff;
  }

  .dark-input {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
    font-family: P-Regular;
  }

  .dark-input::placeholder {
    color: #888;
  }

  .dark-offcanvas .btn-close {
    filter: invert(1);
  }
  .input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-icon-wrapper i {
    position: absolute;
    left: 15px;
    color: #888;
    font-size: 1rem;
  }

  .input-icon-wrapper input,
  .input-icon-wrapper select,
  .input-icon-wrapper textarea {
    padding-left: 2.25rem;
  }


/* Tab pills refined */
.service-switcher .nav-pills .nav-link {
  background-color: rgba(255,255,255,0.04);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: P-Medium;
  font-size: 14px;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  transition: all 0.3s ease-in-out;
}

.service-switcher .nav-pills .nav-link.active {
  background: linear-gradient(90deg, #833ab4, #9b5de5);
  color: white;
  font-weight: bold;
  border: none;
}

.service-switcher .tab-content {
  animation: fadeIn 0.5s ease-in-out;
}/* Animación general */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================= */
/* BOTÓN DE WHATSAPP */
/* ============================= */
#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(90deg, #25D366, #128C7E);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 1000;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
#whatsapp-button:hover {
  transform: scale(1.1);
}

/* ============================= */
/* TOOLTIP CON FLECHA Y ANIMACIÓN */
/* ============================= */
@keyframes tooltipPop {
  0%   { opacity: 0; transform: translateX(15px) scale(0.5); }
  60%  { opacity: 1; transform: translateX(-3px) scale(1.05); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

#whatsapp-tooltip {
  position: fixed;
  bottom: 25px;
  right: 95px;
  background: #ffffff;
  color: #128C7E;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  pointer-events: none;
}

#whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-left: 10px solid #ffffff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(2px 0 2px rgba(0,0,0,0.15));
}

#whatsapp-tooltip.show {
  animation: tooltipPop 0.45s ease forwards;
}

/* ============================= */
/* CHAT POPUP */
/* ============================= */
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 70vh;
  background: #ece5dd;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-popup.open {
  display: flex;
  animation: chatSlideUp 0.25s ease;
}

/* Responsive móvil (popup más grande pero no fullscreen) */
@media (max-width: 600px) {
  .chat-popup {
    width: 95%;
    right: 2.5%;
    bottom: 90px;
    height: 50vh;
  }
}

/* ============================= */
/* CABECERA */
/* ============================= */
.chat-header {
  background: #075E54;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  color: #fff;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-info {
  margin-left: 10px;
  flex: 1;
}

.chat-name {
  font-size: 16px;
  font-weight: 700;
}

.chat-status {
  font-size: 11px;
  color: #c6e8e0;
}

#chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
#chat-close:hover {
  transform: scale(1.1);
}

/* ============================= */
/* CUERPO DEL CHAT */
/* ============================= */
.chat-body {
  background: #e5ddd5;
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Burbujas */
.chat-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
}

.chat-bubble.bot {
  background: #ffffff;
  border-top-left-radius: 0;
}

.chat-bubble.user {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 0;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 10px;
  background: #ffffff;
  border-top-left-radius: 0;
  font-size: 12px;
  color: #555;
}

.chat-typing .typing-text {
  margin-right: 4px;
}

.chat-typing .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
  animation: typingDots 1s infinite ease-in-out;
}
.chat-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDots {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* ============================= */
/* FOOTER */
/* ============================= */
.chat-footer {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  gap: 8px;
}

#chat-message {
  flex: 1;
  width: auto !important;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 38px;
  max-height: 80px;
  resize: none !important;
  overflow-y: hidden; /* auto-ajuste por JS */
  outline: none;
  box-sizing: border-box;
}
#chat-message::placeholder {
  color: #888;
}

/* Botón enviar */
#chat-send {
  background: #075E54;
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#chat-send:hover {
  background: #064c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#chat-send:active {
  transform: translateY(0);
  box-shadow: none;
}




.footer {
  background-color: #0d0d0d;
  font-family: P-Regular;
}

.footer-heading {
  font-family: P-SemiBold;
  font-size: 16px;
  margin-bottom: 1rem;
}

.footer a:hover {
  color: #9b5de5;
}
