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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* oculto */
.oculto {
  display: none;
}

.visible {
  display: block;
}

/* Flecha estilo */
.flecha-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.flecha-toggle.rotada {
  transform: rotate(180deg);
}

/* Lo que nos mueve */
.compromiso {
  background: linear-gradient(120deg, #f7931d 0%, #ffb55a 100%);
  color: #fff;
  padding: 60px 0 50px 0;
  position: relative;
  z-index: 1;
}

.compromiso::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%
  );
  border-radius: 0 0 50% 50%;
  z-index: 0;
  pointer-events: none;
}

.section-header h2 {
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.compromiso-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.compromiso-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-align: justify; /* ← Esto es lo que le da el efecto de justificado */
}

.compromiso-card {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 36px 34px 32px 34px;
  box-shadow: 0 8px 32px 0 rgba(247, 147, 29, 0.16);
  backdrop-filter: blur(2.5px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  margin-top: 15px;
  margin-bottom: 10px;
  transition: box-shadow 0.25s;
}

.compromiso-card:hover {
  box-shadow: 0 16px 44px 0 rgba(0, 114, 188, 0.09);
}

.compromiso-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
}

.compromiso-card p {
  font-size: 1.11rem;
  line-height: 1.9;
  margin-bottom: 26px;
  color: #f9f6f3;
  text-align: justify; /* Texto justificado */
  opacity: 0.96;
}

/* Lazy loading para imágenes */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Optimizaciones de rendimiento */
.hero,
.mision-vision,
.compromiso {
  will-change: transform;
}


/* Imagen de VAN */
.van-image {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url("../assets/van-opti.png") center center / cover no-repeat;
}

/* Versión móvil ajustada */
@media (max-width: 768px) {
  .van-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                      url("../assets/van-opti-movil.png");
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    justify-content: flex-end; /* baja el contenido */
    padding-bottom: 50px;
    padding-top: 0 !important;
  }

  .slide-content {
    padding: 0 20px;
  }

  .slide-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .slide-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .slide-content .btn {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .slide-number {
    font-size: 0.9rem;
    bottom: 20px;
  }
}
