/**
 * Single Proyecto — Caso de Éxito
 * Rediseño 2026: narrativo, visual, orientado a generación de prospectos
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --sp-navy:           #003d52;
    --sp-navy-dark:      #002535;
    --sp-navy-90:        rgba(0, 37, 53, 0.90);
    --sp-orange:         #e67e22;
    --sp-orange-dark:    #d35400;
    --sp-orange-muted:   rgba(230, 126, 34, 0.12);
    --sp-orange-light:   #fff8f1;
    --sp-text:           #1a202c;
    --sp-muted:          #64748b;
    --sp-border:         #e2e8f0;
    --sp-bg:             #f7f9fb;
    --sp-white:          #ffffff;
    --sp-reading-max:    720px;
    --sp-radius:         12px;
    --sp-shadow:         0 4px 24px rgba(0, 61, 82, 0.10);
    --sp-shadow-lg:      0 12px 40px rgba(0, 61, 82, 0.15);
    --sp-transition:     0.28s ease;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--sp-navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ============================================================
   BARRA DE PROGRESO DE LECTURA
   ============================================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--sp-orange), var(--sp-orange-dark));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   BOTÓN FLOTANTE CTA (aparece al hacer scroll)
   ============================================================ */
.sp-float-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--sp-orange);
    color: #fff;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(230, 126, 34, 0.45);
    z-index: 800;
    opacity: 0;
    transform: translateY(16px);
    animation: sp-float-appear 0.5s ease 3.5s forwards;
    transition: background var(--sp-transition), transform var(--sp-transition);
}
.sp-float-cta:hover {
    background: var(--sp-orange-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
@keyframes sp-float-appear {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO — imagen a pantalla completa
   ============================================================ */
.sp-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.sp-hero__bg--fallback {
    background: linear-gradient(135deg, var(--sp-navy-dark) 0%, var(--sp-navy) 60%, #005f7f 100%);
}

.sp-hero__overlay {
    position: absolute;
    inset: 0;
}

.sp-hero__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 64px;
}

.sp-hero__breadcrumb {
    margin-bottom: 24px;
}

.sp-hero__breadcrumb .breadcrumbs ol.breadcrumb-list {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-hero__breadcrumb .breadcrumbs ol.breadcrumb-list .breadcrumb-item {
    display: flex !important;
    float: none !important;
    align-items: center;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.85rem;
    font-weight: 500;
}

.sp-hero__breadcrumb .breadcrumbs ol.breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
    display: none !important;
}

.sp-hero__breadcrumb .breadcrumbs a {
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
    transition: color var(--sp-transition);
}

.sp-hero__breadcrumb .breadcrumbs a:hover {
    color: #fff;
    text-decoration: none;
}

.sp-hero__breadcrumb .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.40);
    margin: 0 2px;
}

.sp-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sp-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    background: var(--sp-orange);
    color: var(--sp-white);
    transition: all var(--sp-transition);
}
.sp-badge:hover {
    background: var(--sp-orange);
    border-color: var(--sp-orange);
    color: #fff;
    text-decoration: none;
}
.sp-badge--cat {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.30);
    color: rgba(255, 255, 255, 0.80);
}

.sp-hero__title {
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.13;
    margin: 0 0 24px;
    max-width: 820px;
    letter-spacing: -0.02em;
}

.sp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.sp-hero__client {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    font-weight: 500;
}
.sp-hero__client i { color: var(--sp-orange); }

.sp-hero__year {
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.85rem;
}

.sp-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--sp-orange);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--sp-transition), transform var(--sp-transition);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
}
.sp-hero__cta:hover {
    background: var(--sp-orange-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.sp-hero__excerpt {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 0 28px;
}

/* Scroll hint */
.sp-hero__scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.sp-hero__scroll-dot {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    border-radius: 12px;
    position: relative;
}
.sp-hero__scroll-dot::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 2px;
    animation: sp-scroll-dot 2.2s ease infinite;
}
@keyframes sp-scroll-dot {
    0%   { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ============================================================
   MÉTRICAS — sección navy de alto impacto
   ============================================================ */
.sp-metrics {
    background: var(--sp-navy);
    padding: 64px 0;
}

.sp-metrics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--sp-radius);
    overflow: hidden;
}

.sp-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--sp-navy);
    gap: 8px;
    transition: background var(--sp-transition);
}

.sp-metric:hover {
    background: var(--sp-navy-dark);
}

.sp-metric__icon {
    font-size: 1.4rem;
    color: var(--sp-orange);
    margin-bottom: 4px;
}

.sp-metric__num {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.sp-metric__label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .sp-metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   BARRA DE DATOS RÁPIDOS
   ============================================================ */
.sp-facts-bar {
    background: var(--sp-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-facts-bar__inner {
    display: flex;
    align-items: stretch;
    min-width: max-content;
}

.sp-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.sp-fact:last-child { border-right: none; }

.sp-fact__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(230, 126, 34, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-orange);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.sp-fact__label {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 3px;
}

.sp-fact__value {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    white-space: nowrap;
}

.sp-fact__value a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color var(--sp-transition);
}
.sp-fact__value a:hover { color: var(--sp-orange); }

/* Share en la barra */
.sp-fact--share {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.sp-share-row {
    display: flex;
    gap: 8px;
}

.sp-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all var(--sp-transition);
    color: #fff;
}

.sp-share-btn--li { background: rgba(0, 119, 181, 0.35); }
.sp-share-btn--li:hover { background: #0077b5; color: #fff; }
.sp-share-btn--wa { background: rgba(37, 211, 102, 0.25); }
.sp-share-btn--wa:hover { background: #25d366; color: #fff; }

/* ============================================================
   COLUMNA DE LECTURA (reusable)
   ============================================================ */
.sp-reading-col {
    max-width: var(--sp-reading-max);
    margin: 0 auto;
}

/* ============================================================
   SECCIONES DE CONTENIDO
   ============================================================ */
.sp-main { background: var(--sp-bg); }

.sp-section { padding: 64px 0; }

/* Intro / Resumen — texto de apertura grande */
.sp-intro {
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border);
    padding: 56px 0;
}

.sp-intro__text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.85;
    color: var(--sp-navy);
    font-weight: 400;
    border-left: 4px solid var(--sp-orange);
    padding-left: 28px;
}
.sp-intro__text p { margin-bottom: 1.2rem; }
.sp-intro__text p:last-child { margin-bottom: 0; }

/* Contenido del editor */
.sp-body-content { background: var(--sp-bg); padding: 56px 0; }
.sp-prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--sp-text);
}
.sp-prose p { margin-bottom: 1.4rem; }
.sp-prose h2, .sp-prose h3 { color: var(--sp-navy); margin-top: 2rem; }
.sp-prose ul, .sp-prose ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.sp-prose li { margin-bottom: 0.5rem; }
.sp-prose img { border-radius: var(--sp-radius); width: 100%; height: auto; }

/* Bloques de historia (Reto / Solución) */
.sp-section--challenge { background: var(--sp-bg); }
.sp-section--solution  { background: var(--sp-bg); }

.sp-story-block {
    /* Sin recuadro: sin sombra, sin borde, sin radio */
}

.sp-story-block__label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 16px 0;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--sp-navy);
    background: none !important;
}

.sp-story-block--challenge .sp-story-block__label {
    border-bottom-color: var(--sp-navy);
}
.sp-story-block--solution .sp-story-block__label {
    border-bottom-color: var(--sp-orange);
}

.sp-story-block__label h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0;
    line-height: 1.2;
}

.sp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 61, 82, 0.08);
    color: var(--sp-navy);
    flex-shrink: 0;
}

.sp-step-num--light {
    background: rgba(230, 126, 34, 0.12);
    color: var(--sp-orange);
}

.sp-story-block__body {
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--sp-text);
    background: none;
}
.sp-story-block__body p { margin-bottom: 1.2rem; }
.sp-story-block__body p:last-child { margin-bottom: 0; }
.sp-story-block__body ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.sp-story-block__body li { margin-bottom: 0.5rem; }

/* ============================================================
   RESULTADOS — fondo navy, alto impacto
   ============================================================ */
.sp-results {
    background: var(--sp-navy);
    padding: 72px 0;
}

.sp-results__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    max-width: var(--sp-reading-max);
    margin-left: auto;
    margin-right: auto;
}

.sp-results__header h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.sp-results__body {
    font-size: 1.075rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
}
.sp-results__body p    { margin-bottom: 1.2rem; }
.sp-results__body ul   { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.sp-results__body li   { margin-bottom: 0.6rem; color: rgba(255, 255, 255, 0.80); }
.sp-results__body li::marker { color: var(--sp-orange); }
.sp-results__body strong { color: #fff; }

/* ============================================================
   MINI GALERÍA — tira de thumbnails al final del contenido
   ============================================================ */
.sp-mini-gallery {
    background: var(--sp-bg);
    padding: 0 0 48px;
}

.sp-mini-gallery__strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--sp-border) transparent;
}

.sp-mini-gallery__thumb {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    cursor: zoom-in;
    background: var(--sp-navy);
}

.sp-mini-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sp-mini-gallery__thumb:hover img {
    transform: scale(1.08);
}

.sp-mini-gallery__zoom {
    position: absolute;
    inset: 0;
    background: rgba(0, 37, 53, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity var(--sp-transition);
}

.sp-mini-gallery__thumb:hover .sp-mini-gallery__zoom {
    opacity: 1;
}

/* ============================================================
   GALERÍA DE IMÁGENES
   ============================================================ */
.sp-gallery {
    background: var(--sp-bg);
    padding: 72px 0;
}

.sp-gallery__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sp-navy);
    text-align: center;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sp-gallery__title i { color: var(--sp-orange); }

/* Grid con featured-image grande */
.sp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.sp-gallery__grid .sp-gallery__item:first-child {
    grid-column: span 2;
}

.sp-gallery__item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: var(--sp-navy);
    cursor: zoom-in;
}

.sp-gallery__item:first-child {
    aspect-ratio: 16/9;
}

.sp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.sp-gallery__item:hover img { transform: scale(1.04); }

.sp-gallery__zoom {
    position: absolute;
    inset: 0;
    background: rgba(0, 37, 53, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity var(--sp-transition);
}
.sp-gallery__item:hover .sp-gallery__zoom { opacity: 1; }

/* ============================================================
   CTA INTERMEDIO — captura de leads inline
   ============================================================ */
.sp-cta-mid {
    padding: 56px 0;
    background: var(--sp-orange-light);
    border-top: 1px solid rgba(230, 126, 34, 0.15);
    border-bottom: 1px solid rgba(230, 126, 34, 0.15);
}

.sp-cta-mid__card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    padding: 36px 40px;
    box-shadow: var(--sp-shadow);
    border-left: 5px solid var(--sp-orange);
}

.sp-cta-mid__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--sp-orange-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sp-cta-mid__text { flex: 1; }
.sp-cta-mid__text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0 0 6px;
}
.sp-cta-mid__text p {
    font-size: 0.95rem;
    color: var(--sp-muted);
    margin: 0;
    line-height: 1.6;
}

.sp-cta-mid__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: var(--sp-orange);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--sp-transition), transform var(--sp-transition);
}
.sp-cta-mid__btn:hover {
    background: var(--sp-orange-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================================
   TECNOLOGÍAS
   ============================================================ */
.sp-techs {
    padding: 56px 0;
    background: var(--sp-bg);
    border-top: 1px solid var(--sp-border);
}

.sp-techs__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sp-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    text-align: center;
    margin-bottom: 24px;
}

.sp-techs__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: var(--sp-reading-max);
    margin: 0 auto;
}

.sp-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 100px;
    font-size: 0.88rem;
    color: var(--sp-navy);
    font-weight: 500;
    transition: border-color var(--sp-transition), background var(--sp-transition);
}
.sp-tech-badge:hover {
    border-color: var(--sp-orange);
    background: var(--sp-orange-muted);
}
.sp-tech-badge i {
    color: var(--sp-orange);
    font-size: 0.75rem;
}

/* ============================================================
   PROYECTOS RELACIONADOS
   ============================================================ */
.sp-related {
    padding: 72px 0;
    background: var(--sp-bg);
    border-top: 1px solid var(--sp-border);
}

.sp-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
}

.sp-related__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sp-orange);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 8px;
}

.sp-related__title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0;
}
.sp-related__title a {
    color: var(--sp-orange);
    text-decoration: none;
}
.sp-related__title a:hover { text-decoration: underline; }

.sp-related__ver-todos {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sp-navy);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--sp-transition);
}
.sp-related__ver-todos:hover { color: var(--sp-orange); }

.sp-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sp-related__card {
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-border);
    display: flex;
    flex-direction: column;
    transition: transform var(--sp-transition), box-shadow var(--sp-transition);
}
.sp-related__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-lg);
}

.sp-related__img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.sp-related__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.sp-related__card:hover .sp-related__img img { transform: scale(1.05); }

.sp-related__img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 37, 53, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    opacity: 0;
    transition: opacity var(--sp-transition);
}
.sp-related__card:hover .sp-related__img-overlay { opacity: 1; }

.sp-related__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.sp-related__tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sp-orange);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sp-related__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0;
    line-height: 1.35;
}
.sp-related__body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--sp-transition);
}
.sp-related__body h3 a:hover { color: var(--sp-orange); }

.sp-related__client {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    color: var(--sp-muted);
    margin: 0;
}
.sp-related__client i { color: var(--sp-navy); }

.sp-related__link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sp-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--sp-transition), gap var(--sp-transition);
}
.sp-related__link:hover {
    color: var(--sp-orange);
    text-decoration: none;
    gap: 10px;
}

/* ============================================================
   SECCIÓN DE CONTACTO FINAL
   ============================================================ */
.sp-contact {
    padding: 88px 0;
    background: var(--sp-navy-dark);
    color: #fff;
}

.sp-contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.sp-contact__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sp-orange);
    margin-bottom: 16px;
}

.sp-contact__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.sp-contact__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.78;
    margin-bottom: 32px;
}

.sp-contact__trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sp-contact__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}
.sp-contact__trust li i { color: var(--sp-orange); }

/* Formulario en oscuro */
.sp-contact__form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sp-radius);
    padding: 40px;
}

.sp-contact__form .wpcf7-form p { margin-bottom: 16px; }

.sp-contact__form .wpcf7-form input:not([type="submit"]),
.sp-contact__form .wpcf7-form textarea,
.sp-contact__form .wpcf7-form select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 7px;
    padding: 12px 16px;
    width: 100%;
    font-size: 0.95rem;
    transition: border-color var(--sp-transition), background var(--sp-transition);
}
.sp-contact__form .wpcf7-form input:not([type="submit"])::placeholder,
.sp-contact__form .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.sp-contact__form .wpcf7-form input:not([type="submit"]):focus,
.sp-contact__form .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--sp-orange);
    background: rgba(255, 255, 255, 0.12);
}

.sp-contact__form .wpcf7-form input[type="submit"] {
    background: var(--sp-orange);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background var(--sp-transition);
    letter-spacing: 0.02em;
}
.sp-contact__form .wpcf7-form input[type="submit"]:hover {
    background: var(--sp-orange-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .sp-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-gallery__grid .sp-gallery__item:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .sp-hero { min-height: 75vh; }
    .sp-hero__body { padding-bottom: 48px; }

    .sp-story-block__label { padding: 0 0 16px 0; gap: 14px; }
    .sp-section-num { font-size: 2.2rem; }

    .sp-cta-mid__card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .sp-cta-mid__btn {
        width: 100%;
        justify-content: center;
    }

    .sp-gallery__grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .sp-gallery__grid .sp-gallery__item:first-child {
        grid-column: span 1;
    }

    .sp-related__grid { grid-template-columns: 1fr; }
    .sp-related__header { flex-direction: column; align-items: flex-start; gap: 8px; }

    .sp-contact { padding: 64px 0; }
    .sp-contact__form { padding: 24px; }

    .sp-float-cta { bottom: 16px; right: 16px; padding: 11px 18px; font-size: 0.82rem; }
    .sp-float-cta span { display: none; }
    .sp-float-cta i { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .sp-hero__title { font-size: 1.7rem; }
    .sp-hero__cta { width: 100%; justify-content: center; }
    .sp-section { padding: 48px 0; }
}

/* ============================================================
   HIGHLIGHTS — icono/SVG + título + descripción
   ============================================================ */
.sp-highlights {
    padding: 48px 0 56px;
    background: var(--sp-bg);
    border-top: 1px solid var(--sp-border);
}

.sp-highlights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.sp-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    padding: 20px;
    border: 1px solid var(--sp-border);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
}
.sp-highlight-item:hover {
    box-shadow: var(--sp-shadow);
    transform: translateY(-3px);
}

.sp-highlight-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--sp-orange-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sp-orange);
    font-size: 1.2rem;
}

.sp-highlight-item__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sp-highlight-item__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sp-highlight-item__text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sp-navy);
    line-height: 1.3;
}

.sp-highlight-item__text span {
    font-size: 0.82rem;
    color: var(--sp-muted);
    line-height: 1.5;
}

/* ============================================================
   SECCIONES DINÁMICAS — fondos alternos + títulos numerados
   ============================================================ */
.sp-section--dinamica {
    padding: 72px 0;
}

.sp-section--odd  { background: var(--sp-white); }
.sp-section--even { background: var(--sp-bg); }

/* Label: número + título grandes */
.sp-story-block__label {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 0 0 20px 0;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--sp-border);
    background: none !important;
}

.sp-section-num {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--sp-border);
    letter-spacing: -0.04em;
    flex-shrink: 0;
    user-select: none;
}

.sp-story-block__label h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0;
    line-height: 1.2;
}

/* Color del número y línea según variante */
.sp-story-block__label--navy   { border-bottom-color: var(--sp-navy); }
.sp-story-block__label--navy   .sp-section-num { color: rgba(0, 61, 82, 0.15); }
.sp-story-block__label--orange { border-bottom-color: var(--sp-orange); }
.sp-story-block__label--orange .sp-section-num { color: rgba(230, 126, 34, 0.20); }
.sp-story-block__label--orange h2              { color: var(--sp-orange-dark); }
.sp-story-block__label--teal   { border-bottom-color: #00838f; }
.sp-story-block__label--teal   .sp-section-num { color: rgba(0, 131, 143, 0.18); }
.sp-story-block__label--teal   h2              { color: #00838f; }

/* ===== ÍTEMS CON IMAGEN/ÍCONO + DESCRIPCIÓN ===== */
.sp-section-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.sp-section-item:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 540px) {
    .sp-section-items {
        grid-template-columns: 1fr;
    }
}

.sp-section-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 20px;
    overflow: hidden;
    transition: box-shadow var(--sp-transition);
}

.sp-section-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-section-item:hover {
    box-shadow: 0 4px 16px rgba(0, 61, 82, 0.10);
}

.sp-section-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--sp-orange-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sp-orange);
    font-size: 1.1rem;
}

.sp-section-item__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sp-section-item__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sp-navy);
    line-height: 1.4;
}

.sp-post-title { background: var(--sp-bg); padding: 48px 0 0; }

.sp-title-main {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #111;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.sp-section-item__desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--sp-muted);
    line-height: 1.6;
}

.sp-section-item__foto {
    margin: 4px -20px -20px;
    border-radius: 0 0 var(--sp-radius) var(--sp-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.sp-section-item__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sp-section-item--has-foto:hover .sp-section-item__foto img {
    transform: scale(1.04);
}


/* ============================================================
   RESPONSIVE — ajustes adicionales
   ============================================================ */
@media (max-width: 768px) {
    .sp-hero { min-height: 50vh; }

    .sp-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sp-highlight-item { padding: 16px; gap: 10px; }
}

@media (max-width: 480px) {
    .sp-hero { min-height: 45vh; }
    .sp-highlights__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 3px solid var(--sp-orange);
    outline-offset: 2px;
}
