/* Estilos base para la página CRM */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #222;
}

/* Estilos específicos para el hero del CRM usando las clases de video_creator.css */
.hero-video {
  background: #0073a8 !important;
}

.hero-video-left {
  background: #0073a8 !important;
}

.hero-video-left h1 {
  background: #fff !important;
  color: #0073a8 !important;
}

.hero-video-right {
  background: #005b86 !important;
}

.btn-hero {
  border: 2px solid #fff !important;
  color: #fff !important;
  background: transparent !important;
}

.btn-hero:hover {
  background: #fff !important;
  color: #0073a8 !important;
}

.hero-crm {
  display: flex;
  flex-wrap: nowrap;
  background: #0073a8;
  color: #fff;
  min-height: 340px;
  align-items: stretch;
  position: relative;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-crm-left {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.hero-crm-content {
  padding: 48px 40px 48px 0;
  position: relative;
  overflow: hidden;
}
.hero-crm-left h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0 0 16px 0;
  background: #fff;
  color: #0073a8;
  display: inline-block;
  padding: 4px 24px;
  border-radius: 4px;
  white-space: nowrap;
}
.hero-crm-left p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 100%;
  word-wrap: break-word;
}
.btn-hero {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-hero:hover {
  background: #fff;
  color: #0073a8;
}
.hero-crm-right {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #005b86;
  padding: 48px 40px;
}
.hero-crm-right img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0 0 0 0;
}

.presentation-crm {
  background: #fff;
  padding: 48px 0;
}
.presentation-crm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px;
}
.presentation-crm-img {
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.presentation-crm-img img {
  max-width: 100%;
}
.presentation-crm-text {
  flex: 1 1 340px;
  min-width: 260px;
  padding: 0 24px;
}
.presentation-crm-text h2 {
  color: #000;
  font-size: 2.2rem;
  margin-bottom: 16px;
  font-weight: 900;
  text-align: center;
}

.besoin-crm {
  background: transparent;
  padding: 0;
}
.besoin-crm-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  min-height: 300px;
}
.besoin-crm-img {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  background: url('img/crm/6.png') center/cover no-repeat;
}
.besoin-crm-img img {
  display: none;
}
.besoin-crm-text {
  flex: 1 1 50%;
  background: #067baf;
  color: #fff;
  padding: 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.besoin-crm-text h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: bold;
}

.benefices-crm {
  background: transparent;
  padding: 48px 0;
  position: relative;
}
.benefices-crm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/crm/0.png') center/cover no-repeat;
  opacity: 0.2;
  z-index: 1;
}
.benefices-crm-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.benefice-crm-card {
  background: transparent;
  padding: 32px 24px 24px 24px;
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.benefice-icon {
  width: 75px;
  height: 75px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefice-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.benefice-crm-card h5 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #000;
  font-weight: 800;
}
.benefice-crm-card p {
  font-size: 1.1rem;
  color: #000;
}

.service-analyse-crm {
  background: transparent;
  padding: 0;
}

/* Primera sección: Service Clientèle */
.service-analyse-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  min-height: 400px;
}
.service-analyse-img {
  flex: 1 1 50% !important;
  position: relative;
  overflow: hidden;
  background: url('img/crm/8.png') center/cover no-repeat;
  width: 50% !important;
}
.service-analyse-img img {
  display: none;
}
.service-analyse-text {
  flex: 1 1 50% !important;
  background: #d7e9f2 !important;
  color: #333;
  padding: 48px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 50% !important;
  box-sizing: border-box;
}
.service-analyse-text h3 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 900;
}
.service-analyse-text p {
  color: #333;
  font-size: 1.05rem;
  padding-left: 30px;
  padding-right: 30px;
}

/* Segunda sección: Analyse Performance */
.analyse-performance-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  min-height: 400px;
}
.analyse-performance-img {
  flex: 1 1 50% !important;
  position: relative;
  overflow: hidden;
  background: url('img/crm/9.png') center/cover no-repeat;
  width: 50% !important;
}
.analyse-performance-img img {
  display: none;
}
.analyse-performance-text {
  flex: 1 1 50% !important;
  background: #d7e9f2 !important;
  color: #333;
  padding: 48px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 50% !important;
  box-sizing: border-box;
}
.analyse-performance-text h3 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 900;
}
.analyse-performance-text p {
  color: #333;
  font-size: 1.05rem;
  padding-left: 30px;
  padding-right: 30px;
}

.offre-crm {
  background: #fff;
  padding: 48px 0;
}
.offre-crm-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.offre-crm-block {
  border-radius: 12px;
  padding: 32px 24px;
  color: #fff;
  min-width: 260px;
  max-width: 440px;
  flex: 1 1 340px;
  box-shadow: 0 2px 12px rgba(0,115,168,0.10);
  margin-bottom: 24px;
}
.offre-crm-block h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.offre-crm-block ul {
  list-style: disc inside;
  color: #fff;
  font-size: 1rem;
  margin: 12px 0 0 0;
  padding: 0;
}
.offre-crm-block li {
  margin-bottom: 8px;
}

.contact-crm {
  background: #fff;
  padding: 0 0 48px 0;
}
.contact-crm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  background: #eaf7f6;
  border-radius: 16px;
  margin: 32px auto 0 auto;
  max-width: 900px;
  box-shadow: 0 2px 12px rgba(0,115,168,0.06);
  padding: 32px 24px;
}
.contact-crm-left {
  flex: 1 1 220px;
  padding: 0 24px 24px 0;
  min-width: 200px;
}
.contact-crm-left h4 {
  font-size: 1.2rem;
  color: #0073a8;
  margin: 0 0 12px 0;
}
.contact-crm-form {
  flex: 2 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
}
.contact-crm-form input,
.contact-crm-form textarea {
  padding: 12px;
  border: 1px solid #b0d6e6;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
}
.contact-crm-form textarea {
  min-height: 80px;
  max-height: 200px;
}
.contact-crm-form button {
  background: #0073a8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-crm-form button:hover {
  background: #005b86;
}

/* Estilos para mensajes de éxito y error */
.alert {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Nueva sección: Imagen de fondo dividida en dos secciones */
.hero-image-crm {
  background: url('img/crm/CRM_Solutions.webp') center/cover no-repeat;
  padding: 0;
  position: relative;
  min-height: 436px;
  display: flex;
  flex-wrap: nowrap;
}


.hero-image-left {
  flex: 1 1 50%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.hero-image-right {
  flex: 1 1 50%;
  position: relative;
  z-index: 2;
}

.hero-image-content {
  color: #fff;
  text-align: center;
  max-width: 500px;
}

.hero-image-content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: Arial Black, Arial, sans-serif;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-image-content p {
  font-size: 1.1rem;
  font-family: Arial Black, Arial, sans-serif;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.nueva-seccion-crm {
  background: transparent;
  padding: 0;
}
.nueva-seccion-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  min-height: 400px;
}
.nueva-seccion-img {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  background: url('img/crm/3.png') center/cover no-repeat;
}
.nueva-seccion-img img {
  display: none;
}
.nueva-seccion-text {
  flex: 1 1 50%;
  background: #308b7f;
  color: #fff;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  font-family: Arial Black, Arial, sans-serif;
}
.nueva-seccion-text h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 900;
  font-family: Arial Black, Arial, sans-serif;
  line-height: 1.2;
}
.nueva-seccion-text ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  text-align: left;
}
.nueva-seccion-text .inclus-offre {
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  padding: 0;
  line-height: 1.1;
}

/* ERP Section Styles */
.erp-section {
  background: #f8f9fa;
  padding: 60px 0;
}
.erp-section-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
.erp-section-text {
  flex: 1 1 50%;
  padding: 40px;
  box-sizing: border-box;
}
.erp-section-text h2 {
  font-size: 2.2rem;
  color: #222327;
  margin-bottom: 20px;
  font-weight: 800;
}
.erp-section-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}
.erp-section-img {
  flex: 1 1 50%;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.erp-section-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.erp-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.erp-feature {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 4px solid #0073a8;
}
.erp-feature h4 {
  margin: 0 0 10px 0;
  color: #0073a8;
  font-size: 1.2rem;
}
.erp-feature p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}
.btn-erp {
  display: inline-block;
  background: #0073a8;
  color: #fff;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 115, 168, 0.4);
}
.btn-erp:hover {
  background: #005b86;
  color: #fff;
}

/* Mobile Responsiveness for CRM & ERP Pages */
@media (max-width: 768px) {
  .presentation-crm-row,
  .besoin-crm-row,
  .service-analyse-row,
  .analyse-performance-row,
  .nueva-seccion-row,
  .erp-section-row {
    flex-direction: column;
  }
  .service-analyse-img, .service-analyse-text, 
  .analyse-performance-img, .analyse-performance-text {
    width: 100% !important;
    min-height: 300px;
  }
  .besoin-crm-text, .service-analyse-text, .analyse-performance-text {
    padding: 40px 20px;
  }
  .besoin-crm-img {
    min-height: 300px;
  }
  .hero-crm {
    flex-direction: column;
  }
  .hero-crm-left {
    padding: 20px;
    text-align: center;
  }
  .hero-crm-left h1 {
    font-size: 2rem;
  }
  .hero-crm-left p {
    font-size: 1rem;
  }
  .contact-video-row {
    flex-direction: column;
  }
  .contact-video-left {
    padding-right: 0;
    margin-bottom: 20px;
  }
}
.nueva-seccion-text li {
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 4px;
  padding-left: 0;
  line-height: 1.1;
}