@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Outfit:wght@500;700;800&display=swap');

:root {
    --bg: #f2faf9;
    /* Aqua Blanco Fresco */
    --surface: #ffffff;
    --brand: #00d1b2;
    /* Verde Menta / Turquesa Vibrante */
    --brand-alt: #10b981;
    /* Verde Esmeralda Salud */
    --brand-glow: rgba(0, 209, 178, 0.3);
    --brand-dim: #e6f7f4;
    --accent: #374151;
    /* Gris Espacial Deep */
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(0, 209, 178, 0.15);
    --glass: blur(35px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DESKTOP BACKGROUND - FRESH TECH MINT */
.desktop-bg-elements {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.45;
    animation: blobMove 18s infinite alternate ease-in-out;
}

.b-1 {
    width: 55vw;
    height: 55vw;
    background: #ccf2ed;
    top: -12%;
    left: -8%;
}

.b-2 {
    width: 45vw;
    height: 45vw;
    background: #d1f7e8;
    bottom: -8%;
    right: -12%;
    animation-delay: -6s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(12%, 12%) scale(1.1);
    }
}

.master-wrapper {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: var(--glass);
    box-shadow: 0 40px 110px rgba(0, 209, 178, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 600px) {
    .master-wrapper {
        min-height: 86vh;
        border-radius: 52px;
        box-shadow: 0 50px 150px rgba(0, 209, 178, 0.12);
    }
}

.header {
    padding: 40px 32px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.6px;
}

.logo span {
    color: var(--brand);
    text-shadow: 0 2px 10px var(--brand-glow);
}

.logo small {
    font-size: 11px;
    vertical-align: middle;
    color: var(--brand);
    font-weight: 800;
    margin-left: 2px;
    border: 1px solid var(--brand);
    padding: 1px 6px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.btn-install {
    background: #fff;
    border: 1.8px solid var(--brand);
    color: var(--brand);
    padding: 8px 16px;
    border-radius: 32px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.app-card {
    padding: 0 32px 32px;
    flex: 1;
}

.tabs-control {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    background: var(--brand-dim);
    padding: 8px;
    border-radius: 28px;
    border: 1.5px solid var(--border);
}

.nav-tab {
    flex: 1;
    padding: 16px;
    border-radius: 22px;
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-tab.active {
    background: white;
    color: var(--brand);
    box-shadow: 0 10px 25px rgba(0, 209, 178, 0.1);
    transform: scale(1.05);
}

.camera-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #111827;
    border-radius: 50px;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 30px 65px rgba(0, 209, 178, 0.15);
}

#videoEl {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.baby-viewfinder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border: 3.5px dashed rgba(255, 255, 255, 0.4);
    border-radius: 70px;
}

.photon-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--brand), #fff, var(--brand), transparent);
    box-shadow: 0 0 35px var(--brand);
    display: none;
    z-index: 10;
}

.photon-scanner.active {
    display: block;
    animation: scanSmooth 2.2s infinite ease-in-out;
}

@keyframes scanSmooth {
    0% {
        top: 18%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 82%;
        opacity: 0;
    }
}

.action-footer {
    margin-top: 38px;
    text-align: center;
}

.prime-btn {
    width: 100%;
    padding: 24px;
    border-radius: 34px;
    border: none;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-alt) 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 45px var(--brand-glow);
    transition: all 0.4s;
    letter-spacing: 0.5px;
}

.prime-btn:active {
    transform: scale(0.95);
}

.prime-btn.secondary {
    background: #fff;
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: 0 12px 28px rgba(0, 209, 178, 0.08);
}

.legalese {
    font-size: 11px;
    color: var(--muted);
    margin-top: 18px;
    padding: 0 24px;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* GROWTH FORM MINT */
.growth-form {
    background: white;
    padding: 35px;
    border-radius: 44px;
    box-shadow: 0 20px 50px rgba(0, 209, 178, 0.05);
    border: 1px solid var(--border);
}

.q-group {
    margin-bottom: 24px;
}

.q-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1.8px;
}

.i-wrap {
    position: relative;
}

.i-wrap input {
    width: 100%;
    padding: 20px;
    border-radius: 22px;
    border: 2px solid #edeff2;
    background: #f9fafb;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    transition: all 0.3s;
}

.i-wrap input:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 6px var(--brand-dim);
}

.i-wrap span {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--brand);
    font-weight: 800;
    font-size: 13px;
}

/* MODAL TECH FRESH */
.glass-modal {
    position: fixed;
    inset: 0;
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
}

.glass-modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 460px;
    height: 86vh;
    border-radius: 54px 54px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    border-top: 6px solid var(--brand);
}

.glass-modal.visible .modal-content {
    transform: translateY(0);
}

.modal-top {
    padding: 36px 36px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    padding: 9px 20px;
    background: var(--brand-dim);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    border-radius: 34px;
    border: 1.5px solid var(--border);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 36px 40px;
    font-size: 15px;
    color: var(--accent);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--brand);
    margin-bottom: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
}

.modal-bot {
    padding: 36px;
    border-top: 1px solid #f2f4f7;
}

.btn-save {
    width: 100%;
    padding: 22px;
    border-radius: 28px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(55, 65, 81, 0.3);
}

.ctrl-close {
    background: #f3f4f6;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    color: var(--accent);
}