:root {
  /* Color Palette - Elegant Light Theme */
  --bg-dark: #ffffff;         /* Main background: pure white */
  --bg-dark-alt: #f8fafc;     /* Alternate background: soft gray */
  --primary: #12b761;         /* Capiba Green */
  --primary-hover: #0e964f;
  --secondary: #0b703e;
  --text-main: #0f172a;       /* Dark text for contrast */
  --text-muted: #475569;      /* Gray for secondary text */
  --glass-bg: #ffffff;        /* Solid white cards */
  --glass-border: rgba(0, 0, 0, 0.08); /* Subtle dark border instead of white */
  --glass-highlight: rgba(18, 183, 97, 0.08);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--glass-highlight);
  color: var(--primary);
  border: 1px solid rgba(18, 183, 97, 0.3);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(18, 183, 97, 0.3));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
  transform-origin: left center;
}

.brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 15px rgba(18, 183, 97, 0.6));
}

/* Fixed size for navbar context */
.navbar .brand-logo {
  height: 120px; 
  margin-top: -15px;
  margin-bottom: -15px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(18, 183, 97, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 183, 97, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: white;
}

/* Header / Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Animated Background blob for light theme */
.hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(18, 183, 97, 0.15) 0%, rgba(11, 112, 62, 0.05) 40%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: hero-blob 15s infinite alternate ease-in-out;
}

@keyframes hero-blob {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-30px, 40px); }
  100% { transform: scale(0.9) translate(20px, -20px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 30px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 450px;
}

.hero-modules-list {
  list-style: none;
  margin-bottom: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-main);
}

.hero-modules-list li {
  display: flex;
  align-items: center; /* Ensures text and icon are vertically centered */
  gap: 8px;
  text-align: left;
}

.hero-modules-list li i {
  color: var(--primary);
  width: 15px;
  text-align: center;
  flex-shrink: 0; /* Prevents icon from shrinking if text wraps */
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero Image/Card */
.hero-visual {
  position: relative;
  perspective: 2000px;
}

.hero-visual img {
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: -20px 40px 80px rgba(0,0,0,0.15);
  transform: rotateY(-12deg) rotateX(4deg) translateZ(0);
  animation: hero-float-3d 8s ease-in-out infinite;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.hero-visual:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02) translateZ(30px);
  box-shadow: 0 40px 80px rgba(18, 183, 97, 0.2);
  animation-play-state: paused;
}

@keyframes hero-float-3d {
  0% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-25px); }
  100% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); }
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Enterprise soft shadow */
  position: relative;
}

/* Generic Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Problem Cards */
.problem-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: rgba(18, 183, 97, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.problem-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 50, 50, 0.08);
  color: #e11d48;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Feature/Module Items */
.feature-row {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  gap: 60px;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-content { flex: 1; }
.feature-content h3 { font-size: 2.2rem; margin-bottom: 20px; }

.feature-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  perspective: 1200px; /* Enable 3D space */
}

/* Complex multi-layered animated liquid background */
.feature-image::before, .feature-image::after {
  content: '';
  position: absolute;
  filter: blur(40px);
  z-index: 0;
  transition: all 0.6s ease;
}

/* Primary morphing blob */
.feature-image::before {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, rgba(18, 183, 97, 0.4), rgba(11, 112, 62, 0.15));
  animation: blob-spin 12s infinite linear;
}

/* Secondary morphing blob */
.feature-image::after {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(52, 152, 219, 0.15));
  animation: blob-spin-reverse 15s infinite linear;
  mix-blend-mode: screen;
}

/* Hover effect on background */
.feature-image:hover::before {
  filter: blur(50px);
  transform: scale(1.3) rotate(90deg);
  background: rgba(18, 183, 97, 0.5);
}

/* 3D Isometric Image Presentation */
.feature-image img {
  position: relative;
  z-index: 2;
  width: 85%; /* Reduced size */
  max-width: 500px; /* Hard constraint */
  filter: drop-shadow(-15px 30px 40px rgba(0,0,0,0.15));
  /* Isometric 3D Angle */
  transform: rotateY(-18deg) rotateX(10deg) translateZ(0);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: float-3d 6s ease-in-out infinite;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* On hover, the image comes forward and faces the user flat */
.feature-image:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03) translateZ(30px);
  filter: drop-shadow(0 30px 50px rgba(18, 183, 97, 0.25));
  animation-play-state: paused;
}

/* Reverse 3D angle for even rows */
.feature-row:nth-child(even) .feature-image img {
  transform: rotateY(18deg) rotateX(10deg);
  filter: drop-shadow(15px 30px 40px rgba(0,0,0,0.15));
  animation: float-3d-reverse 6s ease-in-out infinite;
}

.feature-row:nth-child(even) .feature-image:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03) translateZ(30px);
}

@keyframes float-3d {
  0% { transform: rotateY(-18deg) rotateX(10deg) translateY(0px); }
  50% { transform: rotateY(-15deg) rotateX(8deg) translateY(-20px); }
  100% { transform: rotateY(-18deg) rotateX(10deg) translateY(0px); }
}

@keyframes float-3d-reverse {
  0% { transform: rotateY(18deg) rotateX(10deg) translateY(0px); }
  50% { transform: rotateY(15deg) rotateX(8deg) translateY(-20px); }
  100% { transform: rotateY(18deg) rotateX(10deg) translateY(0px); }
}

@keyframes blob-spin {
  0% { transform: rotate(0deg) scale(1) translate(10px, -10px); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { transform: rotate(180deg) scale(1.1) translate(-10px, 10px); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { transform: rotate(360deg) scale(1) translate(10px, -10px); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes blob-spin-reverse {
  0% { transform: rotate(360deg) scale(1.2) translate(-20px, 20px); border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%; }
  50% { transform: rotate(180deg) scale(0.9) translate(20px, -20px); border-radius: 30% 70% 50% 50% / 70% 30% 50% 50%; }
  100% { transform: rotate(0deg) scale(1.2) translate(-20px, 20px); border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%; }
}

.check-list { list-style: none; margin-top: 25px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.check-list li i {
  color: var(--primary);
  background: rgba(18, 183, 97, 0.1);
  padding: 5px;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-top: 3px;
}

/* SLA Section Refactored */
.sla-new-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--glass-border);
}
.sla-new-header {
  color: white;
  padding: 15px;
  font-weight: 700;
  text-align: center;
  font-size: 1.15rem;
}
.sla-new-body {
  padding: 25px 20px;
  flex: 1;
  color: var(--text-main);
  background: white;
}
.sla-new-body h4 {
  font-size: 0.95rem;
  margin: 20px 0 10px 0;
  color: var(--text-main);
  font-weight: 700;
}
.sla-new-body h4:first-child { margin-top: 0; }
.sla-new-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sla-new-body li {
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.sla-new-body li i { margin-top: 3px; font-size: 0.8rem; }
.sla-new-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Testimonials */
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.stars {
  color: #fbbf24;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 { font-size: 1rem; margin-bottom: 0; }
.author-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Pricing Section */
.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, rgba(18, 183, 97, 0.05) 100%);
  border-color: rgba(18, 183, 97, 0.4);
  box-shadow: 0 20px 50px rgba(18, 183, 97, 0.15);
}

.price-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.price-amount {
  font-size: 4rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.price-amount span {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.price-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.price-features {
  text-align: left;
  list-style: none;
  margin-bottom: 40px;
}

.price-features li {
  padding: 15px 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 15px;
}

.price-features li i { color: var(--primary); }

/* Team Section - Portrait Cards */
.team-item {
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.team-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(18, 183, 97, 0.15);
  border-color: rgba(18, 183, 97, 0.4);
}

.team-img {
  width: 35%;
  aspect-ratio: 9 / 16; /* Formato de celular vertical */
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 20px;
  background: var(--bg-dark-alt);
}

.team-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
.team-item p { color: var(--primary); font-size: 0.9rem; margin-bottom: 10px; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-dark-alt);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsiveness */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-text p { margin: 0 auto 40px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; border: none;}
  .hero-modules-list { grid-template-columns: 1fr; gap: 15px; text-align: left; margin: 0 auto 35px; width: fit-content; }
}

/* -------------- LEAD GEN MODAL & FORM -------------- */
.lead-form {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--glass-border);
    text-align: left;
}
.modal-form {
    box-shadow: none;
    border: none;
    padding: 10px 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--text-main); }
.form-group input, .form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.9rem; outline: none; transition: border-color 0.2s; font-family: var(--font-sans); color: var(--text-main);
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 183, 97, 0.1); }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: none; /* Flex when open */
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-container {
    background: white;
    width: 100%; max-width: 600px;
    border-radius: 20px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: var(--bg-dark-alt); border: 1px solid var(--glass-border);
    width: 35px; height: 35px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.2s;
}
.modal-close:hover { background: var(--primary); color: white; border-color: var(--primary); }

@media (max-width: 768px) {
    .lead-form { padding: 25px; }
    .modal-container { padding: 20px; width: 95%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* -------------- CHATBOT CAPIBA -------------- */

.chatbot-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(18, 183, 97, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-fab:hover {
  transform: scale(1.1);
}

.chatbot-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: white;
  padding: 15px 25px 15px 50px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  z-index: 9998;
  display: none; /* Flex on load via JS */
  align-items: center;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  max-width: 320px;
  animation: slideUp 0.5s ease;
}

.chatbot-popup-avatar {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.chatbot-popup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-color: var(--primary); /* En caso tenga fondo transparente */
}

.chatbot-popup p {
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 0;
  font-weight: 500;
}

.chatbot-popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  border: 1px solid var(--glass-border);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-muted);
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.chatbot-window {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  z-index: 10000;
  display: none; /* Flex when open */
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  animation: scaleUp 0.3s ease;
}

.chatbot-header {
  background: var(--primary);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.chatbot-agent {
  display: flex;
  align-items: center;
  gap: 15px;
}

.chatbot-agent img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-color: var(--bg-dark-alt); /* Fondo base por si hay transparencia */
}

.chatbot-agent h4 {
  margin: 0;
  font-size: 1.1rem;
}

.chatbot-agent p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}

.chatbot-body {
  flex: 1;
  padding: 20px;
  background: #f8fafc;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: slideUp 0.3s ease;
}

.bot-msg {
  background: white;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  border: 1px solid var(--glass-border);
}

.user-msg {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  box-shadow: 0 5px 15px rgba(18, 183, 97, 0.2);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  animation: slideUp 0.3s ease;
  align-self: flex-start;
}

.chat-opt-btn {
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-align: left;
}

.chat-opt-btn:hover {
  background: var(--primary);
  color: white;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); transform-origin: bottom right; }
  to { opacity: 1; transform: scale(1); transform-origin: bottom right; }
}

@media (max-width: 600px) {
  .chatbot-window {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 20px;
    height: 60vh;
  }
}

/* Cronograma Section Refactored */
.crono-card {
  background: white;
  border-radius: 24px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid var(--glass-border);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.crono-header {
  color: white;
  padding: 25px 20px 35px 20px;
  border-radius: 24px 24px 0 0;
  position: relative;
  font-weight: 700;
}
.crono-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  white-space: nowrap;
}
.crono-body {
  padding: 35px 25px 25px;
  flex: 1;
}
.crono-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
}
.crono-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.crono-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.crono-list li i {
  color: #555;
  margin-top: 3px;
  font-size: 0.8rem;
}

/* Dropdown Menus */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
}

.dropdown-content a {
  color: var(--text-main) !important;
  padding: 12px 20px !important;
  text-decoration: none;
  display: block;
  font-size: 0.9rem !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin: 0 !important;
  transition: all 0.2s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: rgba(18, 183, 97, 0.08);
  color: var(--primary) !important;
  padding-left: 25px !important;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Solucion Section */
.solucion-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}
.solucion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  border-color: rgba(18, 183, 97, 0.2);
}
.solucion-card h4 {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.solucion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.solucion-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.solucion-list li i {
  color: var(--primary);
  margin-top: 5px;
  font-size: 0.4rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  
  .navbar {
    padding: 15px 5%;
  }
  .nav-links {
    position: fixed;
    top: 80px; /* aprox altura del navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    padding: 40px 20px;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    background: transparent;
  }
  .dropdown.active .dropdown-content {
    display: block;
    animation: none;
  }
  .mobile-menu-btn {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .navbar .brand-logo {
     height: 80px;
     margin-top: -10px;
     margin-bottom: -10px;
  }
  .grid-2, .grid-3, .grid-4 {
     grid-template-columns: 1fr;
  }
  .feature-row {
     flex-direction: column;
  }
  .feature-image {
     order: -1; 
  }
  .hero-text h1 {
     font-size: 2rem;
  }
  .section-header h2 {
     font-size: 2rem;
  }
  .btn-demo-nav {
     display: none !important;
  }
}
