/* ============================================================
   landing.css
   Estilos de la página de inicio (sitio público / marketing)
   de CloudCam.
   ============================================================ */

:root {
    --lc-primary: #4f46e5;
    --lc-primary-dark: #0d4c94;
    --lc-accent: #46e569;
    --lc-dark: #0f172a;
    --ink: #1b2a30;
    --petrol: #14545c;
    --clay: #d97350;
    --sand: #f0e9dd;
    --paper: #fbf9f5;
    --display: "Fraunces", Georgia, serif;
    --body: "Inter", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

/* Navbar */
.lc-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
}

.lc-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
}

.lc-navbar .nav-link {
    color: rgba(248, 250, 252, .8);
    font-weight: 500;
}

.lc-navbar .nav-link:hover {
    color: #fff;
}

.lc-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-radius: 50rem;
}

/* Hero */
.lc-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(70, 229, 105, .25), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(79, 70, 229, .35), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    color: #f8fafc;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.lc-hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

.lc-hero .lead {
    color: rgba(248, 250, 252, .8);
}

.lc-badge-pill {
    background: rgba(70, 229, 105, .12);
    border: 1px solid rgba(70, 229, 105, .35);
    color: #bbf7d0;
    font-weight: 600;
}

.lc-hero-frame {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    padding: .75rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

.lc-hero-frame video {
    width: 100%;
    border-radius: 1rem;
    display: block;
}

/* Secciones */
.lc-section {
    padding: 5rem 0;
}

.lc-section-title {
    font-weight: 800;
    margin-bottom: .75rem;
}

.lc-section-subtitle {
    color: #64748b;
    max-width: 640px;
}

.lc-section-light {
    background: #ffffff;
}

.lc-section-muted {
    background: #f1f5f9;
}

.lc-section-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
}

.lc-section-dark .lc-section-subtitle {
    color: rgba(248, 250, 252, .7);
}

/* Tarjetas de servicios */
.lc-feature-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.lc-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(15, 23, 42, .25);
    border-color: var(--lc-primary);
}

.lc-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--lc-accent), var(--lc-primary-dark));
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Clientes */
.lc-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--lc-primary);
    background: rgba(79, 70, 229, .08);
    border-radius: 50rem;
    padding: .35rem 1rem;
    margin-bottom: .75rem;
}

/* Carrusel de clientes (casos de uso) */
.carrusel {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(27, 42, 48, .45);
    background: var(--ink);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.slide.activa {
    opacity: 1;
    pointer-events: auto;
}

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

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 20, 24, .75) 0%, rgba(11, 20, 24, 0) 55%);
}

.slide-watermark {
    position: absolute;
    top: clamp(12px, 2vw, 20px);
    left: clamp(12px, 2vw, 20px);
    z-index: 2;
    width: clamp(36px, 6vw, 56px);
    height: clamp(36px, 6vw, 56px);
    pointer-events: none;
}

.slide .watermark-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .85;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
    display: block;
}

.leyenda {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(20px, 4vw, 40px);
    color: #fff;
    max-width: 620px;
}

.eyebrow {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 8px;
}

.leyenda h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.05;
    margin-bottom: 6px;
}

.leyenda p {
    font-size: clamp(.85rem, 2vw, 1rem);
    color: rgba(255, 255, 255, .85);
}

/* Flechas */
.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(251, 249, 245, .9);
    color: var(--ink);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}

.flecha:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.flecha:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 2px;
}

.flecha.prev {
    left: 16px;
}

.flecha.next {
    right: 16px;
}

@media (max-width: 575.98px) {
    .flecha {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: .75rem;
        transform: none;
    }

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

/* Puntos */
.puntos {
    position: absolute;
    bottom: 18px;
    right: 24px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}

.punto.activa {
    background: #fff;
    transform: scale(1.3);
}

.punto:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

/* Barra de progreso (autoplay) */
.progreso {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    height: 4px;
    width: 100%;
    background: var(--clay);
    transform-origin: left;
    transform: scaleX(0);
}

.progreso.corriendo {
    animation: llenar 5s linear forwards;
}

@keyframes llenar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }

    .progreso.corriendo {
        animation: none;
    }
}

/* Banner CTA */
.lc-cta-banner {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0d4c94 100%);
    color: #fff;
    text-align: center;
}

.lc-cta-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(70, 229, 105, .18), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(79, 70, 229, .35), transparent 40%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 40px);
}

.lc-cta-content {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
    max-width: 720px;
}

.lc-cta-icon {
    font-size: 3rem;
    color: var(--lc-accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.lc-cta-content .lc-section-subtitle {
    color: rgba(248, 250, 252, .85);
}

/* FAQ */
.lc-faq.accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: 1rem;
    --bs-accordion-active-bg: rgba(79, 70, 229, .06);
    --bs-accordion-active-color: var(--lc-primary);
}

.lc-faq .accordion-item {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 .5rem 1.5rem -1rem rgba(15, 23, 42, .12);
    transition: box-shadow .25s ease;
}

.lc-faq .accordion-item:last-child {
    margin-bottom: 0;
}

.lc-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    box-shadow: 0 1rem 2.5rem -1rem rgba(79, 70, 229, .25);
}

.lc-faq .accordion-button {
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    color: var(--lc-dark);
}

.lc-faq .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.lc-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.lc-faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    background: linear-gradient(135deg, var(--lc-accent), var(--lc-primary-dark));
    color: #fff;
    font-size: 1.2rem;
    transition: transform .25s ease;
}

.lc-faq .accordion-button:not(.collapsed) .lc-faq-icon {
    background: linear-gradient(135deg, var(--lc-primary), var(--lc-primary-dark));
    transform: scale(1.05);
}

.lc-faq .accordion-body {
    padding: 0 1.5rem 1.5rem calc(1.5rem + 2.75rem + 1rem);
    color: #64748b;
}

@media (max-width: 575.98px) {
    .lc-faq .accordion-button {
        padding: 1rem 1.1rem;
        gap: .75rem;
    }

    .lc-faq-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    .lc-faq .accordion-body {
        padding: 0 1.1rem 1.25rem 1.1rem;
    }
}

/* Contacto */
.lc-contact-card {
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: transform .25s ease;
}

.lc-contact-card:hover {
    transform: translateY(-6px);
    color: #fff;
}

.lc-contact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.lc-contact-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.lc-contact-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.lc-contact-email {
    background: linear-gradient(135deg, #4f46e5, #0d4c94);
}

/* Tarjetas de acceso (portal / administración) */
.lc-access-card {
    border-radius: 1.25rem;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    transition: transform .25s ease, border-color .25s ease;
}

.lc-access-card:hover {
    transform: translateY(-4px);
    border-color: var(--lc-accent);
}

/* Footer */
.lc-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.lc-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.lc-footer a:hover {
    color: #fff;
}

/* Animaciones al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: .08s;
}

.reveal-delay-2 {
    transition-delay: .16s;
}

.reveal-delay-3 {
    transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Botones flotantes (WhatsApp y volver arriba) */
.lc-float-btn {
    position: fixed;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    text-decoration: none;
    box-shadow: 0 .75rem 1.5rem -0.5rem rgba(15, 23, 42, .45);
    z-index: 1030;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}

.lc-float-btn:hover {
    transform: translateY(-3px);
}

.lc-float-whatsapp {
    bottom: 1.5rem;
    background: #25d366;
    color: #fff;
}

.lc-back-to-top {
    bottom: 5.5rem;
    background: var(--lc-primary);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lc-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .lc-hero {
        padding-top: 6rem;
        text-align: center;
    }

    .lc-float-btn {
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .lc-float-whatsapp {
        bottom: 1rem;
    }

    .lc-back-to-top {
        bottom: 4.75rem;
    }
}
