/* ============================================
   KINET - Responsive Design Mobile-First
   Optimizado para iPhone, Android, iPad
   ============================================ */

/* ---------- RESET Y BASE MOBILE (hasta 480px) ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #EAEDED;
    color: #111;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

input, textarea, select, button {
    font-size: 16px !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-touch-callout: none;
}

/* ============================================
   HEADER AMAZON STYLE - Mobile First
   ============================================ */
.kinet-header {
    background: #131921;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.kinet-header .logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.kinet-header .logo span {
    color: #FFD814;
}

.kinet-header .search-box {
    flex: 1;
    min-width: 150px;
    display: flex;
}

.kinet-header .search-box input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.kinet-header .search-box button {
    background: #FEBD69;
    border: none;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    white-space: nowrap;
}

.kinet-header .location {
    color: #ccc;
    font-size: 10px;
    line-height: 1.2;
    flex-shrink: 0;
}

.kinet-header .location strong {
    color: #fff;
    font-size: 12px;
}

/* ============================================
   SUBNAV
   ============================================ */
.kinet-subnav {
    background: #232F3E;
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.kinet-subnav::-webkit-scrollbar {
    display: none;
}

.kinet-subnav a {
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.kinet-subnav a.active {
    background: #FFD814;
    color: #111;
    font-weight: bold;
}

/* ============================================
   HERO
   ============================================ */
.kinet-hero {
    background: linear-gradient(to bottom, #232F3E, #131921);
    padding: 30px 15px;
    text-align: center;
    color: #fff;
}

.kinet-hero h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.kinet-hero h1 span {
    color: #FFD814;
}

.kinet-hero p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

.kinet-hero .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-yellow {
    background: #FFD814;
    color: #111;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.btn-yellow:active {
    background: #F7CA00;
    transform: scale(0.97);
}

.btn-white {
    background: #fff;
    color: #111;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.kinet-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #111;
}

.feature-card p {
    font-size: 13px;
    color: #555;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.kinet-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.product-card:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-card .info {
    padding: 10px;
}

.product-card .name {
    font-size: 12px;
    color: #111;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-card .seller {
    font-size: 10px;
    color: #555;
    margin-bottom: 4px;
}

.product-card .price {
    font-size: 16px;
    font-weight: bold;
    color: #B12704;
}

.product-card .price small {
    font-size: 11px;
    font-weight: normal;
}

.product-card .btn-buy {
    display: block;
    width: 100%;
    background: #FFD814;
    border: none;
    padding: 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
    text-align: center;
    color: #111;
    text-decoration: none;
}

/* ============================================
   SELLER SECTION
   ============================================ */
.kinet-sellers {
    padding: 15px;
}

.kinet-sellers h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #111;
}

.seller-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.seller-scroll::-webkit-scrollbar {
    display: none;
}

.seller-mini {
    min-width: 160px;
    max-width: 160px;
    background: #fff;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    flex-shrink: 0;
}

.seller-mini .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFD814;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #111;
}

.seller-mini .sname {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 3px;
}

.seller-mini .slocation {
    font-size: 10px;
    color: #555;
    margin-bottom: 8px;
}

.btn-visit {
    background: #FFD814;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: #111;
}

/* ============================================
   INVITE BANNER
   ============================================ */
.kinet-invite {
    background: linear-gradient(135deg, #232F3E, #131921);
    color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    text-align: center;
}

.kinet-invite h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.kinet-invite p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.kinet-footer {
    background: #131921;
    color: #fff;
    padding: 20px 15px;
    text-align: center;
    font-size: 11px;
}

.kinet-footer .logo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.kinet-footer a {
    color: #ccc;
    margin: 0 8px;
    text-decoration: none;
}

.kinet-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center { text-align: center; }
.hidden-mobile { display: none; }
.visible-mobile { display: block; }

/* ============================================
   TABLET - 481px a 768px
   ============================================ */
@media (min-width: 481px) {
    .kinet-header {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .kinet-header .logo {
        font-size: 24px;
    }
    
    .kinet-hero h1 {
        font-size: 28px;
    }
    
    .kinet-hero .buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-yellow, .btn-white {
        width: auto;
        max-width: none;
    }
    
    .kinet-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .kinet-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .product-card .name {
        font-size: 13px;
    }
    
    .product-card .price {
        font-size: 18px;
    }
    
    .seller-mini {
        min-width: 180px;
        max-width: 180px;
    }
}

/* ============================================
   iPAD / TABLET GRANDE - 769px a 1024px
   ============================================ */
@media (min-width: 769px) {
    .kinet-header {
        padding: 12px 30px;
    }
    
    .kinet-header .search-box input {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .kinet-subnav a {
        font-size: 13px;
        padding: 8px 15px;
    }
    
    .kinet-hero {
        padding: 50px 30px;
    }
    
    .kinet-hero h1 {
        font-size: 34px;
    }
    
    .kinet-hero p {
        font-size: 16px;
    }
    
    .kinet-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    .kinet-products {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-card:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }
    
    .product-card img {
        height: 200px;
    }
    
    .kinet-sellers {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .seller-mini {
        min-width: 200px;
        max-width: 200px;
    }
    
    .hidden-mobile {
        display: block;
    }
}

/* ============================================
   LAPTOP / MONITOR - 1025px+
   ============================================ */
@media (min-width: 1025px) {
    .kinet-header {
        padding: 15px 40px;
    }
    
    .kinet-header .logo {
        font-size: 28px;
    }
    
    .kinet-hero h1 {
        font-size: 42px;
    }
    
    .kinet-hero p {
        font-size: 18px;
    }
    
    .kinet-products {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    .product-card img {
        height: 220px;
    }
    
    .product-card .name {
        font-size: 14px;
    }
    
    .product-card .price {
        font-size: 20px;
    }
    
    .kinet-features {
        gap: 25px;
    }
}

/* ============================================
   IMPRESIÓN
   ============================================ */
@media print {
    .kinet-header, .kinet-subnav, .kinet-footer, .kinet-invite {
        display: none;
    }
    
    body {
        background: #fff;
    }
}