/* ===== ESTILOS PARA PÁGINA DE PLATAFORMA ===== */

:root {
  /* ----- COLORES MODO CLARO ----- */
  --base-color: #fff;
  --base-variant: #20325e;
  --bg-hero: linear-gradient(135deg, #345098 0%, #20325e 100%);
  --body-base: #F0F2EF;
  --body-secondary: #20325e;
  --body-details: #E0E0E0;
  --text-color-base: #666;
  --text-color-secondary: #fff;
  --accent-color: #0da44d;
}

.darkmode {
  /* ----- COLORES MODO OSCURO ----- */
  --base-color: #20325e;
  --base-variant: #fff;
  --bg-hero: linear-gradient(135deg, #2F3637 0%, #4B5658 100%);
  --body-base: #2F3637;
  --body-secondary: #464F51;
  --body-details: #5F6B6D;
  --text-color-base: #fff;
  --text-color-secondary: #fff;
  --accent-color: #f69911;
}


* {
  box-sizing: border-box;
}

body,
html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--body-base);
  position: relative;
}

/* Hero Section */
.demo-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.demo-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    var(--bg-hero),
    url('../imgs/ref/compartir-documentos-con-graficos-vista-superior-de-los-trabajadores-de-oficina-en-ropa-clasica-sentados-cerca-de-la-mesa-usando-una-computadora-portatil-y-documentos.jpg') center/cover no-repeat;
  z-index: 1;
}

.demo-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 30, 75, 0.3);
  z-index: 2;
}

.demo-hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.demo-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px #000a, 0 2px 8px #15904544;
  letter-spacing: -1px;
}

.demo-hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-color);
  text-shadow: 0 2px 8px #000a;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #159045;
  text-shadow: 0 2px 8px #000a;
}

.demo-stat-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f5f5f5;
  text-align: center;
}

/* Sección de beneficios */
.demo-beneficios {
  background: var(--body-details);
  padding: 80px 0;
  position: relative;
}

.demo-beneficios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: bo;
  z-index: 0;
}

.demo-beneficios-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.demo-beneficios-title {
  color: #20325E;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.demo-beneficios-subtitle {
  color: var(--text-color-base);
  font-size: 1.2rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.demo-beneficio-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 4px 20px rgba(32, 50, 94, 0.08);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  text-align: center;
}

.demo-beneficio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(32, 50, 94, 0.15);
  border-color: var(--accent-color);
}

.demo-beneficio-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.demo-beneficio-card h3 {
  color: #20325E;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-beneficio-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Sección principal del formulario */
.demo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  background: transparent;
  border-radius: 0;
  margin: 0 auto;
  margin-top: 32px;
  padding: 48px 32px 48px 48px;
  max-width: 1400px;
  min-height: 80vh;
  box-sizing: border-box;
}

.demo-form-section {
  flex: 3;
  min-width: 400px;
  margin-right: 48px;
}

.demo-title {
  color: var(--accent-color);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.demo-form {
  background: #223366;
  border-radius: 32px;
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 24px 0 rgba(32, 32, 32, 0.18);
  position: relative;
}

.demo-form-row {
  display: flex;
  gap: 16px;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  flex: 1;
  background: #20325E;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(32, 32, 32, 0.10);
  transition: box-shadow 0.2s, border 0.2s;
}

.demo-form input[type="text"][placeholder="+52"] {
  max-width: 90px;
  min-width: 70px;
  margin-right: 8px;
  flex: 0 0 auto;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  box-shadow: 0 0 0 2px var(--accent-color);
  border: 1.5px solid var(--accent-color);
}

.demo-form textarea {
  min-height: 60px;
  resize: vertical;
}

.demo-form .demo-btn {
  margin-top: 18px;
  align-self: flex-start;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-form .demo-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: #f5f5f5;
  opacity: 1;
}

.demo-form-row .input-icon.textarea {
  top: 18px;
}

/* Responsive */

.demo-side {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  margin-top: 128px;
  padding: 20px;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.demo-step-number {
  background: var(--accent-color);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(21, 144, 69, 0.3);
  position: relative;
  z-index: 2;
}

.demo-step-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Efectos hover para los pasos */
.demo-step:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.demo-step:hover .demo-step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(21, 144, 69, 0.4);
}

.demo-step:hover .demo-step-text {
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animación de entrada para los pasos */
.demo-step {
  animation: slideInRight 0.6s ease-out;
  animation-fill-mode: both;
}

.demo-step:nth-child(1) {
  animation-delay: 0.1s;
}

.demo-step:nth-child(2) {
  animation-delay: 0.3s;
}

.demo-step:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* Sección unificada con formulario y proceso */
.demo-unified-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.demo-unified-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hex" patternUnits="userSpaceOnUse" width="20" height="17.32"><polygon points="10,0 20,5.77 20,17.32 10,23.09 0,17.32 0,5.77" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hex)"/></svg>');
  z-index: 0;
}

/* Sección de proceso de demo */
.demo-proceso {
  background: transparent;
  padding: 120px 0 0 0;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-proceso::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hex" patternUnits="userSpaceOnUse" width="20" height="17.32"><polygon points="10,0 20,5.77 20,17.32 10,23.09 0,17.32 0,5.77" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hex)"/></svg>');
  z-index: 0;
}

.demo-proceso-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.demo-proceso-title {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.demo-proceso-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-proceso-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
  position: relative;
  align-items: stretch;
  width: 100%;
}

.demo-proceso-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.3), #fff);
  transform: translateY(-50%);
  z-index: 0;
}

.demo-proceso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 320px;
}

.demo-proceso-icon {
  background: var(--body-details);
  color: #667eea;
  font-size: 2.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 8px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
}

.demo-proceso-icon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--body-details);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.demo-proceso-step:hover .demo-proceso-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.demo-proceso-step:hover .demo-proceso-icon::before {
  opacity: 1;
}

.demo-proceso-content {
  background: var(--body-details);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(10px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

.demo-proceso-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 24px;
  z-index: -1;
}

.demo-proceso-step:hover .demo-proceso-content {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.demo-proceso-content h3 {
  color: #667eea;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.demo-proceso-content p {
  color: var(--text-color-base);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.demo-proceso-time {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.demo-proceso-time::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.demo-proceso-step:hover .demo-proceso-time::before {
  left: 100%;
}

/* Sección de testimonios */
.demo-testimonios {
  background: #fff;
  padding: 80px 0;
  position: relative;
}

.demo-testimonios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
  z-index: 0;
}

.demo-testimonios-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.demo-testimonios-title {
  color: #20325E;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.demo-testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.demo-testimonio-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(32, 50, 94, 0.08);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  text-align: left;
}

.demo-testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(32, 50, 94, 0.15);
  border-color: #159045;
}

.demo-testimonio-content p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.demo-testimonio-autor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-testimonio-autor img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #159045;
}

.demo-testimonio-info h4 {
  color: #20325E;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.demo-testimonio-info span {
  color: #666;
  font-size: 0.95rem;
}

/* Sección de casos de éxito */
.demo-casos-exito {
  background: #fff;
  padding: 80px 0;
  position: relative;
}

.demo-casos-exito::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
  z-index: 0;
}

.demo-casos-exito-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.demo-casos-exito-title {
  color: #20325E;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.demo-casos-exito-subtitle {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-casos-exito-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.demo-caso-exito-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(32, 50, 94, 0.08);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.demo-caso-exito-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(32, 50, 94, 0.15);
  border-color: #159045;
}

.demo-caso-exito-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.demo-caso-exito-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.demo-caso-exito-card:hover .demo-caso-exito-header img {
  transform: scale(1.05);
}

.demo-caso-exito-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #159045;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.demo-caso-exito-content {
  padding: 32px;
}

.demo-caso-exito-content h3 {
  color: #20325E;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-caso-exito-industry {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.demo-caso-exito-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.demo-caso-exito-metric {
  flex: 1;
  text-align: center;
}

.demo-caso-exito-number {
  display: block;
  color: #159045;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.demo-caso-exito-label {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.3;
}

.demo-caso-exito-quote {
  color: #333;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  padding: 16px;
  background: #f8f9ff;
  border-radius: 12px;
  border-left: 4px solid #159045;
}

/* Sección CTA */
.demo-cta {
  background: var(--bg-hero);
  padding: 80px 0;
  position: relative;
}

.demo-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(13, 164, 77, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(90, 110, 231, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.demo-cta-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.demo-cta-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.demo-cta-subtitle {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 48px;
}

.demo-cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-cta-btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-cta-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21, 144, 69, 0.3);
}

.demo-cta-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 144, 69, 0.4);
}

.demo-cta-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.demo-cta-secondary:hover {
  background: #fff;
  color: #20325E;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
  .demo-beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .demo-proceso-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
  }

  .demo-proceso-step {
    min-height: 280px;
  }

  .demo-proceso-timeline::before {
    display: none;
  }

  /* Mejoras para el formulario entre 900px y 1200px */
  .demo-container {
    padding: 40px 24px;
    gap: 32px;
  }

  .demo-form-section {
    flex: 2.5;
    min-width: 350px;
    margin-right: 32px;
  }

  .demo-form {
    padding: 32px 24px;
    gap: 18px;
  }

  .demo-form-row {
    gap: 12px;
  }

  .demo-form input,
  .demo-form select,
  .demo-form textarea {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .demo-form input[type="text"][placeholder="+52"] {
    max-width: 80px;
    min-width: 60px;
    padding: 14px 8px;
    text-align: center;
  }

  .demo-side {
    flex: 1;
    min-width: 250px;
    gap: 20px;
  }

  .demo-step {
    padding: 18px;
    gap: 16px;
  }

  .demo-step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
    min-width: 45px;
    min-height: 45px;
  }

  .demo-step-text {
    font-size: 1rem;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .demo-hero-title {
    font-size: 2.8rem;
  }

  .demo-hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .demo-container {
    flex-direction: column;
    padding: 32px 16px;
    min-height: unset;
    max-width: 100vw;
    align-items: center;
  }

  .demo-form-section {
    margin-right: 0;
    margin-bottom: 32px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .demo-form {
    width: 100%;
    max-width: 100%;
  }

  .demo-side {
    margin-top: 32px;
    align-items: center;
    width: 100%;
    max-width: 400px;
  }

  .demo-step {
    width: 100%;
    max-width: 400px;
  }

  .demo-step-number {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    min-width: 60px;
    min-height: 60px;
  }

  .demo-step-text {
    font-size: 1.2rem;
  }

  .demo-beneficios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo-proceso-title {
    font-size: 2.5rem;
  }

  .demo-proceso-timeline {
    grid-template-columns: 1fr;
    gap: 60px;
    margin: 0 auto;
  }

  .demo-proceso-step {
    min-height: 260px;
  }

  .demo-proceso-content {
    padding: 24px 20px;
  }

  .demo-proceso-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .demo-testimonios-grid,
  .demo-casos-exito-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-caso-exito-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .demo-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .demo-cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .demo-unified-section {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {

  /* Hero section */
  .demo-hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .demo-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .demo-hero-stats {
    gap: 20px;
  }

  .demo-stat-number {
    font-size: 2.2rem;
  }

  .demo-stat-text {
    font-size: 0.9rem;
  }

  /* Container principal */
  .demo-container {
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: unset;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Sección del formulario */
  .demo-form-section {
    margin-right: 0;
    margin-bottom: 32px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .demo-title {
    color: #ffffff;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .demo-form {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    gap: 18px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  .demo-form-row {
    flex-direction: column;
    gap: 14px;
  }

  .demo-form input,
  .demo-form select,
  .demo-form textarea {
    padding: 16px 18px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .demo-form input[type="text"][placeholder="+52"] {
    max-width: 100%;
    margin-right: 0;
    min-width: unset;
    flex: 1;
    text-align: center;
  }

  .demo-form .demo-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1.1rem;
  }

  /* Sidebar con números */
  .demo-side {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .demo-step {
    width: 100%;
    max-width: 320px;
    padding: 18px 20px;
    gap: 16px;
    justify-content: flex-start;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .demo-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    min-width: 50px;
    min-height: 50px;
  }

  .demo-step-text {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  /* Sección de beneficios */
  .demo-beneficios {
    padding: 60px 0;
  }

  .demo-beneficios-container {
    padding: 0 16px;
  }

  .demo-beneficios-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .demo-beneficios-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .demo-beneficios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo-beneficio-card {
    padding: 24px 20px;
  }

  /* Sección de proceso */
  .demo-proceso {
    padding: 80px 0 0 0;
    margin-top: 40px;
  }

  .demo-proceso-container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .demo-proceso-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    text-align: center;
  }

  .demo-proceso-subtitle {
    font-size: 1.1rem;
    margin-bottom: 50px;
    text-align: center;
  }

  .demo-proceso-timeline {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    gap: 60px;
    grid-template-columns: 1fr;
    align-items: center;
    box-sizing: border-box;
  }

  .demo-proceso-step {
    min-height: 280px;
    gap: 20px;
  }

  .demo-proceso-content {
    padding: 24px 20px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  .demo-proceso-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .demo-proceso-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .demo-proceso-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .demo-proceso-time {
    font-size: 1rem;
    padding: 12px 24px;
  }

  /* Otras secciones */
  .demo-testimonios-title,
  .demo-casos-exito-title,
  .demo-cta-title {
    font-size: 2rem;
  }

  .demo-testimonios-grid,
  .demo-casos-exito-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-caso-exito-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .demo-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .demo-cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .demo-unified-section {
    padding: 40px 0;
  }
}



/* Media query para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 375px) {
  .demo-container {
    padding: 20px 10px;
  }

  .demo-form-section {
    max-width: 100%;
  }

  .demo-title {
    color: #ffffff;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .demo-form {
    padding: 20px 16px;
    gap: 14px;
  }

  .demo-form input,
  .demo-form select,
  .demo-form textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .demo-side {
    max-width: 100%;
    gap: 12px;
  }

  .demo-step {
    padding: 14px;
    gap: 10px;
    width: 100%;
    max-width: 300px;
  }

  .demo-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    min-width: 40px;
    min-height: 40px;
  }

  .demo-step-text {
    font-size: 0.9rem;
  }

  .demo-proceso-timeline {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    gap: 45px;
    align-items: center;
  }

  .demo-proceso-step {
    min-height: 220px;
  }

  .demo-proceso-content {
    padding: 16px 12px;
  }

  .demo-proceso-icon {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }

  .demo-proceso-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .demo-proceso-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .demo-proceso-time {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .demo-proceso-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .demo-proceso-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
}

/* Media query para pantallas extremadamente pequeñas */
@media (max-width: 320px) {
  .demo-container {
    padding: 16px 8px;
  }

  .demo-title {
    color: #ffffff;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .demo-form {
    padding: 16px 12px;
    gap: 12px;
  }

  .demo-form input,
  .demo-form select,
  .demo-form textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .demo-side {
    gap: 10px;
  }

  .demo-step {
    padding: 12px;
    gap: 8px;
    max-width: 280px;
  }

  .demo-step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    min-width: 35px;
    min-height: 35px;
  }

  .demo-step-text {
    font-size: 0.85rem;
  }

  .demo-proceso-timeline {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    gap: 35px;
    align-items: center;
  }

  .demo-proceso-step {
    min-height: 200px;
  }

  .demo-proceso-content {
    padding: 14px 10px;
  }

  .demo-proceso-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .demo-proceso-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .demo-proceso-content p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .demo-proceso-time {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .demo-proceso-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .demo-proceso-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }
}