/* Resultados cards */
.resultados-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.resultado-card {
  background: #f7faff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(52,152,219,0.08);
  padding: 32px 24px 24px 24px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid #d6eaff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.resultado-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(52,152,219,0.13);
  border-color: #3498db;
}
.resultado-icono {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: #3498db;
}
.resultado-card h3 {
  margin: 0 0 10px 0;
  color: #3498db;
  font-size: 1.2rem;
}
.resultado-card p {
  color: #333;
  font-size: 1rem;
  margin: 0;
}
@media (max-width: 900px) {
  .resultados-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .resultado-card {
    max-width: 100%;
    width: 100%;
  }
}

/* Testimonios cards */
.testimonios-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.testimonial-card {
  background: #fff9f2;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(241,196,15,0.08);
  padding: 28px 22px 20px 22px;
  max-width: 350px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 5px solid #f1c40f;
  border-top: 1.5px solid #f7e6b5;
  border-bottom: 1.5px solid #f7e6b5;
  margin-bottom: 10px;
}
.testimonial-icono {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #f1c40f;
}
.testimonial-card p {
  color: #333;
  font-size: 1.05rem;
  margin: 0 0 10px 0;
}
.testimonial-card strong {
  color: #b7950b;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .testimonios-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
    width: 100%;
  }
}

/* CTA Final modernizada */
.cta-final {
  background: linear-gradient(90deg, #2ecc71 60%, #27ae60 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 18px;
  margin: 60px auto 40px auto;
  max-width: 900px;
  box-shadow: 0 4px 24px rgba(46,204,113,0.13);
}
.cta-final-content h2 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}
.cta-final-content p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.btn-cta {
  background: #fff;
  color: #2ecc71 !important;
  font-weight: bold;
  padding: 16px 38px;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(46,204,113,0.08);
  transition: background 0.2s, color 0.2s;
  border: none;
}
.btn-cta:hover {
  background: #ecf5eb;
  color: #27ae60 !important;
}

/* Footer modernizado */
.footer-modern {
  background: #23272b;
  color: #fff;
  padding: 30px 0 10px 0;
  text-align: center;
  border-radius: 12px 12px 0 0;
  margin-top: 40px;
}
.footer-content p {
  margin: 0 0 8px 0;
  font-size: 1rem;
}
.footer-content a {
  color: #2ecc71;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-content a:hover {
  color: #27ae60;
}
/* Formulario mejorado */
.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  background: #f7f7fa;
  border-radius: 10px;
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  position: relative;
  transition: border-color 0.2s;
}
.form-group:focus-within {
  border-color: #2ecc71;
}
.icon-input .form-icon {
  font-size: 1.3rem;
  margin-right: 10px;
  color: #2ecc71;
  min-width: 24px;
  text-align: center;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 1rem;
  padding: 10px 0;
  color: #222;
  resize: none;
}
.form-group textarea {
  min-height: 38px;
  max-height: 90px;
}
.consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  margin: 0 0 10px 0;
}
.btn-form {
  width: 100%;
  margin-top: 10px;
  font-size: 1.1rem;
  padding: 16px 0;
  background: linear-gradient(90deg, #2ecc71 60%, #27ae60 100%);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(46,204,113,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-form:hover {
  background: linear-gradient(90deg, #27ae60 60%, #2ecc71 100%);
  box-shadow: 0 6px 18px rgba(46,204,113,0.13);
  color: #fff !important;
}
@media (max-width: 900px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
}
/* Cómo funciona cards */
.funciona-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.funciona-card {
  background: #f7faff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(52,152,219,0.08);
  padding: 32px 24px 24px 24px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid #d6eaff;
}
.funciona-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(52,152,219,0.13);
  border-color: #3498db;
}
.funciona-icono {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: #3498db;
}
.funciona-card h3 {
  margin: 0 0 10px 0;
  color: #3498db;
  font-size: 1.2rem;
}
.funciona-card p {
  color: #333;
  font-size: 1rem;
  margin: 0;
}
@media (max-width: 900px) {
  .funciona-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .funciona-card {
    max-width: 100%;
    width: 100%;
  }
}
/* Beneficios cards */
.beneficios-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.beneficio-card {
  background: #f6fcf7;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(46,204,113,0.08);
  padding: 32px 24px 24px 24px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid #e0f3e7;
}
.beneficio-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(46,204,113,0.13);
  border-color: #2ecc71;
}
.beneficio-icono {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: #2ecc71;
}
.beneficio-card h3 {
  margin: 0 0 10px 0;
  color: #2ecc71;
  font-size: 1.2rem;
}
.beneficio-card p {
  color: #333;
  font-size: 1rem;
  margin: 0;
}
@media (max-width: 900px) {
  .beneficios-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .beneficio-card {
    max-width: 100%;
    width: 100%;
  }
}
/* styles.css */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
}

a {
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 600;
}

/* Hero */
.hero {
  background-color: #2ecc71;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn-primary {
  background-color: #fff;
  color: #2ecc71;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-primary:hover {
  background-color: #ecf5eb;
}

/* Cómo funciona */
.como-funciona, .beneficios, .formulario, .resultados, .testimonios, .cta-final {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}
.pasos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.paso {
  flex: 1 1 30%;
  margin: 20px;
  text-align: center;
}
.paso span {
  display: inline-block;
  background: #2ecc71;
  color: white;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Formulario */
form {
  max-width: 600px;
  margin: auto;
  display: grid;
  gap: 15px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}
input, select, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
label {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Resultados */
.resultado {
  margin-top: 20px;
  text-align: left;
}
.resultado h3 {
  color: #2ecc71;
}

/* Testimonios */
.testimonial {
  background: #f0f0f0;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  border-left: 5px solid #2ecc71;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .pasos {
    flex-direction: column;
  }
}

/* Modernización de estilos para el chatbot */
/* Agrupación de mensajes estilo WhatsApp */
.chat-message {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 2px;
}
.chat-message-bot {
  align-self: flex-start;
  max-width: 80%;
  background: var(--chat-bubble-bot);
  color: #222;
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 2px 8px rgba(7,94,84,0.07);
  padding: 10px 16px;
  margin: 1px 0 1px 4px;
  font-size: 1.04rem;
  line-height: 1.5;
  border: 1.5px solid #e0e0e0;
  word-break: break-word;
  transition: box-shadow 0.2s;
}
.chat-message-bot strong {
  color: #075e54;
}
.chat-message-bot em {
  color: #25d366;
}
.chat-message-user {
  align-self: flex-end;
  max-width: 80%;
  background: var(--chat-bubble-user);
  color: #222;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 2px 8px rgba(37,211,102,0.07);
  padding: 10px 16px;
  margin: 1px 4px 1px 0;
  font-size: 1.04rem;
  line-height: 1.5;
  border: 1.5px solid #b2dfdb;
  word-break: break-word;
  transition: box-shadow 0.2s;
}
/* Agrupación visual: elimina bordes entre mensajes consecutivos del mismo remitente */
.chat-message-grouped {
  margin-top: 0;
  margin-bottom: 0;
}
.chat-message-bot.grouped {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  margin-left: 16px;
}
.chat-message-user.grouped {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  margin-right: 16px;
}
/* Oculta la "cola" de bocadillo en mensajes agrupados */
.chat-message-bot::after,
.chat-message-user::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  bottom: 8px;
  z-index: 0;
}
.chat-message-bot::after {
  left: -8px;
  background: var(--chat-bubble-bot);
  border-bottom-left-radius: 8px;
  box-shadow: -2px 2px 2px rgba(7,94,84,0.04);
}
.chat-message-user::after {
  right: -8px;
  background: var(--chat-bubble-user);
  border-bottom-right-radius: 8px;
  box-shadow: 2px 2px 2px rgba(37,211,102,0.04);
}
.chat-message-bot.grouped::after,
.chat-message-user.grouped::after {
  display: none;
}
/* ---------- CHAT WHATSAPP STYLE ---------- */
:root {
  --chat-bg: #ece5dd;
  --chat-bubble-user: #dcf8c6;
  --chat-bubble-bot: #ffffff;
  --chat-border: #d1d1d1;
  --chat-font: "Segoe UI", Arial, sans-serif;
}

#chatbot {
  height: 800px; /* altura fija */
  max-width: 420px;
  margin: 40px auto 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border-radius: 8px;
  overflow: hidden;            /* clave */
  font-family: var(--chat-font);
  background: var(--chat-bg);
}

#chat-header {
  flex-shrink: 0;
  background: #075e54;
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 1rem;
}

#chat-messages {
  flex: 1 1 0%;
  overflow-y: auto;            /* scroll solo cuando es necesario */
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;               /* evita bug flex */
  max-height: 350px;           /* alto máximo visible, ajustable */
  height: 100%;
  box-sizing: border-box;
}


.chat-input {

  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #f0f0f0;
  border-top: 1px solid var(--chat-border);
  padding: 10px 10px 10px 14px;
  gap: 10px;
  box-sizing: border-box;
}
.chat-input input {
  flex: 1 1 auto;
  border: none;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-right: 0;
  transition: border 0.2s, box-shadow 0.2s;
  border: 1.5px solid #e0e0e0;
}
.chat-input input:focus {
  border: 1.5px solid #25d366;
  box-shadow: 0 2px 8px rgba(37,211,102,0.08);
}
.chat-input button {
  background: linear-gradient(135deg, #25d366 60%, #075e54 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(7,94,84,0.10);
  margin-left: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.chat-input button:disabled {
  background: #b2dfdb;
  cursor: not-allowed;
  color: #fff;
  opacity: 0.7;
}

.cta-chat-wrapper {
  max-width: 420px;
  margin: 0 auto 40px;
  text-align: center;
}
.btn-cta-chat {
  display: inline-block;
  background: #075e54;
  color: #fff !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background 0.2s;
}
.btn-cta-chat:hover {
  background: #064e47;
}