.stackSection {
    width: 100%;
    min-height: 120vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 80px 1px;
    padding-top: 100px;
}
.stackContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.stackItem {
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 32px;
    border-radius: 20px;
    background: none;
    font-size:clamp(38px, 5vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    box-sizing: border-box;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stackItem.left { color: #ff6501; }
.stackItem.right { color: #ffffff; }
@media (max-width: 768px) {
    .stackItem {
        font-size: 5.5vw;
        letter-spacing: -0.5px;
        padding: 6px 10px;
        line-height: 1.1;
        white-space: nowrap;
        max-width: 95vw;
    }
    .stackSection {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
        overflow: clip;
    }
    .stackContainer { gap: 4px; }
}
/* ===========================
   SERVICIOS
=========================== */
.serviciosSection {
  padding: 60px 40px 60px;
  position: relative;
}
.serviciosTitleGroup {
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(-20px, -3vw, -40px);
}
.serviciosTitleTop {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  color: #ffffff;
  margin: 0;
  letter-spacing: 1px;
  position: relative;
  top: 5px;
}
.serviciosTitleBig {
 font-family: var(--font-body);
  font-weight: 800;
  color: var(--orange);
  margin: 0;
  line-height: 0.9;
  letter-spacing: -10px;
  font-size: clamp(72px, 12vw, 140px);
}
.serviciosGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}
/* CARD */
.serviceCard {
    background: #ffffff;
    color: #112a41;
    border-radius: 22px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    position: relative;
    z-index: 1;
}

/* IMAGEN */
.serviceImg {
    width: 330px;
    height: 330px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMG */
.serviceImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.serviceCard:hover .serviceImg img {
    transform: scale(1.05);
}
/* TEXTO */
.serviceBody {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 12px;

    padding-top: 50px;
}
.serviceBody h3 {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 500;
    color: #112a41;
    margin: 0;
    line-height: 1.1;
}
.serviceOrange {
    display: block;
    font-size: clamp(22px, 3vw, 35px);
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -2px;
    line-height: 0.9;
}
.serviceNameOrange {
  color: var(--orange);
  font-weight: 900;
  display: block;
  font-size: 24px;
}
.serviceBody p {
  font-size: 16px;
  color: #4a5867;
  margin: 0;
  line-height: 1.45;
}
.pillButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b2941;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s ease;

  width: fit-content;
  white-space: nowrap; /* 🔥 IMPORTANTE */
}
.pillButton:hover {
  background: var(--orange);
  transform: translateY(-2px);
}
.heroBtn:hover{
    transform: translateX(-50%) translateY(-2px);
}
.pillButtonLg {
  background: var(--orange);
  padding: 14px 26px;
  font-size: 50px;
}
.pillButtonLg:hover { background: #c4500f; }

.centerCta {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
@media (max-width: 768px) {
  .serviciosGrid { grid-template-columns: 1fr; }
  .serviceCard { flex-direction: column; align-items: stretch; }
  .serviceImg { width: 100%; height: 200px; }
  .serviceImg { width: 100%; min-width: unset; height: 140px; }
  .serviceBody h3 { font-size: 20px; }
  .serviceNameOrange { font-size: 34px; }
  .serviciosTitleBig { font-size: clamp(56px, 18vw, 100px); letter-spacing: -1px; }
  .serviciosTitleGroup { margin-bottom: -28px; }
}
.heroBtn{
    position:absolute;
    bottom:50px;
    left:50%;
    transform:translateX(-50%);
    z-index:5;
    display:flex;
    align-items:center;
    gap:14px;
}
/* HOVER */
.heroBtn:hover{
    transform:translateX(-50%);
}
/* CIRCULO */
.heroArrow{
    width:34px;
    height:34px;
    background:#000000;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;

}
/* FLECHA */
.heroArrow i{
    color:#ffffff;
    font-size:14px;
}
.serviciosBtn{
    font-size: 24px;
}
@media (max-width: 768px) {
    .serviciosTitleGroup {
        position: relative;
        top: -10px;
    }
}
.serviciosViewport {
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}
.serviciosSlider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    transition: transform 0.5s ease;
}
.serviciosViewport .portafolioArrow {
    display: none; /* ocultas en desktop */
}

@media (max-width: 768px) {
    .serviciosSlider {
        display: flex;
        width: max-content;
        gap: 0;
    }
    .serviciosSlider .serviceCard {
        width: 90vw;
        flex-shrink: 0;
        flex-direction: column;
        align-items: stretch;
        margin: 0 5vw;
        box-sizing: border-box;
    }
.serviceImg {
    width: 100%;
    min-width: unset;
    height: auto;
    aspect-ratio: 1 / 1;
}
    .serviciosViewport{
        margin: 0 -40px;
        width: calc(100% + 80px);
    }
    .serviciosViewport .portafolioArrow {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: none;
        color: var(--orange);
        font-size: 40px;
        cursor: pointer;
        z-index: 10;
    }
    #prevServicios { left: 0; }
    #nextServicios { right: 0; }
}
@media (max-width: 1300px) and (min-width: 769px) {
  .serviceCard { gap: 16px; padding: 18px; }
  .serviceImg { width: 130px; height: 130px; }
  .serviceBody h3 { font-size: 19px; }
  .serviceBody p { font-size: 14px; }
}
@media (max-width: 1366px){

    .stackItem{
        font-size:50px;
    }
   .stackContainer{
        gap:0px;
    }
    .portfolioCard{
    transform: scale(0.9);
    }
}