/* Variables CSS */
:root {
  --primary-color: #03363D;
  --primary-dark: #174D4D;
  --secondary-color: #174D4D;
  --accent-color: #F8F9F9;
  --text-dark: #03363D;
  --text-light: #174D4D;
  --bg-light: #F8F9F9;
  --bg-white: #FFFFFF;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #174D4D;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

html {
  background: linear-gradient(135deg, #03363D, #174D4D);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-bottom: 0;
}

/* Evitar espacio blanco bajo el footer */
body > footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body > *:last-child {
  margin-bottom: 0 !important;
}

/* Navegación */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.btn-login {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
  line-height: 1.5;
  box-sizing: border-box;
}

.btn-login:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #03363D 0%, #174D4D 50%, #F8F9F9 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Hero Section con Carrusel */
.carousel-hero-section {
  padding: 100px 0 0;
  background: var(--bg-white);
}

.carousel-hero-section .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.carousel-hero-section .hero-title {
  color: #000000;
  margin-bottom: 1rem;
}

.hero-carousel {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #000000;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
  background: #000000;
  color: white;
  border: 2px solid #000000;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-custom:hover {
  background: #333333;
  color: white;
  border-color: #333333;
}

.btn-demo-custom {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
  line-height: 1.5;
  box-sizing: border-box;
}

.btn-demo-custom:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section con Carrusel */
.carousel-hero-section {
  padding: 100px 0 60px;
  background: var(--bg-white);
}

.carousel-hero-section .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 2rem;
  padding: 0;
}

.carousel-hero-section .hero-title {
  color: #000000;
  margin-bottom: 1rem;
}

.carousel-hero-section .hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-carousel {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel Section */
.carousel-section {
  padding: 80px 0;
}

/* Optimizar transiciones del carrusel para evitar parpadeo y mejorar fluidez */
.carousel-inner {
  position: relative;
  overflow: hidden;
}

/* Asegurar que todos los items mantengan position: relative */
.carousel-item {
  position: relative !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.carousel-item.active {
  position: relative !important;
}

/* Filtro de escala de grises para imágenes del carrusel */
.carousel-item img {
  filter: grayscale(100%);
  height: 500px;
  object-fit: cover;
  width: 100%;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Fondo del caption y centrado del texto - Sobrescribir Bootstrap */
.carousel-caption {
  background: linear-gradient(to top, rgba(3, 54, 61, 0.95), rgba(3, 54, 61, 0.7), transparent);
  padding: 3rem 2rem 2rem;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  transition: opacity 0.6s ease-in-out;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel-caption h3,
.carousel-caption p {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

/* Comparison Section */
.comparison-section {
  background: var(--bg-white);
  padding: 80px 0 0;
}

.comparison-table-container {
  overflow-x: auto;
  margin: 3rem 0;
}

.comparison-table {
  min-width: 800px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background: var(--bg-light);
  border-bottom: 2px solid var(--border-color);
}

.feature-column {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.erp-column {
  padding: 1.5rem;
  text-align: center;
  border-left: 1px solid var(--border-color);
}

.erp-rankiao {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.erp-competitor {
  background: var(--bg-light);
  color: var(--text-dark);
}

.erp-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.erp-logo i {
  font-size: 1.5rem;
}

.erp-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.erp-logo span {
  font-weight: 600;
  font-size: 1rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.table-row:hover {
  background: var(--bg-light);
}

.table-row:last-child {
  border-bottom: none;
}

.feature-name {
  padding: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.feature-value {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid var(--border-color);
}

.feature-value.rankaio {
  background: rgba(3, 54, 61, 0.05);
}

.feature-value.rankaio i {
  color: var(--success-color);
  font-size: 1.2rem;
}

.feature-value.competitor i {
  color: var(--error-color);
  font-size: 1.2rem;
}

.feature-value.competitor i.fa-clock,
.feature-value.competitor i.fa-exclamation-triangle {
  color: var(--warning-color);
}

.feature-value span {
  font-size: 0.9rem;
  line-height: 1.4;
}

.comparison-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 16px;
}

.comparison-cta h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.comparison-cta p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Features Section */
.features-section {
  background: var(--bg-light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  /* Esquinas recortadas en semicírculo - esquinas superiores e inferiores con radio grande */
  border-radius: 80px 80px 80px 80px;
  /* Alternativa con clip-path para semicírculos más precisos en las esquinas */
  clip-path: inset(0 round 80px);
}

.features-section .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.features-section .section-header {
  width: 100% !important;
  max-width: 100% !important;
}

.section-header {
  text-align: center !important;
  margin-bottom: 4rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  text-align: center !important;
}

.feature-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Section */
.about-section {
  background: var(--bg-white);
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center !important;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  color: white;
}

.about-image i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.about-image h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Carrusel de Misión, Visión y Valores */
.about-carousel-wrapper {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

#misionCarousel {
  height: 100%;
}

.about-carousel-item {
  padding: 3rem;
  text-align: center;
  color: white;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-carousel-item i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
}

.about-carousel-item h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.about-carousel-item > p {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
}

/* Lista de Valores */
.valores-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.valor-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.valor-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.valor-item i {
  font-size: 1.25rem;
  color: white;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.valor-item span {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.valor-item strong {
  color: white;
  font-weight: 600;
}

/* Controles del carrusel */
#misionCarousel .carousel-control-prev,
#misionCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#misionCarousel .carousel-control-prev:hover,
#misionCarousel .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

#misionCarousel .carousel-control-prev {
  left: 20px;
}

#misionCarousel .carousel-control-next {
  right: 20px;
}

#misionCarousel .carousel-indicators {
  bottom: 20px;
  margin: 0;
}

#misionCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
}

#misionCarousel .carousel-indicators button.active {
  background: white;
}

/* Contact Section */
.contact-section {
  background: var(--bg-light);
  padding: 80px 0 0;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 0;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center !important;
}

.contact-info p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.contact-details h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
}

.contact-form {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 0;
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-full {
  margin-bottom: 1rem;
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #03363D, #174D4D);
  background-color: #03363D;
  color: #f1f5f9;
  width: 100%;
  margin: 0;
  border-radius: 0;
  margin-top: 0;
  /* Fuerza fondo a todo el ancho, sin márgenes blancos */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}


.footer-top p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Chat Widget */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: min(360px, calc(100vw - 48px));
  max-height: 520px;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
}

.chat-panel.is-open {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-title small {
  opacity: 0.8;
}

.chat-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-light);
  flex: 1;
}

.chat-message {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-line;
  word-break: break-word;
}

.chat-message.bot {
  background: #ffffff;
  border: 1px solid var(--border-color);
  align-self: flex-start;
}

.chat-message.user {
  background: var(--primary-color);
  color: #ffffff;
  align-self: flex-end;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-quick-actions button {
  border: 1px solid var(--primary-color);
  background: #ffffff;
  color: var(--primary-color);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-quick-actions button:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.chat-form button {
  border: none;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    min-width: 600px;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  
  .feature-column,
  .erp-column,
  .feature-name,
  .feature-value {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .erp-logo span {
    font-size: 0.8rem;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ============================================
   FORZAR CENTRADO - Máxima prioridad al final
   Sobrescribir styles.css y Bootstrap
   ============================================ */

/* Centrar todos los títulos de secciones - Sobrescribir styles.css */
.section-header,
.comparison-section .section-header,
.features-section .section-header,
#caracteristicas .section-header,
#caracteristicas .container .section-header,
.features-section .container .section-header {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

.section-title,
.comparison-section .section-title,
.features-section .section-title,
#caracteristicas .section-title,
#caracteristicas .section-header .section-title,
#caracteristicas .container .section-header .section-title,
#caracteristicas .container .section-header h2,
#nosotros h2,
#contacto h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Sobrescribir el display: flex de styles.css */
#caracteristicas .section-title,
#caracteristicas h2.section-title,
.features-section .section-title {
  display: block !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.section-subtitle,
.features-section .section-subtitle,
#caracteristicas .section-subtitle,
#caracteristicas .section-header .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.section-subtitle,
.comparison-section .section-subtitle,
.features-section .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Sobrescribir estilos de styles.css para el carrusel */
.carousel-section .carousel-caption,
#carouselExampleCaptions .carousel-caption,
.carousel .carousel-inner .carousel-item .carousel-caption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  text-align: center !important;
  background: linear-gradient(to top, rgba(3, 54, 61, 0.95), rgba(3, 54, 61, 0.7), transparent) !important;
  padding: 3rem 2rem 2rem !important;
}

.carousel-section .carousel-caption h3,
.carousel-section .carousel-caption h5,
.carousel-section .carousel-caption p,
#carouselExampleCaptions .carousel-caption h3,
#carouselExampleCaptions .carousel-caption h5,
#carouselExampleCaptions .carousel-caption p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 900px;
  width: 100%;
}

/* Centrar indicadores del carrusel */
.carousel-section .carousel-indicators,
#carouselExampleCaptions .carousel-indicators {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  margin: 0 !important;
  justify-content: center !important;
  display: flex !important;
}

/* Estilos para diagrama de flujo (imagen SVG) */
#diagrama-flujo {
  position: relative;
  margin: 2rem 0;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  overflow: hidden;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Patrón de grid con signos + en el fondo */
#diagrama-flujo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(52, 152, 219, 0.08) 29px, rgba(52, 152, 219, 0.08) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 29px, rgba(52, 152, 219, 0.08) 29px, rgba(52, 152, 219, 0.08) 30px);
  background-size: 30px 30px;
  pointer-events: none;
  border-radius: 16px;
  z-index: 0;
}

/* Estilos para la imagen del diagrama */
#diagrama-flujo img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Regla final para forzar centrado del título en características */
section#caracteristicas .container > .section-header > h2.section-title,
section#caracteristicas .features-section .section-header h2,
section#caracteristicas h2.section-title {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto 1rem auto !important;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
}

