*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

html,
body{
    width:100%;
    min-height:100%;
    background:#f4f6f8;
    color:#111827;
    overflow-x:hidden;
}

.app{
    width:100%;
    min-height:100vh;
    background:#f4f6f8;
    padding-bottom:95px;
}

/* HEADER */
.top{
    background:#16a34a;
    color:#fff;
    padding:32px 18px 24px;
    border-radius:0 0 24px 24px;
}

.top h1{
    font-size:24px;
    font-weight:900;
}

.top p{
    margin-top:5px;
    font-size:14px;
    opacity:.95;
}

/* CONTENIDO */
.hero{
    width:100%;
    padding:14px;
}

.card{
    background:#fff;
    border-radius:22px;
    padding:18px;
    margin-bottom:16px;
    box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.card h3{
    font-size:18px;
    margin-bottom:10px;
}

.card p{
    font-size:15px;
    line-height:1.5;
    margin-bottom:8px;
}

/* FORMULARIOS */
label{
    display:block;
    margin:16px 0 8px;
    font-size:15px;
    font-weight:800;
}

input,
textarea,
select{
    width:100%;
    border:none;
    border-radius:16px;
    background:#f3f4f6;
    padding:15px;
    font-size:16px;
}

textarea{
    min-height:120px;
    resize:none;
}

input:focus,
textarea:focus,
select:focus{
    outline:2px solid rgba(22,163,74,.25);
    background:#fff;
}

input[type="checkbox"]{
    width:24px;
    height:24px;
    accent-color:#16a34a;
}

/* BOTONES */
.main-btn{
    width:100%;
    min-height:54px;
    border:none;
    border-radius:18px;
    background:#16a34a;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    font-size:16px;
    font-weight:900;
    margin-top:18px;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(22,163,74,.22);
}

/* MENÚ INFERIOR */
.bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:76px;
    background:#fff;
    border-top:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:space-around;
    z-index:9999;
    box-shadow:0 -6px 20px rgba(0,0,0,.05);
}

.bottom-nav a{
    flex:1;
    height:100%;
    color:#6b7280;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    font-size:20px;
    font-weight:800;
}

.bottom-nav span{
    font-size:11px;
    margin-top:3px;
}

.bottom-nav a.active{
    color:#16a34a;
}

/* ESTADOS */
.price{
    color:#16a34a;
    font-size:22px;
    font-weight:900;
}

.status{
    display:inline-block;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.status-pendiente{
    background:#fef3c7;
    color:#92400e;
}

.status-aceptada{
    background:#dbeafe;
    color:#1e40af;
}

.status-entregada{
    background:#dcfce7;
    color:#166534;
}

.status-cancelada{
    background:#fee2e2;
    color:#991b1b;
}

/* TABLET */
@media screen and (min-width:768px){

    .app{
        padding-bottom:110px;
    }

    .top{
        padding:40px 40px 30px;
        border-radius:0 0 32px 32px;
    }

    .top h1{
        font-size:32px;
    }

    .top p{
        font-size:16px;
    }

    .hero{
        padding:30px 40px;
    }

    .card{
        padding:28px;
        border-radius:26px;
    }

    .bottom-nav{
        height:86px;
    }

    .bottom-nav a{
        font-size:24px;
    }

    .bottom-nav span{
        font-size:13px;
    }
}

/* COMPUTADORA */
@media screen and (min-width:1024px){

    body{
        background:#e5e7eb;
    }

    .app{
        max-width:1100px;
        margin:0 auto;
        min-height:100vh;
        background:#f4f6f8;
        box-shadow:0 0 40px rgba(0,0,0,.08);
    }

    .hero{
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
        gap:24px;
        padding:35px;
    }

    .card{
        margin-bottom:0;
    }

    .bottom-nav{
        max-width:1100px;
        left:50%;
        right:auto;
        transform:translateX(-50%);
        border-radius:24px 24px 0 0;
    }
}


.check-row{
    display:flex;
    align-items:center;
    gap:10px;
    background:#f3f4f6;
    border-radius:16px;
    padding:14px;
    margin-top:14px;
}

.check-row input{
    width:22px;
    height:22px;
}

.check-row span{
    font-size:14px;
    font-weight:700;
}


.image-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin:12px 0;
}

.image-grid img{
    width:100%;
    height:90px;
    object-fit:cover;
    border-radius:12px;
}

.chat-area{
    padding-bottom:150px;
}

.chat-message{
    max-width:80%;
    padding:12px 14px;
    margin-bottom:10px;
    border-radius:16px;
    font-size:15px;
}

.chat-message p{
    margin:0;
}

.chat-message small{
    display:block;
    margin-top:5px;
    font-size:11px;
    opacity:.7;
}

.chat-message.mine{
    background:#16a34a;
    color:white;
    margin-left:auto;
    border-bottom-right-radius:4px;
}

.chat-message.other{
    background:white;
    color:#111827;
    margin-right:auto;
    border-bottom-left-radius:4px;
}

.chat-form{
    position:fixed;
    left:0;
    right:0;
    bottom:76px;
    background:white;
    padding:10px;
    display:flex;
    gap:8px;
    border-top:1px solid #e5e7eb;
    z-index:9998;
}

.chat-form input{
    flex:1;
    border-radius:999px;
}

.chat-form button{
    border:none;
    border-radius:999px;
    padding:0 16px;
    background:#16a34a;
    color:white;
    font-weight:900;
}


.chat-badge{
    background:#ef4444;
    color:white;
    font-size:12px;
    font-weight:900;
    border-radius:999px;
    padding:3px 8px;
    margin-left:8px;
}