/* ------------------ RESET ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

/* ------------------ NAV ------------------ */
.top-bar {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: flex-end;
    /* AHORA SIEMPRE A LA DERECHA */
    z-index: 50;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffffcc;
    text-decoration: none;
    transition: 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* Línea animada inferior */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #f7ff1f;
    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Estado activo */
.nav-link.active {
    color: #f7ff1f;
}

.nav-link.active::after {
    width: 100%;
}

/* ------------------ HERO LAYOUT ------------------ */
.page {
    min-height: 100vh;
    width: 100%;
}

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 1.25fr;
    min-height: 100vh;
    position: relative;
}

/* Fondo derecho curvo */
.right-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: radial-gradient(circle at 60% 40%, #000, #0a0a0a, #000);
    z-index: -1;
}

/* ------------------ LEFT SIDE ------------------ */
.left-bg {
    position: relative;
    overflow: hidden;
}

.left-bg {
    position: relative;
    background: #3b3b3b;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-text {
    position: absolute;
    left: 40px;
    top: 65%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.vertical-separator {
    display: inline-block;
    width: 90%;
    height: 2px;
    background: #fff;
    margin-left: 12px;
}

/* ------------------ DEVICE STACK (WEB + MOBILE) ------------------ */
.watch-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mockup WEB */
.web-frame {
    width: 340px;
    height: 230px;
    border-radius: 26px;
    background: #1a1a1a;
    border: 2px solid #111;
    position: absolute;
    left: -40px;
    /* MÁS CENTRADO Y CERCANO AL MÓVIL */
    top: -50px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 0;
}

.web-header {
    height: 32px;
    background: #111;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.web-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.web-body {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.web-line {
    height: 8px;
    border-radius: 10px;
    background: #2a2a2a;
}

.web-line-title {
    width: 55%;
}

.web-line-sub {
    width: 35%;
}

.web-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.web-card {
    height: 60px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid #262626;
}

/* ------------------ PHONE MOCKUP ------------------ */
.phone-frame {
    width: 270px;
    height: 520px;
    background: #0b0b0b;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
    border: 3px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.phone-notch {
    position: absolute;
    top: 16px;
    width: 110px;
    height: 26px;
    background: #111;
    border-radius: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 88%;
    height: 88%;
    background: #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    width: 65%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* ------------------ RIGHT SIDE ------------------ */
.right-bg {
    padding: 130px 80px 80px;
    color: #f5f5f5;
}

.product-title {
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 5px;
    color: #ffffffc0;
}

.product-name {
    margin-top: 10px;
    font-size: 36px;
    letter-spacing: 4px;
    font-weight: 600;
}

.divider-line {
    margin: 25px 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.product-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #e7e7e7;
    max-width: 560px;
}

/* Teléfono y web arrastrables */
.phone-frame,
.web-frame {
    cursor: grab;
}

.phone-frame.dragging,
.web-frame.dragging {
    cursor: grabbing;
}


/* ------------------ COLORS DOTS ------------------ */
.color-dots {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.dot-black {
    background: #000;
}

.dot-green {
    background: #7df24a;
}

.dot-yellow {
    background: #f7ff1f;
}

.dot-pink {
    background: #f6a9c1;
}

.dot-olive {
    background: #c7c470;
}

/* ------------------ CTA AREA ------------------ */
.price-row {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.price {
    font-size: 30px;
    font-weight: 700;
    color: #f7ff1f;
}

.buy-btn {
    display: flex;
    align-items: center;
    padding: 11px 25px;
    border-radius: 999px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    letter-spacing: 1px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.buy-btn-circle img {
    width: 60%;
}

/* ------------------ SERVICES GRID ------------------ */

.services-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    background: linear-gradient(135deg, #111111, #181818);
    border-radius: 18px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.6);
    border-color: #f7ff1f55;
    background: linear-gradient(135deg, #131313, #1e1e1e);
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-text {
    font-size: 14px;
    line-height: 1.5;
    color: #d7d7d7;
}

.services-cta-row {
    margin-top: 40px;
}

/* ------------------ CONTACT PAGE ------------------ */

.contact-wrapper {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info-card,
.contact-form-card {
    background: linear-gradient(135deg, #111111, #181818);
    border-radius: 18px;
    padding: 18px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
    flex: 1 1 260px;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-text {
    font-size: 14px;
    color: #d7d7d7;
    margin-bottom: 12px;
}

.contact-list {
    list-style: none;
    font-size: 14px;
    color: #e5e5e5;
    margin-bottom: 18px;
}

.contact-list li+li {
    margin-top: 6px;
}

.contact-label {
    font-weight: 600;
}

/* Botón WhatsApp */
.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.contact-whatsapp-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-whatsapp-circle img {
    width: 60%;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-field label {
    font-size: 13px;
    color: #f0f0f0;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    color: #f5f5f5;
    font-size: 14px;
    outline: none;
}

.contact-field textarea {
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #aaaaaa;
}

.contact-field select {
    cursor: pointer;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #f7ff1f;
}

.contact-submit-btn {
    margin-top: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #f7ff1f;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    align-self: flex-end;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6);
    background: #ffff4c;
}

/* ---------- PANELLES DINÁMICOS DE FONDO ---------- */

.right-bg {
    position: relative;
    /* IMPORTANTE */
    padding: 130px 80px 80px;
    color: #f5f5f5;
    overflow: hidden;
    /* que no se salgan los paneles */
}


.bg-panels {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* AHORA van detrás del contenido */
    pointer-events: none;
}

.panel {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    opacity: 0.85;
    transform: translate3d(0, 0, 0);
}

/* Distintas posiciones y tamaños base */
.panel-1 {
    width: 260px;
    height: 150px;
    top: 80px;
    right: 80px;
}

.panel-2 {
    width: 220px;
    height: 130px;
    top: 260px;
    right: 380px;
}

.panel-3 {
    width: 260px;
    height: 140px;
    top: 430px;
    right: 120px;
    opacity: 0.6;
}


/* ------------------ ANIMACIÓN DE ENTRADA ------------------ */

/* Elementos que se van a animar */
.left-bg,
.right-bg,
.device-stack,
.product-title,
.product-name,
.product-desc,
.price-row,
.color-dots {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estado inicial (antes de que JS añada .page-loaded) */
body:not(.page-loaded) .left-bg,
body:not(.page-loaded) .right-bg {
    opacity: 0;
}

body:not(.page-loaded) .device-stack {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
}

body:not(.page-loaded) .product-title,
body:not(.page-loaded) .product-name,
body:not(.page-loaded) .product-desc,
body:not(.page-loaded) .price-row,
body:not(.page-loaded) .color-dots {
    opacity: 0;
    transform: translateY(20px);
}

/* Estado final una vez cargada la página */
body.page-loaded .left-bg,
body.page-loaded .right-bg {
    opacity: 1;
}

body.page-loaded .device-stack {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.page-loaded .product-title,
body.page-loaded .product-name,
body.page-loaded .product-desc,
body.page-loaded .price-row,
body.page-loaded .color-dots {
    opacity: 1;
    transform: translateY(0);
}

/* Drag visual */
.phone-frame,
.web-frame {
    cursor: grab;
}

.phone-frame.dragging,
.web-frame.dragging {
    cursor: grabbing;
}



/* ------------------ RESPONSIVE INDEX ------------------ */

/* Pantallas grandes (≥ 1400px) */
@media (min-width: 1400px) {
    .hero {
        margin: 0 auto;
    }

    .right-bg {
        padding: 140px 120px 80px;
    }

    .phone-frame {
        transform: scale(1.05);
    }

    .web-frame {
        transform: scale(1.05);
        left: -60px;
        top: -70px;
    }
}

/* Laptops y tablets horizontales (≤ 1200px) */
@media (max-width: 1200px) {
    .top-bar {
        padding: 0 40px;
    }

    .nav-menu {
        gap: 28px;
    }

    .hero {
        grid-template-columns: 1fr 1.2fr;
    }

    .right-bg {
        padding: 120px 60px 70px;
    }

    .product-name {
        font-size: 32px;
    }

    .phone-frame {
        transform: scale(0.95);
    }

    .web-frame {
        width: 320px;
        height: 210px;
        left: -30px;
        top: -40px;
    }
}

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    body {
        overflow-y: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .right-circle {
        width: 100%;
        height: 55%;
        top: auto;
        bottom: 0;
    }

    .left-bg {
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .watch-wrapper {
        margin-top: 40px;
        margin-bottom: 10px;
    }

    .device-stack {
        transform: scale(0.9);
    }

    .vertical-text {
        left: 24px;
        font-size: 14px;
    }

    .right-bg {
        padding: 40px 30px 60px;
    }

    .top-bar {
        justify-content: center;
        padding: 15px 20px;
    }

    .nav-link {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .price-row {
        margin-top: 40px;
        gap: 24px;
    }
}

/* Móviles grandes / tablets verticales (≤ 768px) */
@media (max-width: 768px) {
    .top-bar {
        top: 10px;
    }

    .nav-menu {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 12px;
    }

    .vertical-text {
        font-size: 12px;
        left: 18px;
    }

    .watch-wrapper {
        transform: scale(0.9);
    }

    .phone-frame {
        width: 230px;
        height: 450px;
        left: -60px;
        top: 40px;
    }

    .web-frame {
        width: 380px;
        height: 290px;
        left: 100px;
        top: -80px;
    }

    .product-title {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .product-name {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .product-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .price {
        font-size: 22px;
    }

    .buy-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
    .top-bar {
        padding: 10px 12px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-link {
        font-size: 11px;
    }

    .left-bg {
        padding-top: 80px;
    }

    .vertical-text {
        display: none;
    }

    .watch-wrapper {
        transform: scale(0.85);
    }

    .phone-frame {
        width: 210px;
        height: 400px;
        left: -70px;
        top: 50px;
    }

    .web-frame {
        width: 250px;
        height: 230px;
        left: 30px;
        top: -50px;
    }

    .right-bg {
        padding: 30px 18px 50px;
    }

    .product-name {
        font-size: 22px;
    }

    .product-desc {
        font-size: 13px;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .buy-btn {
        width: 100%;
        justify-content: center;
    }
}