/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #0b1120;
}

/* NAVBAR */
.navbar {
    padding: 15px;
    background-color: #020617 !important;
}

.navbar .nav-link {
    color: #94a3b8 !important;
}

.navbar .nav-link:hover {
    color: #38bdf8 !important;
}

/* HERO TECNOLÓGICO */
/*.hero {
    text-align: center;
    padding: 110px 20px;

    background: radial-gradient(circle at top, #0f172a, #020617);
    color: white;
    position: relative;
}*/

.hero {
    text-align: center;
    padding: 110px 20px;
    position: relative;
    color: white;

    /* ✅ Imagen de fondo — cambia la URL por una imagen tuya si tienes */
    background-image: url('img/mobiliario.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* efecto parallax suave */
}

/* efecto grid tecnológico */
/*.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}*/

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2,6,23,0.82) 0%, rgba(15,23,42,0.70) 100%);
}

/* texto encima del grid */
.hero * {
    position: relative;
}

/* subtítulo */
.subtitle {
    letter-spacing: 3px;
    font-size: 12px;
    color: #38bdf8;
    margin-bottom: 10px;
}

/* título */
.hero h1 {
    font-size: 58px;
    font-weight: 600;
    color: #e2e8f0;
}

.hero h1 span {
    color: #38bdf8;
}

/* descripción */
.description {
    max-width: 600px;
    margin: 20px auto;
    color: #94a3b8;
    font-size: 16px;
}

/* BOTONES */
.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn-dark {
    background: #38bdf8;
    border: none;
    color: #020617;
    font-weight: 600;
}

.hero-buttons .btn-dark:hover {
    background: #0ea5e9;
}

.hero-buttons .btn-outline-secondary {
    border-color: #334155;
    color: #cbd5f5;
}

.hero-buttons .btn-outline-secondary:hover {
    background: #1e293b;
}

/* SECCIONES */
.section {
    display: none;
    padding: 40px;
    background-color: #0f172a;
}

.section.active {
    display: block;
    color: white;
}

/* CARDS TEC */
.card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* BOTÓN PRODUCTO */
button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border: none;
    color: #020617;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
}

button:hover {
    opacity: 0.9;
}
/* NEWSLETTER */
.newsletter {
    background:#02071e;
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.newsletter h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.newsletter p {
    color: #aaa;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.newsletter-form input {
    padding: 12px;
    width: 300px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
}

.newsletter-form button {
    padding: 12px;
    width: 300px;
    background: white;
    color: black;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.newsletter small {
    color: #777;
}

/*imagen*/
.logo {
    height: 40px;
    width: auto;
}

/*busqueda*/
.search-container {
    position: relative;
    width: 300px;
}

/* INPUT */
.search-container input {
    width: 100%;
    padding: 10px 70px 10px 15px;
    border-radius: 25px;
    border: 1px solid #334155;
    background: #020617;
    color: white;
    outline: none;
    height: 42px; /* 🔥 importante para alinear */
}

/* ICONOS (base común) */
.search-icon,
.mic-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* 🔥 centra verticalmente */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ICONO BUSCAR */
.search-icon {
    right: 12px;
    font-size: 18px;
    color: #38bdf8;
}

/* MICRÓFONO */
.mic-icon {
    right: 40px;
    font-size: 16px;
    color: #94a3b8;
}

/* HOVER */
.search-icon:hover,
.mic-icon:hover {
    color: #0ea5e9;
}

/* FOOTER */
.footer {
    background: #020617;
    padding: 60px 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h3 {
    margin-bottom: 10px;
}

.footer h4 {
    margin-bottom: 10px;
}

.footer a {
    display: block;
    text-decoration: none;
    color: #f5f2f2;
    margin-bottom: 5px;
    transition: 0.3s;
}

.footer a:hover {
    color: rgb(0, 0, 0);
}

.footer-brand p {
    margin-bottom: 8px;
    color: #e8e4e4;
}

/* BADGE CARRITO */
.badge-carrito {
    background: #38bdf8;
    color: #020617;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ESTADO VACÍO */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #475569;
}

/* LISTA DE ITEMS */
.cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.cart-item:hover { border-color: #38bdf8; }

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info { flex: 1; }

.cart-item-info h6 {
    color: #e2e8f0;
    margin: 0 0 3px;
    font-size: 14px;
}

.cart-item-info small {
    color: #64748b;
    font-size: 12px;
}

.cart-item-price {
    color: #38bdf8;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

/* CONTROLES CANTIDAD */
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #334155 !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover { border-color: #38bdf8 !important; color: #38bdf8 !important; }

.btn-remove {
    background: none !important;
    border: none !important;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    width: auto !important;
}

.btn-remove:hover { color: #f87171; background: #1e293b !important; }

/* RESUMEN */
.cart-summary {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 20px;
    max-width: 420px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
    border-top: 1px solid #1e293b;
    padding-top: 14px;
    margin-top: 6px;
}

.btn-cotizar {
    width: 100%;
    margin-top: 16px;
    padding: 13px;
    background: #38bdf8;
    color: #020617;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cotizar:hover { background: #0ea5e9; }

.btn-vaciar {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    cursor: pointer;
}

.btn-vaciar:hover { color: #f87171; border-color: #f87171; }