/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.lg-ct-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lg-teal) 0%, var(--lg-teal-dark) 55%, #07434A 100%);
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(4.5rem, 8vw, 6rem);
}

.lg-ct-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 78%);
    pointer-events: none;
}

.lg-ct-hero .lg-eyebrow {
    color: rgba(255, 255, 255, .85);
}

.lg-ct-hero .lg-eyebrow::before {
    background: #fff;
    opacity: .6;
}

.lg-ct-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.lg-ct-hero h1 {
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
    font-size: clamp(2rem, 5vw, 3.1rem);
    margin-bottom: .85rem;
    text-wrap: balance;
}

.lg-ct-hero p {
    color: rgba(255, 255, 255, .85);
    font-size: clamp(.95rem, 1.6vw, 1.08rem);
    max-width: 54ch;
    margin: 0 auto;
    line-height: 1.6;
}

.lg-ct-routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .25;
}

.lg-ct-routes path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-dasharray: 6 10;
    animation: lgDash 24s linear infinite;
}

.lg-ct-routes path:nth-child(2) {
    animation-duration: 32s;
    animation-direction: reverse;
}

/* ------------------------------------------------------------
   BLOQUE PRINCIPAL (KAM + formulario), montado sobre el hero
   ------------------------------------------------------------ */

.lg-ct-main {
    position: relative;
    z-index: 3;
    margin-top: clamp(-4rem, -6vw, -3rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.lg-ct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .lg-ct-grid {
        grid-template-columns: 1fr;
    }
}

.lg-ct-card {
    box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .4);
}

/* Marca el bloque del KAM como el protagonista de la página */
.lg-ct-card-primary {
    border-color: color-mix(in srgb, var(--lg-teal) 35%, transparent);
    position: relative;
    overflow: hidden;
}

.lg-ct-card-primary::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lg-teal), var(--lg-magenta));
}

/* ------------------------------------------------------------
   KAM: acciones directas (tel / mailto)
   ------------------------------------------------------------ */

a.lg-kam-field {
    display: block;
    text-decoration: none;
    transition: border-color .2s var(--lg-ease-out), background-color .2s var(--lg-ease-out), transform .2s var(--lg-ease-out);
}

a.lg-kam-field:hover {
    border-color: var(--lg-teal);
    background: var(--lg-teal-light);
    transform: translateY(-2px);
}

a.lg-kam-field .lg-kam-field-go {
    float: right;
    color: var(--lg-ink-soft);
    font-size: .7rem;
    opacity: 0;
    transition: opacity .2s var(--lg-ease-out);
}

a.lg-kam-field:hover .lg-kam-field-go {
    opacity: 1;
    color: var(--lg-teal);
}

/* Estado vacío mientras no se elige empresa */
.lg-ct-kam-empty {
    margin-top: 1.25rem;
    border-top: 1px dashed var(--lg-mist);
    padding-top: 1.75rem;
    text-align: center;
}

.lg-ct-kam-empty svg {
    width: 130px;
    height: auto;
    margin: 0 auto .85rem;
    display: block;
}

.lg-ct-kam-empty p {
    color: var(--lg-ink-soft);
    font-size: .86rem;
    margin: 0;
    max-width: 34ch;
    margin-inline: auto;
}

.lg-ct-kam-empty .lg-ct-empty-dot {
    animation: lgFloat 3s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

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

/* ------------------------------------------------------------
   Enlace compartible (para account managers)
   ------------------------------------------------------------ */

.lg-ct-share {
    margin-top: 1.1rem;
    border-top: 1px dashed var(--lg-mist);
    padding-top: 1.1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.lg-ct-share-label {
    font-family: var(--lg-font-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lg-ink-soft);
}

.lg-ct-share-url {
    flex: 1;
    min-width: 0;
    font-family: var(--lg-font-mono);
    font-size: .72rem;
    color: var(--lg-teal);
    background: var(--lg-paper);
    border: 1px solid var(--lg-mist);
    border-radius: 8px;
    padding: .4rem .6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-ct-share-btn {
    flex-shrink: 0;
    padding: .4rem .8rem;
    font-size: .78rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--lg-mist);
    background: transparent;
    color: var(--lg-ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: border-color .2s var(--lg-ease-out), color .2s var(--lg-ease-out);
}

.lg-ct-share-btn:hover {
    border-color: var(--lg-teal);
    color: var(--lg-teal);
}

.lg-ct-share-btn.is-copied {
    background: var(--lg-teal);
    border-color: var(--lg-teal);
    color: #fff;
}

/* ------------------------------------------------------------
   Accesibilidad
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .lg-ct-routes path,
    .lg-ct-kam-empty .lg-ct-empty-dot {
        animation: none;
    }

    a.lg-kam-field:hover {
        transform: none;
    }
}

@media (hover: none) {

    a.lg-kam-field:hover {
        transform: none;
    }

    a.lg-kam-field .lg-kam-field-go {
        opacity: 1;
    }
}

/* ------------------------------------------------------------
   IMPRESIÓN
   ------------------------------------------------------------ */

@media print {

    .lg-nav,
    .lg-footer,
    .lg-ct-routes,
    .lg-ct-share,
    .lg-form-actions {
        display: none !important;
    }

    .lg-ct-hero {
        background: none !important;
        color: #000 !important;
        padding: 1.5rem 0 !important;
    }

    .lg-ct-hero::before {
        display: none !important;
    }

    .lg-ct-hero h1,
    .lg-ct-hero p,
    .lg-ct-hero .lg-eyebrow {
        color: #000 !important;
    }

    .lg-ct-main {
        margin-top: 0;
    }

    .lg-ct-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
