/* =========================================================
   KREOMA3D - STYLE.CSS
   Diseño responsive PC + CELULAR
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --bg-dark: #0a0d14;
    --card-bg: rgba(22, 28, 39, 0.8);
    --accent: #ff7a00;
    --accent-hover: #e06900;
    --text-main: #f0f4f8;
    --text-soft: #9ba6b5;
    --btn-wa: #25D366;
    --font-main: 'Poppins', sans-serif;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

header.navbar {
    background: rgba(10, 13, 20, 0.95);
    border-bottom: 2px solid var(--accent);
    padding: 15px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */

.navbar .logo {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar .logo span {
    color: var(--accent);
}

/* Menú PC */

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 30px;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--accent) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff !important;
}

/* Botón menú móvil */

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--accent);
    background: none;
    border: none;
}

/* Overlay */

.overlay-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 98;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    margin: 60px 0 30px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-banner {
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(
        circle at center,
        rgba(0, 188, 212, 0.1) 0%,
        transparent 70%
    );
    margin-bottom: 20px;
}

.hero-banner h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-banner p {
    color: var(--text-soft);
    max-width: 650px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================================
   GRILLA DE PRODUCTOS
   ========================================================= */

/*
   IMPORTANTE:
   Las tarjetas NO se estiran a toda la pantalla.
   Cada tarjeta tendrá un ancho máximo de 320px.
*/

.productos-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 320px));

    justify-content: center;
    align-items: start;

    gap: 25px;
}

/* =========================================================
   TARJETA PRODUCTO
   ========================================================= */

.producto-card {
    width: 100%;
    max-width: 320px;

    background: var(--card-bg);

    border: 1px solid rgba(255, 122, 0, 0.15);

    border-radius: 15px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 20px rgba(255, 122, 0, 0.15);

    border-color: var(--accent);
}

/* =========================================================
   IMAGEN DEL PRODUCTO
   ========================================================= */

.producto-card img {
    width: 100%;
    height: 220px;

    object-fit: contain;

    display: block;

    background: #11151d;
}

/* =========================================================
   INFORMACIÓN PRODUCTO
   ========================================================= */

.producto-info {
    padding: 18px;

    display: flex;
    flex-direction: column;

    flex-grow: 1;
}

.producto-info h3 {
    font-size: 18px;
    line-height: 1.35;

    margin-bottom: 10px;
}

.producto-info .precio {
    color: var(--accent);

    font-size: 22px;
    font-weight: 700;

    margin-bottom: 15px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-block;

    padding: 12px 20px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;

    text-align: center;

    transition: all 0.3s;

    border: none;

    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* =========================================================
   OFERTAS
   ========================================================= */

.badge-oferta {
    position: absolute;

    top: 10px;
    right: 10px;

    background: #ff4444;
    color: white;

    padding: 5px 12px;

    border-radius: 6px;

    font-weight: 900;
    font-size: 12px;

    z-index: 10;

    box-shadow:
        0 4px 10px rgba(255, 68, 68, 0.4);
}

.precio-antiguo {
    text-decoration: line-through;

    color: var(--text-soft);

    font-size: 15px;

    margin-right: 10px;

    font-weight: normal;
}

/* =========================================================
   RESEÑAS
   ========================================================= */

.resenas-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;
}

.resena-card {
    background: var(--card-bg);

    padding: 25px;

    border-radius: 12px;

    border-left:
        4px solid var(--accent);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.estrellas {
    color: #FFD700;

    margin-bottom: 15px;

    font-size: 18px;

    letter-spacing: 2px;
}

/* =========================================================
   COTIZACIÓN
   ========================================================= */

.cta-cotizacion {
    background:
        linear-gradient(
            135deg,
            rgba(22, 28, 39, 0.9),
            rgba(10, 13, 20, 0.9)
        );

    border:
        1px solid rgba(255, 122, 0, 0.3);

    padding: 60px 20px;

    text-align: center;

    border-radius: 20px;

    margin: 80px 0;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.cta-cotizacion h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.btn-cotizar {
    background-color: var(--btn-wa);

    color: white;

    font-size: 15px;

    padding: 15px 35px;

    border-radius: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    text-decoration: none;

    font-weight: 800;

    transition:
        transform 0.3s,
        box-shadow 0.3s;

    margin-top: 20px;
}

.btn-cotizar:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(37, 211, 102, 0.4);

    background-color: #1fb956;
}

/* =========================
   REDES SOCIALES FLOTANTES
========================= */

.social-links {
    position: fixed;
    right: 20px;
    bottom: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    z-index: 9999;
}

.social-links a {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(10, 13, 20, 0.92);
    border: 1px solid rgba(255, 122, 0, 0.35);

    color: #ffffff;

    font-size: 21px;

    text-decoration: none;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.social-links a:hover {
    transform: scale(1.12);

    background: var(--accent);
    color: #ffffff;

    box-shadow:
        0 0 15px rgba(255, 122, 0, 0.45),
        0 8px 25px rgba(0, 0, 0, 0.5);
}
.btn-whatsapp-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 12px;
    padding: 11px 20px;

    background: var(--btn-wa);
    color: #fff;

    border-radius: 50px;

    text-decoration: none;
    font-weight: 700;
    font-size: 14px;

    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);

    transition: all 0.25s ease;
}

.btn-whatsapp-contacto i {
    font-size: 20px;
}

.btn-whatsapp-contacto:hover {
    transform: translateY(-3px);

    background: #1fb956;

    box-shadow:
        0 10px 25px rgba(37, 211, 102, 0.40);
}

/* =========================================================
   =========================================================
   📱 CELULARES
   =========================================================
   ========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       MENÚ
       ===================================================== */

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;

        top: 0;
        left: -280px;

        width: 280px;
        height: 100vh;

        background: #0a0d14;

        flex-direction: column;

        padding: 80px 30px;

        box-shadow:
            2px 0 15px rgba(0, 0, 0, 0.8);

        transition: left 0.3s ease;

        z-index: 99;

        border-right:
            2px solid var(--accent);
    }

    .nav-links.active {
        left: 0;
    }

    .overlay-menu.active {
        display: block;
    }

    .nav-links li {
        border-bottom:
            1px solid rgba(255, 122, 0, 0.2);

        padding-bottom: 15px;

        margin-bottom: 15px;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
    }

    /* =====================================================
       CONTENEDOR
       ===================================================== */

    .container {
        padding: 25px 12px;
    }

    /* =====================================================
       TÍTULOS GENERALES
       ===================================================== */

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    h4 {
        font-size: 14px !important;
    }

    .section-title {
        font-size: 21px !important;

        margin:
            35px 0 20px;

        letter-spacing: 0.5px;
    }

    /* =====================================================
       HERO
       ===================================================== */

    .hero-banner {
        padding:
            20px 10px 25px;

        margin-bottom: 10px;
    }

    .hero-banner h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .hero-banner p {
        font-size: 13px !important;

        line-height: 1.5;

        max-width: 95%;

        margin: 0 auto;
    }

    /* =====================================================
       GRILLA
       ===================================================== */

    .productos-grid {

        /*
           Dos tarjetas por fila.
        */

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

        width: 100%;
    }

    /* =====================================================
       TARJETA MÓVIL
       ===================================================== */

    .producto-card {

        width: 100%;

        max-width: none;

        border-radius: 12px;
    }

    /* =====================================================
       IMAGEN MÓVIL
       ===================================================== */

    .producto-card img {

        width: 100%;

        height: 125px;

        object-fit: contain;

        display: block;

        background: #11151d;
    }

    /* =====================================================
       INFORMACIÓN MÓVIL
       ===================================================== */

    .producto-info {

        padding:
            10px 10px 12px;

        margin: 0;

        flex-grow: 0;
    }

    /* =====================================================
       NOMBRE PRODUCTO
       ===================================================== */

    .producto-info h3 {

        font-size: 12px !important;

        line-height: 1.25;

        margin:
            0 0 5px 0;

        min-height: 0;
    }

    /* =====================================================
       PRECIO
       ===================================================== */

    .producto-info .precio {

        font-size: 15px !important;

        line-height: 1.2;

        margin:
            0 0 8px 0;
    }

    /* =====================================================
       BOTÓN PRODUCTO
       ===================================================== */

    .producto-card .btn {

        width: 100%;

        padding:
            8px 5px;

        font-size: 11px;

        line-height: 1.2;

        border-radius: 7px;
    }

    /* =====================================================
       OFERTA
       ===================================================== */

    .badge-oferta {

        top: 6px;
        right: 6px;

        padding:
            4px 7px;

        font-size: 9px;

        border-radius: 5px;
    }

    .precio-antiguo {
        font-size: 11px;
        margin-right: 4px;
    }

    /* =====================================================
       RESEÑAS
       ===================================================== */

    .resenas-grid {

        grid-template-columns:
            1fr;

        gap: 12px;
    }

    .resena-card {
        padding: 15px;
    }

    /* =====================================================
       COTIZACIÓN
       ===================================================== */

    .cta-cotizacion {

        padding:
            30px 15px;

        margin:
            45px 0;

        border-radius: 15px;
    }

    .cta-cotizacion h2 {

        font-size: 21px !important;

        line-height: 1.3;

        margin-bottom: 10px;
    }

    .cta-cotizacion p {

        font-size: 13px !important;

        line-height: 1.5;

        margin:
            10px 0 15px !important;
    }

    .btn-cotizar {

        width: auto;

        max-width: 100%;

        font-size: 11px;

        padding:
            9px 15px;

        gap: 5px;

        margin-top: 10px;
    }

    /* =====================================================
       REDES
       ===================================================== */

    .social-links {
    right: 12px;
    bottom: 15px;
    gap: 8px;
}

.social-links a {
    width: 42px;
    height: 42px;
    font-size: 18px;
}
}

/* =========================================================
   📱 CELULARES MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 400px) {

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .productos-grid {
        gap: 10px;
    }

    .producto-card img {
        height: 115px;
    }

    .producto-info {
        padding:
            8px 8px 10px;
    }

    .producto-info h3 {
        font-size: 11px !important;
    }

    .producto-info .precio {
        font-size: 14px !important;
    }

    .producto-card .btn {
        font-size: 10px;
        padding: 7px 4px;
    }

    .section-title {
        font-size: 19px !important;
    }

    .btn-cotizar {
        font-size: 10px;
        padding:
            8px 12px;
    }
}

