:root {
  --color-primario: rgb(49, 87, 98);
  --card-max-width: 520px;
}
body{
  user-select: none;
}

/* WRAPPER CENTRADO */
.image-carousel-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -12px; /* se pega un poco al header */
}

/* CONTENEDOR PRINCIPAL */
.image-carousel {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1200px;
  height: 340px; /* tamaño equilibrado */
  overflow: hidden;
  border-radius: 24px;
  background-color: #f5f5f5;
}

/* TRACK */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* SLIDES SUPERPUESTOS (FADE PURO) */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* IMÁGENES */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  animation: imageFadeIn 0.8s ease both;
}

@keyframes imageFadeIn {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1);
  }
}

/* DOTS */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(49, 87, 98, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.dot.active {
  background: rgb(49, 87, 98);
  transform: scale(1.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .image-carousel {
    height: 260px;
    border-radius: 18px;
  }

  .carousel-slide img {
    border-radius: 18px;
  }
}

/* INTRO SECTION */
.value-section {
  background: linear-gradient(
    180deg,
    rgb(239, 239, 239) 0%,
    rgb(239, 239, 239) 100%
  );
  padding: 40px 24px;
}

.value-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

/* COPY */
.value-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(49, 87, 98, 0.12);
  color: rgb(49, 87, 98);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.value-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: rgb(33, 33, 33);
  margin-bottom: 22px;
  text-align: start;
}

.value-title span {
  color: rgb(49, 87, 98);
  font-style: oblique;
}

.value-text {
  max-width: 520px;
  color: rgb(65, 65, 65);
  font-size: 1.1rem;
  margin-bottom: 36px;
  text-align: justify;
}

/* ACTIONS */
.value-actions {
  display: flex;
  gap: 16px;
}

.btn-solid {
  background: rgb(49, 87, 98);
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(49, 87, 98, 0.35);
}

.btn-soft {
  border: 1px solid rgba(49, 87, 98, 0.35);
  color: rgb(49, 87, 98);
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-soft:hover {
  background: rgba(49, 87, 98, 0.08);
}

/* CARDS */
.value-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CARD */
.value-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 22px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(49, 87, 98, 0.1);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* HOVER LIMPIO */
.value-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(49, 87, 98, 0.25);
}

/* ICONO (Bootstrap Icons) */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(91, 155, 173, 0.576);
  color: rgb(42, 76, 85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* ICONO HOVER */
.value-card:hover .card-icon {
  background: rgb(49, 87, 98);
  color: #ffffff;
  transform: scale(1.2);
}

/* CONTENIDO */
.value-card > div {
  display: flex;
  flex-direction: column;
}

/* TÍTULO */
.value-card h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgb(49, 87, 98);
}

/* TEXTO */
.value-card p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: rgb(82, 82, 82);
  line-height: 1.5;
  text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .value-card {
    padding: 16px 18px;
  }
}

/* HISTORY SECTION */
.history-section {
  background: rgb(239, 239, 239);
  padding: 40px 24px;
}

.history-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

/* TEXTO IZQUIERDO */
.history-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(49, 87, 98, 0.759);
  color: rgb(229, 229, 229);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.history-title {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  color: rgb(33, 33, 33);
}

.history-title span {
  color: rgb(13, 77, 94);
  font-style: italic;
}

.history-text p {
  font-size: 1.1rem;
  color: rgb(66, 66, 66);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 520px;
  text-align: justify;
}

/* CARDS */
.history-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .history-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .history-cards {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE ORDEN HISTORIA / EXPERIENCIA */
@media (max-width: 900px) {

  /* RESET GRID */
  .history-container {
    display: flex;
    flex-direction: column;
  }

  /* HISTORIA (texto arriba, cards abajo) */
  .history-normal .history-text {
    order: 1;
  }

  .history-normal .history-cards {
    order: 2;
  }

  /* EXPERIENCIA (texto arriba, cards abajo) */
  .history-reverse .history-text {
    order: 1;
  }

  .history-reverse .history-cards {
    order: 2;
  }
}
