/* ==========================================================
   CALI TECH - NUEVO DISEÑO DE LA PÁGINA PRINCIPAL (HOME)
   ========================================================== */
:root{
    --azul: #146b9e;
    --cian: #47fdee;
    --tinta: #0a1424;
    --tinta-2: #0f1e36;
}

body.home{
    margin: 0;
    background: #eef2f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--tinta);
}

/* ---------- HEADER ---------- */
.home .encabezado{
    position: relative;
    background: linear-gradient(120deg, #050b16 0%, #0a1a33 55%, #0d2b4d 100%);
    padding: 16px 0 0;
    border-bottom: 3px solid var(--cian);
    overflow: visible;
}
.home .topbar{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.home .marca{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.home .marca img{
    width: 56px;
    height: 56px;
    float: none;
    margin-top: 0;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    padding: 5px;
}
.home .marca span{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    font-weight: normal;
    color: #eecd13;
    margin-top: 0;
}
.home .marca b{ color: var(--cian); }
.home .encabezado nav{
    width: auto;
    margin: 0;
    padding: 0;
}
.home .encabezado nav a{
    float: none;
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #cfe0f0;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0 2px;
    transition: background 0.25s, color 0.25s;
}
.home .encabezado nav a:hover{
    background: rgba(71, 187, 253, 0.15);
    color: #ffffff;
    text-decoration: none;
}
.home .encabezado nav a.activo{
    color: #ffffff;
    background: rgba(71, 253, 238, 0.14);
    box-shadow: inset 0 -2px 0 var(--cian);
}

/* ---------- HERO / OFERTAS ---------- */
.home .hero{
    position: relative;
    height: 480px;
    overflow: hidden;
}
.hero-slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.activo{
    opacity: 1;
    visibility: visible;
}
.hero-contenido{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.hero-texto{
    max-width: 560px;
    color: #ffffff;
}
.hero-eyebrow{
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    color: #ffffff;
}
.hero-texto h2{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(30px, 4.6vw, 54px);
    margin: 16px 0 12px;
    line-height: 1.05;
}
.hero-texto p{
    font-size: 18px;
    opacity: 0.92;
    margin: 0;
    line-height: 1.5;
}
.hero-cta{
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 16px 32px -12px rgba(71, 253, 238, 0.85);
    transition: transform 0.2s, filter 0.2s;
}
.hero-cta:hover{
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.hero-img img{
    max-height: 400px;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.5));
}
.hero-slide.s1{ background: linear-gradient(120deg, #0b1e4d 0%, #146b9e 100%); }
.hero-slide.s2{ background: linear-gradient(120deg, #2a0a13 0%, #8e1230 60%, #e5372f 100%); }
.hero-slide.s3{ background: linear-gradient(120deg, #04252b 0%, #0e6d78 100%); }

.hero-puntos{
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.hero-puntos button{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s;
    padding: 0;
}
.hero-puntos button.activo{
    width: 34px;
    border-radius: 8px;
    background: var(--cian);
}

/* ---------- FRANJA DE BENEFICIOS ---------- */
.home .promos{
    max-width: 1200px;
    margin: -46px auto 0;
    padding: 0 4%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    position: relative;
    z-index: 6;
}
.promo{
    background: #ffffff;
    border: 1px solid #e6ecf3;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px -24px rgba(10, 20, 36, 0.55);
}
.promo .ico{
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
}
.promo .ico svg{
    width: 26px;
    height: 26px;
}
.promo h4{
    margin: 0 0 2px;
    font-size: 16px;
    color: var(--tinta);
}
.promo p{
    margin: 0;
    font-size: 13px;
    color: #5a6b82;
}

/* ---------- SECCIONES ---------- */
.home .seccion{
    max-width: 1200px;
    margin: 56px auto 0;
    padding: 0 4%;
}
.seccion-titulo{
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(28px, 3.6vw, 42px);
    color: var(--azul);
    margin: 0 0 8px;
}
.seccion-sub{
    text-align: center;
    color: #5a6b82;
    margin: 0 0 34px;
    font-size: 17px;
}

/* ---------- TARJETAS DE PRODUCTO ---------- */
.home .grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 24px;
}
.home .card{
    position: relative;
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px -28px rgba(10, 20, 36, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}
.home .card:hover{
    transform: translateY(-6px);
    box-shadow: 0 30px 55px -28px rgba(10, 20, 36, 0.65);
}
.card-img{
    height: 235px;
    display: grid;
    place-items: center;
    padding: 18px;
    background: radial-gradient(circle at 50% 32%, #f8fcff 0%, #e6eff9 100%);
}
.card-img img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}
.home .card:hover .card-img img{
    transform: scale(1.06);
}
.card-info{
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.card-info h3{
    margin: 0;
    font-size: 18px;
    color: var(--tinta);
    line-height: 1.2;
}
.card-info .precio{
    margin: 2px 0 0;
    font-size: 21px;
    font-weight: 800;
    color: var(--azul);
}
.card-info .precio-antes{
    margin: 0;
    font-size: 14px;
    color: #9aa7b8;
    text-decoration: line-through;
}
.home .card .btn-carrito{
    margin-top: auto;
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--azul), #1b8fce);
    color: #ffffff;
}
.home .card .btn-carrito:hover{
    background: #111130;
    transform: scale(1.02);
}
.home .badge{
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: linear-gradient(135deg, #ff5b5b, #c1121f);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 13px;
    border-radius: 30px;
    box-shadow: 0 12px 22px -10px rgba(193, 18, 31, 0.9);
}
.home .badge.azul{
    background: linear-gradient(135deg, #47bbfd, #146b9e);
    box-shadow: 0 12px 22px -10px rgba(20, 107, 158, 0.9);
}

/* Cinta divisoria entre teléfonos y accesorios */
.home .cinta{
    height: 3px;
    max-width: 1200px;
    margin: 60px auto 0;
    background: linear-gradient(90deg, transparent, var(--azul), var(--cian), var(--azul), transparent);
    border-radius: 3px;
}

/* ---------- FOOTER ---------- */
.home .footer{
    margin-top: 64px;
    background: linear-gradient(120deg, #050b16 0%, #0a1a33 100%);
    color: #cfe0f0;
    padding: 38px 4%;
}
.home .footer table{
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: auto;
    float: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    text-align: left;
    background: transparent;
    color: #cfe0f0;
}
.home .footer td{
    padding: 5px 0;
    border: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
    .home .hero{ height: auto; min-height: 420px; }
    .hero-contenido{ flex-direction: column; text-align: center; padding: 40px 6% 60px; }
    .hero-texto{ max-width: 100%; }
    .hero-img img{ max-height: 220px; }
    .home .topbar{ justify-content: center; text-align: center; }
}