* {
  margin: 0;
  padding: 0;
}

body {
    background-color: #f1c8e8;
}

h3 {
  margin-top:7%;
  margin-bottom:-5rem;
  padding-bottom:0;
  font-size:2.5rem;
  text-align:center;
}

section#tarjetasAcumuladas {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

h4 {
  font-size:4.5rem;
  line-height:4rem;
}

h5 {
    font-size:2.5rem;
}

#card2 h4{
    color:#E1C4F1;
}
#card1 h5{
    color:#DD3792;
}

#card2 h5 {
    color:#F4F29F;
}

#card2 p {
    color:#fff;
}
#card3 h4 {
    color:#FFE8F7;
}
#card3 p{
    color: #fff;
}
#card4 h5 {
    color:#DD3792;
}

.cards-container {
    position: relative;
    width: 60vw;
    height: 60vh;
}

.cardIconico {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    user-select: none;
    cursor: grab;
    transition: transform 0.3s ease;
    display: flex;
}

.card:not(:last-child) {
    pointer-events: none;
}

.cardIconico div img{
  padding:2rem;
  width:20vw;
}

.cardIconico div p {
  font-size:20px;
  padding-right:2rem;
}

.cards-container div#card2, .cards-container div#card4 {
  transform: rotate(5deg);
}
.cards-container div#card3 {
  transform: rotate(-5deg);
}

span {
  float:right;
  background-color: #000;
  color: #DD3792;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 12px 0px 0px 12px;
  font-family:Roboto Condensed;
}

#card2 span {
    background-color:#E1C4F1;
    color:#33174D;
}

#card3 span{
    color:#FFE8F7;
}

#card4 span {
    color: #F4F29F;
}

#fondoIconicos div {
    padding:0;
    margin:0;
    margin-top:-8rem;
}

#fondoIconicos div img{
    max-width: 100%;
    height: auto;
    padding:0;
    margin:0;
}

/* Botones */
.controls {
  position: absolute;
  bottom: 0%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

button.control-btn {
  background-color: #DD3792;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button.control-btn:hover {
  transform: scale(1.1);
  background-color: #b92d7a;
}

/* --- Ajustes responsive --- */
@media (max-width: 1024px) {
    .cards-container {
      width: 80vw;
      height: 70vh;
    }
  
    .cardIconico div img {
      width: 35vw;
      padding: 1rem;
    }
  
    h4 {
      font-size: 3rem;
      line-height: 3.2rem;
    }
  
    h5 {
      font-size: 1.8rem;
    }
  
    .cardIconico div p {
      font-size: 1rem;
      padding-right: 1rem;
    }
  }
  
  @media (max-width: 768px) {
    h3{
      font-size: 2rem;
      line-height: 2rem;
      margin-top:20%;
    }
    h4 {
      font-size: 2rem;
      line-height: 2.2rem;
    }
  
    h5 {
      font-size: 1.2rem;
    }
  
    .cardIconico div p {
      font-size: 0.9rem;
      padding: 0.5rem;
    }
  
    span {
      float: none;
      display: inline-block;
      margin-bottom: 0.5rem;
      border-radius:0px 12px 12px 0px;
      padding: 0.5rem 1rem 0.5rem 1rem;
      right:0;

    }
  }
  
  @media (max-width: 480px) {
    .cardIconico{
      flex-direction: column;
    }
    .cardIconico div img {
      width: 60vw;
      max-width: 220px;
    }
   
    h4 {
      font-size: 1.8rem;
      line-height: 1.8rem;
      text-align:center;
    }
  
    h5 {
      font-size: 1.2rem;
      text-align:center;
    }
  
    .cardIconico div p {
      font-size: 1rem;
      padding:1rem;
    }
  }
  