/** Antecit derechos reservados
 * Descripción del desarrollo: Estilos del index (landing) sobre el tema Able Pro (Tema.css, TemaPreset.css, Landing.css) con preset-8 */

:root {
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --esv-verde: #25d366;
    --esv-verde-oscuro: #128c7e;
    --esv-tarjeta: #ffffff;
    --esv-borde: #e7eaee;
}

[data-pc-theme=dark] {
    --esv-tarjeta: #1b232d;
    --esv-borde: #303f50;
}

body.landing-page {
    font-family: var(--bs-font-sans-serif);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.esv-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
}

.navbar .nav-link {
    color: var(--bs-body-color);
}

[data-pc-theme=dark] .navbar-toggler-icon {
    filter: invert(1);
}

.esv-btn-tema {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bs-body-color);
}

.esv-btn-tema:hover {
    background: var(--pc-active-background);
}

/* Hero */
header.esv-hero {
    padding: 140px 0 160px;
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(44, 168, 127, .18), transparent 70%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(37, 211, 102, .12), transparent 70%),
        var(--bs-body-bg);
}

header.esv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(91, 107, 121, .18) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
    pointer-events: none;
}

header.esv-hero .container {
    position: relative;
    z-index: 5;
}

.esv-gradiente {
    --color-one: #2ca87f;
    --color-two: #25d366;
    background-image: linear-gradient(90deg, #2ca87f, #25d366, #128c7e, #2ca87f);
}

.esv-mockup {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.esv-mockup > .card {
    border-radius: 16px;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform .4s ease;
}

.esv-mockup:hover > .card {
    transform: none;
}

.esv-punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.esv-fila:last-of-type {
    border-bottom: 0 !important;
}

.min-w-0 {
    min-width: 0;
}

.esv-burbuja {
    position: absolute;
    left: -40px;
    bottom: -40px;
    width: 260px;
    border-radius: 14px;
    animation: esv-flotar 5s ease-in-out infinite;
}

.esv-mensaje {
    background: #dcf8c6;
    color: #1d2630;
    padding: 8px 12px;
    border-radius: 10px 10px 10px 2px;
}

@keyframes esv-flotar {
    50% {
        transform: translateY(-10px);
    }
}

.esv-tecnologias {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 0;
    border-top: 1px solid var(--esv-borde);
    background: rgba(var(--bs-body-bg-rgb), .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 5;
}

.esv-tecnologias .list-inline-item {
    margin: 4px 18px;
    font-weight: 500;
    color: var(--bs-secondary-color, #5b6b79);
}

.esv-tecnologias .list-inline-item i {
    color: var(--bs-primary);
}

/* Animación de entrada */
.esv-entrada {
    opacity: 0;
    transform: translateY(18px);
    animation: esv-aparecer .7s ease forwards;
}

.esv-entrada:nth-child(2) { animation-delay: .1s; }
.esv-entrada:nth-child(3) { animation-delay: .2s; }
.esv-entrada:nth-child(4) { animation-delay: .3s; }
.esv-entrada:nth-child(5) { animation-delay: .4s; }

@keyframes esv-aparecer {
    to {
        opacity: 1;
        transform: none;
    }
}

.esv-revelar {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.esv-revelar.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .esv-entrada,
    .esv-revelar {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .esv-burbuja {
        animation: none;
    }
}

/* Servicios */
.esv-servicio {
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.esv-servicio:hover {
    transform: translateY(-4px);
    border-color: rgba(44, 168, 127, .45);
    box-shadow: 0 14px 30px rgba(27, 46, 94, .08);
}

/* Cómo funciona */
.esv-pasos {
    position: relative;
}

@media (min-width: 992px) {
    .esv-pasos::before {
        content: '';
        position: absolute;
        top: 36px;
        left: 12.5%;
        right: 12.5%;
        border-top: 2px dashed var(--esv-borde);
    }
}

.esv-paso-icono {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--bs-primary);
    background: var(--esv-tarjeta);
    border: 2px solid rgba(44, 168, 127, .35);
    box-shadow: 0 0 0 8px rgba(44, 168, 127, .08);
}

.esv-paso-numero {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Plataforma */
.esv-lista li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
}

.esv-lista li i {
    color: var(--bs-primary);
}

.esv-telefono {
    max-width: 330px;
    border-radius: 32px;
    padding: 10px;
    background: #1d2630;
    box-shadow: 0 30px 60px rgba(27, 46, 94, .18);
}

.esv-telefono-barra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: #fff;
    background: var(--esv-verde-oscuro);
    border-radius: 24px 24px 0 0;
}

.esv-telefono-sub {
    font-size: 11px;
    opacity: .8;
}

.esv-telefono-chat {
    min-height: 300px;
    padding: 20px 14px;
    border-radius: 0 0 24px 24px;
    background-color: #efe7dd;
    background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
    background-size: 14px 14px;
}

.esv-globo {
    position: relative;
    max-width: 92%;
    padding: 10px 12px 18px;
    font-size: 14px;
    color: #1d2630;
    background: #fff;
    border-radius: 2px 12px 12px 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}

.esv-globo-hora {
    position: absolute;
    right: 10px;
    bottom: 4px;
    font-size: 10px;
    color: #8696a0;
}

.esv-globo-boton {
    max-width: 92%;
    margin-top: 4px;
    padding: 9px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #0a7cff;
    background: #fff;
    border-radius: 10px;
}

/* Desarrolladores */
.esv-oscura {
    background:
        radial-gradient(ellipse 50% 60% at 90% 10%, rgba(44, 168, 127, .25), transparent 70%),
        #131920;
}

.esv-texto-claro {
    color: rgba(255, 255, 255, .65);
}

.esv-codigo {
    border-radius: 14px;
    overflow: hidden;
    background: #0b1016;
    border: 1px solid #263240;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.esv-codigo-barra {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 12px;
    color: #748892;
    border-bottom: 1px solid #263240;
}

.esv-codigo pre {
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #d6deeb;
    white-space: pre-wrap;
    word-break: break-word;
}

.esv-codigo code {
    color: inherit;
}

.esv-c-com { color: #637777; }
.esv-c-str { color: #addb67; }
.esv-c-key { color: #7fdbca; }

/* Preguntas */
#AccordionPreguntas .accordion-item {
    margin-bottom: 12px;
    border: 1px solid var(--esv-borde);
    border-radius: 12px;
    overflow: hidden;
}

#AccordionPreguntas .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background: rgba(44, 168, 127, .08);
    box-shadow: none;
}

.esv-cta {
    border-radius: 18px;
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(120deg, #128c7e, #2ca87f 60%, #25d366);
}

.esv-cta .btn-light {
    color: #128c7e;
    font-weight: 600;
}

/* Footer */
.esv-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--esv-borde);
    background: var(--esv-tarjeta);
}

.esv-footer-links li {
    margin-bottom: 8px;
}

.esv-footer-links a {
    color: var(--bs-secondary-color, #5b6b79);
    text-decoration: none;
}

.esv-footer-links a:hover {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    header.esv-hero {
        padding: 110px 0 190px;
    }

    .esv-mockup > .card {
        transform: none;
    }

    .esv-burbuja {
        left: 50%;
        bottom: -60px;
        transform: translateX(-50%);
        animation: none;
    }

    .esv-tecnologias .list-inline-item {
        margin: 4px 10px;
        font-size: 13px;
    }

    section {
        padding: 70px 0;
    }
}

/* CRM */
.esv-crm {
    border-radius: 16px;
}

.esv-aviso-crm {
    max-width: 860px;
    border-radius: 12px;
}
