/* Adiciones específicas para Empresa */
.page-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/Portada-wedside.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 60px;
}
.timeline {
  position: relative;
  margin: 60px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.timeline-content {
  width: 45%;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-card {
  background: var(--light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    flex-direction: column;
    padding-left: 50px;
    position: relative;
  }
  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }
  .timeline-content {
    width: 100%;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* NUEVAS SECCIONES AÑADIDAS */
.section-graphic {
  text-align: center;
  margin-top: 20px;
}
.section-graphic svg {
  max-width: 100%;
  height: auto;
  width: 400px;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 80px 0;
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse .text-content {
  direction: ltr;
}
.section-center {
  text-align: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.team-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.team-icon {
  width: 100px;
  height: 100px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #666;
}
.team-title {
  margin-bottom: 10px;
}
.team-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.team-description {
  font-size: 14px;
}
.values-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}
.values-card {
  text-align: center;
}
.social-item {
  display: flex;
  align-items: start;
  margin-bottom: 15px;
}
.social-icon {
  color: var(--primary);
  margin-right: 10px;
}
.social-text strong {
  display: block;
  margin-bottom: 3px;
}
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.market-client {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.market-system {
  background: white;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.quality-principle {
  margin-bottom: 15px;
}
.quality-process {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}
.coverage-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.coverage-indicator {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 15px;
}
.coverage-progress {
  background: #ddd;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.coverage-bar {
  background: var(--primary);
  height: 8px;
  border-radius: 4px;
}
.progress-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.progress-text {
  font-weight: 600;
}
.progress-value {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .market-grid {
    grid-template-columns: 1fr;
  }
  .value-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }
}

/* ESTILOS ADICIONALES PARA NUEVAS SECCIONES */
.page-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../images/ejm.png");
  background-size: cover;
  background-position: center;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.page-header .container {
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  color: white;
}

.page-header-subtitle {
  color: #ddd;
  font-size: 1.2rem;
}

.section-subtitle {
  margin-top: 15px;
  color: #666;
}

/* Valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.values-item {
  text-align: center;
}

.values-icon-circle {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

/* Equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-icon-circle {
  width: 100px;
  height: 100px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #666;
}

.team-icon-circle img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.team-card:hover .team-icon-circle img {
  transform: scale(1.15); /* Efecto de ligero zoom moderno */
}

/* Opcional: Aclarar un poco el gris de fondo para que resalten más */
.team-icon-circle {
  background: #f0f0f0;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
}

.team-description {
  font-size: 14px;
  margin-top: 10px;
}

/* Responsabilidad Social */
.social-list {
  margin-top: 20px;
}

.social-item {
  margin-bottom: 15px;
  display: flex;
  align-items: start;
}

.social-icon {
  color: var(--primary);
  margin-right: 10px;
}

.social-text strong {
  display: block;
  margin-bottom: 3px;
}

/* Mercados */
.market-grid {
  margin-top: 20px;
}

.market-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.market-item h5 {
  color: var(--primary);
  margin-bottom: 5px;
}

.market-item p {
  font-size: 14px;
}

.market-clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.market-client {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
}

.market-client strong {
  display: block;
}

.market-client p {
  font-size: 13px;
  margin-top: 5px;
}

.market-systems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.market-system {
  background: white;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
}

.market-system strong {
  color: var(--primary);
  display: block;
}

.market-system p {
  font-size: 13px;
  margin-top: 5px;
}

/* Calidad */
.quality-commitment {
  max-width: 800px;
  margin: 0 auto;
}

.quality-card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quality-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.quality-content {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.quality-list {
  margin-top: 20px;
}

.quality-list li {
  margin-bottom: 15px;
}

.quality-processes {
  margin-top: 20px;
}

.quality-process {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}

.quality-process strong {
  display: block;
}

.quality-process p {
  font-size: 14px;
  margin-top: 5px;
}

/* Presencia Nacional */
.coverage-container {
  margin-top: 30px;
}

.coverage-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.coverage-indicator {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 15px;
}

.coverage-indicator-70 {
  opacity: 0.7;
}

.coverage-indicator-40 {
  opacity: 0.4;
}

.coverage-details p {
  font-size: 14px;
  color: #666;
}

.progress-section {
  margin-top: 15px;
}

.progress-item {
  margin-bottom: 15px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.progress-title {
  font-weight: 600;
}

.progress-value {
  color: var(--primary);
  font-weight: 600;
}

.progress-bar {
  background: #ddd;
  height: 8px;
  border-radius: 4px;
}

.progress-fill {
  background: var(--primary);
  height: 8px;
  border-radius: 4px;
}

.progress-fill-75 {
  width: 75%;
}

.progress-section-content {
  padding: 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.progress-fill-68 {
  width: 68%;
}

.growth-section {
  margin-top: 50px;
}

.growth-title {
  margin-bottom: 20px;
}

.growth-text {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.growth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.bg-gray {
  background: #fafafa;
}

.bg-light-gray {
  background: #f9f9f9;
}

.text-primary {
  color: var(--primary);
}

.text-gray {
  color: #666;
}

.text-dark {
  color: #333;
}

.font-small {
  font-size: 14px;
}

.font-smaller {
  font-size: 13px;
}

.font-large {
  font-size: 18px;
}

/* Estilos adicionales para listas y márgenes */
.market-list {
  margin-top: 15px;
}

.market-list-item {
  margin-bottom: 10px;
}

.section-top-margin {
  margin-top: 25px;
}

.timeline-container {
  max-width: 800px;
  margin: 40px auto;
  border-left: 2px solid #ddd;
  padding-left: 30px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-item-last {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
}

/* Ajuste de imágenes SVG en la sección Valores */
.values-icon-circle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Animación sutil (salto y pequeño giro) al pasar el ratón por todo el cuadro */
.values-item:hover .values-icon-circle img {
  transform: scale(1.15) rotate(5deg);
}

/* Efecto de sombra para los cuadros de valores al pasar el ratón */
.values-item {
  transition: transform 0.3s ease;
  padding: 15px;
  border-radius: 8px;
}

.values-item:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
