:root {
    --bg1: #0b0624;
    --bg2: #22074a;
    --primary: #8a4dff;
    --secondary: #5b9aff;
    --glass: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .08);
    --text: #eaeaf5;
    --muted: rgba(234, 234, 245, .7);
    --radius: 16px;
    --nav-height: 72px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, Segoe UI, Roboto, Arial;
    color: var(--text);
    background:
        radial-gradient(800px 400px at 10% 10%, rgba(138, 77, 255, .16), transparent 40%),
        radial-gradient(700px 400px at 90% 80%, rgba(91, 154, 255, .12), transparent 40%),
        linear-gradient(180deg, var(--bg1), var(--bg2));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* glass base */
.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(6, 4, 20, .5);
}

/* NAVBAR (hidden until scroll) */
.navbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: -100px;
    /* width: 100%; */
    width: 1012px;
    max-width: 1200px;
    /* padding: 10px; */
    z-index: 120;
    transition: top .35s ease, background .35s ease, box-shadow .35s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;


    /*otros*/
  backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.navbar.visible {
    top: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    box-shadow: 0 12px 40px rgba(10, 6, 30, .45);
    border-radius: 25px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}



/* .logo img{
    width: 140px;
    height: 40px;
    object-fit: contain;
    position: relative;
    border-radius: 25px;
    display: block;
} */
.nav-links {
    display: flex;
    gap: 18px;
    align-items: center
}

.nav-links a {
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--muted)
}

.nav-links a.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(91, 154, 255, .12)
}

/* HERO */
header {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 24px
}

.hero {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 36px;
    align-items: center
}

.hero-left h1 {
    font-size: 48px;
    line-height: 1.05;
    margin: 0
}

.hero-left p {
    color: var(--muted);
    margin-top: 14px;
    font-size: 18px
}

.hero-cta {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    align-items: center
}


.btn {
    border: 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text)
}

/* mockup card */
.mockup {
    display: flex;
    justify-content: center;
    align-items: center
}

.mockup-card {
    width: 320px;
    height: 560px;
    padding: 18px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.mockup-card .hero-img {
    width: 100%;
    height: 340px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.mockup-card .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.mockup-card .mini {
    display: flex;
    gap: 8px;
    align-items: center
}

/* SECTIONS */
section {
    padding: 84px 0
}

section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 36px
}

/* SERVICES with demo overlay */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px
}

.service-card {
    position: relative;
    overflow: hidden
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 12px
}

.service-card .info {
    padding: 18px
}

.service-card .info h3 {
    margin: 6px 0
}

.service-card .demo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, .45), rgba(2, 6, 23, .25));
    opacity: 0;
    transition: opacity .28s;
}

.service-card:hover .demo-overlay {
    opacity: 1
}

.demo-button {
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer
}

/* PORTFOLIO SLIDER */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px
}

.slides {
    display: flex;
    transition: transform .5s ease
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: center
}

.slide .thumb {
    width: 48%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden
}

.slide .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.slide .meta {
    flex: 1;
    color: var(--muted)
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%)
}

.ctrl {
    background: rgba(0, 0, 0, .35);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    color: white;
    cursor: pointer
}

/* PLANS (más detallados) */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px
}

.plan {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 340px
}

.plan h3 {
    margin: 0
}

.plan .price {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px
}

.plan .meta {
    color: var(--muted);
    font-size: 14px
}

.plan ul {
    margin: 12px 0 0;
    padding: 0 0 0 18px;
    color: var(--muted)
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 13px
}

/* TESTIMONIOS */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.t-item {
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.t-item img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover
}

/* FAQ + formulario */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: start
}

.faq-item {
    padding: 14px;
    border-radius: 12px;
    cursor: pointer
}

.faq-item p {
    margin: 8px 0 0;
    color: var(--muted);
    display: none
}

.faq-item.active p {
    display: block
}

.contact-form {
    padding: 18px;
    border-radius: 12px
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .04);
    background: transparent;
    color: var(--text);
    margin-bottom: 10px
}

/* FOOTER */
footer {
    padding: 36px 0;
    text-align: center;
    color: var(--muted)
}

/* FLOAT BUTTONS */
.float-group {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99
}

.float-top {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(9, 7, 30, .45)
}

.whatsapp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45)
}

/* responsive */
@media (max-width:1000px) {
    .hero {
        grid-template-columns: 1fr
    }

    .faq-grid {
        grid-template-columns: 1fr
    }

    .slide {
        flex-direction: column
    }

    .slide .thumb {
        width: 100%;
        height: 240px
    }

    .mockup-card {
        display: none
    }
}


/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    background: var(--bg1);
}

::-webkit-scrollbar-thumb {
    background: var(--glass);
    background: var(--secondary);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}





/*test*/

 /* ================= HERO ================= */
    header#hero{padding-top:20px;min-height:86vh;display:flex;align-items:center}
    .hero{display:grid;grid-template-columns:1fr 460px;gap:36px;align-items:center}
    .hero-left h1{font-size:46px;margin:0;line-height:1.03}
    .hero-left p{color:var(--muted);margin:14px 0;font-size:16px}
    .hero-cta{display:flex;gap:12px;align-items:center;margin-top:18px}

    /* mockup */
    .mockup{display:flex;align-items:center;justify-content:center}
    .mockup-card{width:420px;height:520px;padding:18px;border-radius:20px;display:flex;flex-direction:column;justify-content:space-between}
    .mockup-img{width:100%;height:340px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.03)}
    .mockup-img img{width:100%;height:100%;object-fit:cover;display:block}

    /* ================= FEATURES / WHY (structure like reference) ================= */
    .features{display:flex;gap:18px;align-items:stretch;margin-top:32px}
    .feature-item{flex:1;padding:18px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);border:1px solid rgba(255,255,255,.03)}
    .feature-item h4{margin:8px 0 4px;font-size:16px}
    .feature-item p{color:var(--muted);font-size:14px;margin:0}


    
    /* ================= PLANS: grid + comparison row (in reference style) ================= */
    .plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
    .plan{padding:20px;border-radius:12px;display:flex;flex-direction:column;gap:10px;min-height:320px}
    .plan h3{margin:0}
    .plan .price{font-size:22px;font-weight:700}
    .plan ul{margin:10px 0 0;padding-left:16px;color:var(--muted)}
    .compare{margin-top:18px;background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);padding:14px;border-radius:12px;border:1px solid rgba(255,255,255,.03)}
    .compare table{width:100%;border-collapse:collapse;color:var(--muted);font-size:14px}
    .compare th, .compare td{padding:10px;border-bottom:1px dashed rgba(255,255,255,.03);text-align:left}
    .compare th{color:var(--text);font-weight:700}



      /* ================= animacion de img ================= */
.mockup img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.mockup img:hover {
    transform: scale(1.05);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}