/* POWER SECTION */

.power {
  padding: 120px 24px;
  background-color: #dadad8;
}

.power-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.power-text {
  max-width: 520px;
}

.power-title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1c1c1c;
  margin-bottom: 24px;
}

.power-description {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.34;
  color: #0f0f0f;
  margin-bottom: 32px;
}

.power-button {
  background: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 16px 32px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1c1c1c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.power-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.accordion-item:last-child {
  border-radius: 20px;
}

.accordion-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  transition: all 0.4s ease;
  cursor: pointer;
}

.accordion-item {
  margin-top: -24px; /* controla cuánto se solapan */
}

.accordion-item:first-child {
  margin-top: 0;
}

/* Background colors */
.item-delivery {
  background: #0a5c78;
  color: #95e3ff;
}

.item-decision {
  background: #ffc20e;
  color: #fff1c9;
}

.item-data {
  background: #009e73;
  color: #abffe9;
}

.item-digital {
  background: #f36b2c;
  color: #ffd6c8;
}

.accordion-header {
  padding: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
}

/* Icon */
.accordion-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Raleway, sans-serif;
  font-weight: 700;
}

/* Content hidden */
.accordion-content {
  max-height: 0;
  opacity: 0;
  padding: 0 32px;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Content visible */
.accordion-item.active .accordion-content {
  max-height: 240px;
  opacity: 1;
  padding: 0 32px 64px;
}

/* Titles */
.accordion-title {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;  
  font-style: ExtraBold;
  font-size: 50px;
  line-height: 95%;
  letter-spacing: 0%;
  text-transform: uppercase;
}

/* Subtitle */
.accordion-text {
  font-family: Century Gothic, sans-serif;
  font-size: 16px;
  line-height: 150%;
}

/* Arrow */
.accordion-arrow {
  position: absolute;
  bottom: 35px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
}

.accordion-item.active .accordion-arrow {
  display: flex;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .accordion-header {
    padding: 24px;
  }

  .accordion-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .accordion-item.active .accordion-content {
    padding: 0 24px 56px;
  }

  .accordion-text {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .power {
    padding: 72px 16px;
  }

  .power-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .power-text {
    max-width: none;
    text-align: left;
  }

  .power-title {
    font-size: 28px;
  }

  .power-description {
    font-size: 16px;
  }

  .power-button {
    font-size: 16px;
    padding: 14px 28px;
  }

  /* Accordion */
  .accordion-item {
    margin-top: -16px;
  }

  .accordion-title {
    font-size: 32px;
    line-height: 1;
  }

  .accordion-text {
    font-size: 14px;
  }

  .accordion-item.active .accordion-content {
    max-height: 320px;
  }

  .accordion-arrow {
    bottom: 24px;
    right: 20px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .floating-navbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    max-width: none;
  }
}
