/* ============================================================
   LOEX — Página: Almacenaje (y base para páginas de servicio)
   ============================================================ */

.section-storage {
    width: 100%;
}

/* ── Hero de servicio ─────────────────────────────────────── */
.img-storage {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.img-storage p {
    color: var(--color-accent);
    font-size: 1rem;
    margin: 0 0 8px 5%;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.img-storage h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    margin: 0 0 0 5%;
}

/* ── Contenido de servicio ────────────────────────────────── */
.info-service {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.info-service h2 {
    font-size: 2.2rem;
    color: var(--color-blue);
    text-align: center;
}

.info-service-p {
    width: 70%;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-blue-dark);
}

/* ── Grid de items ────────────────────────────────────────── */
.align-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.item {
    width: calc(25% - 16px);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(7, 76, 120, 0.65);
    border: 1px solid var(--color-blue);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.item:hover {
    background-color: rgba(245, 87, 110, 0.1);
    border-color: var(--color-accent);
}

.item p {
    color: var(--color-white);
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.item:hover p { color: var(--color-accent); }

/* ── Slider de galería ────────────────────────────────────── */
.section-slider-serv {
    width: 80%;
    position: relative;
    padding: 40px 0;
}

.section-slider-serv .api-state {
    min-height: 220px;
}

.img-slider {
    width: 100%;
    height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    display: none;
}

.api-state {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-dark);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    border: 1px solid rgba(7, 37, 56, 0.14);
    border-radius: var(--radius-md);
    padding: 24px;
}

.img-slider.is-active { display: block; }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 0;
    border-radius: 50%;
    padding: 6px;
    transition: background var(--transition-fast);
}

.prev:hover, .next:hover { background: rgba(255,255,255,0.45); }

.prev { left: -30px; }
.next { right: -30px; }

.prev img, .next img { width: 36px; }

/* Fade animation para slides */
.fade {
    animation: fadeSlide 0.8s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Título e introducción del slider ─────────────────────── */
.title-sli {
    font-size: 2.2rem;
    color: var(--color-blue);
    text-align: center;
}

.desc-sli {
    width: 65%;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-blue-dark);
}

/* ── Instalaciones globos ─────────────────────────────────── */
.align-instal {
    width: 80%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.instal {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform var(--transition-med);
}

.instal:hover { transform: scale(1.08); }

.instal-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-shrink: 0;
}

.instal h6 {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.reddd { color: var(--color-accent) !important; }

/* ── CTA final ────────────────────────────────────────────── */
.section-service-pfinal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.pfinal-serv-info {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
}

.pfinal-serv-info h2 {
    color: var(--color-blue);
    font-size: 2rem;
    width: 40%;
}

.pfinal-serv-info img {
    border-radius: var(--radius-md);
    width: 55%;
    height: auto;
}

.section-service-pfinal a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 56px;
    border-radius: var(--radius-lg);
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.section-service-pfinal a:hover { opacity: 0.85; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .item { width: calc(50% - 10px); }
    .info-service-p { width: 90%; }
    .section-slider-serv { width: 90%; }
    .pfinal-serv-info { width: 90%; flex-direction: column; align-items: center; }
    .pfinal-serv-info h2 { width: 100%; text-align: center; }
    .pfinal-serv-info img { width: 90%; }
}

@media (max-width: 600px) {
    .img-storage { height: 300px; }
    .item { width: 100%; }
    .img-slider { height: 320px; }
    .desc-sli { width: 90%; }
    .section-service-pfinal a { width: 90%; max-width: 320px; }
}
