/* =============================================================================
   HOME — variables de página y layout general
   ============================================================================= */
.lc-home {
    font-family: var(--font-body);
    color: var(--blue-900);
    background: var(--cream);
}
.lc-home * { box-sizing: border-box; }
.lc-home .lc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.lc-home h1, .lc-home h2, .lc-home h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    margin: 0;
}

/* ---------- HERO con carrusel de imágenes ---------- */
.lc-hero-innovative {
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 40%);
}

.lc-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.lc-hero-copy {
    position: relative;
    z-index: 2;
}

.lc-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 5px 14px 5px 9px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.lc-pulse-dot {
    position: relative;
    width: 10px;
    height: 10px;
    background-color: var(--blue-600);
    border-radius: 50%;
}

.lc-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: var(--blue-400);
    opacity: 0.7;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.lc-badge-live span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-700);
    letter-spacing: 0.3px;
}

.lc-hero-innovative h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--blue-900);
}

.lc-highlight-text {
    position: relative;
    display: inline-block;
    color: var(--blue-600);
    font-style: italic;
    font-weight: 400;
}

.lc-highlight-text svg {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    fill: none;
    stroke: var(--blue-400);
    stroke-width: 3;
    stroke-linecap: round;
}

.lc-hero-innovative p.lc-lead {
    margin: 16px 0 24px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #475569;
    max-width: 500px;
}

.lc-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-600);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary-glow:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.btn-secondary-clean {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: var(--blue-900);
    border: 1.5px solid var(--line);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-clean:hover {
    background: var(--paper);
    border-color: var(--blue-600);
    color: var(--blue-700);
    transform: translateY(-2px);
}

.lc-hero-features {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.lc-feature-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-700);
}

.lc-feature-item svg {
    width: 17px;
    height: 17px;
    stroke: var(--blue-600);
}

/* Columna visual: carrusel de imágenes en el hero */
.lc-hero-visual-bento {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lc-blob-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--blue-300);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lc-hero-carousel {
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.lc-hero-carousel-frame {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: var(--paper);
    padding: 8px;
    box-shadow: 0 24px 50px -12px rgba(15, 39, 68, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.lc-hero-slides {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 22px;
    overflow: hidden;
}

.lc-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 0;
}

.lc-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.lc-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.lc-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--blue-300);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease;
}

/* Ocultar los últimos dos puntos del carrusel */
.lc-hero-dot:nth-last-child(-n+2) {
    display: none;
}

.lc-hero-dot.is-active {
    background: var(--blue-600);
    transform: scale(1.25);
}

.lc-hero-dot:hover {
    background: var(--blue-400);
}

/* Glass cards flotantes (sobre el carrusel) */
.lc-glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 16px 32px -8px rgba(15, 39, 68, 0.12);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.lc-card-price {
    top: 6%;
    left: -24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-price-badge {
    background: var(--blue-600);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 15px -3px rgba(37, 99, 235, 0.4);
}

.lc-price-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--blue-900);
}

.lc-price-info span {
    font-size: 0.75rem;
    color: #64748b;
}

.lc-card-access {
    bottom: 5%;
    right: -16px;
    max-width: 200px;
    animation-delay: -3s;
}

.lc-access-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.lc-access-icon {
    width: 26px;
    height: 26px;
    background: var(--blue-100);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-access-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--blue-700);
}

.lc-card-access strong {
    font-size: 0.85rem;
    color: var(--blue-900);
}

.lc-card-access p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

/* ---------- SERVICES carousel ---------- */
.lc-services {
    padding: 56px 0 32px; /* bottom reducido para quitar espacio en blanco */
}

.lc-section-head {
    max-width: 620px;
    margin-bottom: 28px;
}
.lc-section-head h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 600;
    color: var(--blue-900);
}
.lc-section-head p {
    margin-top: 10px;
    font-size: 1rem;
    color: #475569;
}

.lc-carousel { position: relative; }
.lc-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 20px;
    scrollbar-width: none;
}
.lc-carousel-track::-webkit-scrollbar { display: none; }

.lc-home .lc-carousel-track .lc-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px;
    min-height: 380px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-500);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.06);
}
.lc-home .lc-carousel-track .lc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px -10px rgba(15, 39, 68, .2);
}

.lc-home .lc-card-media {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--blue-50);
    flex-shrink: 0;
}
.lc-home .lc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.lc-home .lc-carousel-track .lc-card:hover .lc-card-media img { transform: scale(1.05); }

.lc-home .lc-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}
.lc-home .lc-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--blue-900);
    text-align: left;
}
.lc-home .lc-card-body p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    flex-grow: 1;
    text-align: justify;
    hyphens: auto;
}

.lc-home .lc-card a.lc-card-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 8px 16px;
    background-color: var(--blue-600);
    color: #ffffff;
    border: 1.5px solid var(--blue-600);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all .15s ease;
}
.lc-home .lc-card a.lc-card-btn:hover {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Última card CTA */
.lc-home .lc-carousel-track .lc-card.lc-card-cta {
    background: var(--blue-900);
    border: 1px solid var(--blue-800, #1e3a5f);
    border-top: 4px solid var(--blue-400);
    min-height: 380px;
}
.lc-home .lc-card-cta .lc-card-body {
    justify-content: center;
    padding: 24px 22px;
}
.lc-home .lc-card-cta h3,
.lc-home .lc-card-cta p {
    color: #ffffff !important;
    text-align: left;
}
.lc-home .lc-card-cta p {
    opacity: 0.9;
    text-align: justify;
}
.lc-home .lc-card-cta .btn-primary {
    margin-top: 16px;
    align-self: flex-start;
    background-color: var(--blue-500);
    color: #ffffff !important;
    border: none;
    padding: 10px 18px;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
.lc-home .lc-card-cta .btn-primary:hover {
    background-color: var(--blue-400);
    color: #ffffff !important;
}

.lc-carousel-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: -4px;
}
.lc-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
}
.lc-nav-btn:hover { background: var(--blue-50); border-color: var(--blue-600); }
.lc-nav-btn:disabled { opacity: .35; cursor: default; }
.lc-nav-btn svg { width: 18px; height: 18px; stroke: var(--blue-900); }

/* Featured */
.lc-featured {
    padding: 36px 0 52px; /* top reducido para quitar espacio en blanco debajo del carrusel */
    background: var(--blue-50);
}
.lc-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.lc-featured-grid .card-compact {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--blue-900);
}

/* Final CTA */
.lc-final-cta {
    padding: 56px 0;
    text-align: center;
}
.lc-final-cta h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--blue-900);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .lc-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lc-hero-copy { text-align: center; }
    .lc-hero-innovative p.lc-lead { margin-left: auto; margin-right: auto; }
    .lc-hero-actions { justify-content: center; }
    .lc-hero-features { justify-content: center; }
    .lc-hero-visual-bento { margin-top: 6px; }
    .lc-card-price { left: 0; }
    .lc-card-access { right: 0; }
}

@media (max-width: 640px) {
    .lc-hero-innovative {
        padding: 40px 0 48px;
    }
    .lc-card-price {
        left: 0;
        top: -10px;
        padding: 10px 12px;
        transform: scale(0.9);
        transform-origin: top left;
    }
    .lc-card-access {
        right: 0;
        bottom: 48px; /* evita que tape los puntos */
        max-width: 170px;
        padding: 10px 12px;
        transform: scale(0.9);
        transform-origin: bottom right;
    }
    .lc-hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        padding-top: 14px;
    }
    .lc-featured-grid { grid-template-columns: 1fr; }
    .lc-hero-slides { height: 320px; }

    .lc-hero-dots {
        margin-top: 10px;
        z-index: 5;
        position: relative;
    }

    .lc-services {
        padding: 40px 0 24px; /* bottom reducido en móvil */
    }
    .lc-featured {
        padding: 28px 0 40px;
    }
    .lc-final-cta {
        padding: 40px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-glass-card { animation: none; }
    .lc-pulse-dot::after { animation: none; }
    .lc-hero-slide { transition: none; }
}