html {
    font-size: 16px;
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    margin: 0;
    background-color: #f4f6fa;
    color: #1e293b;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    max-width: 1200px;
}

main {
    padding-bottom: 40px;
}

.navbar {
    background-color: #0f172a !important;
    padding: 16px 0;
    border-bottom: 1px solid #26334c;
}

.navbar .container {
    display: flex;
    align-items: center;
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: #38bdf8 !important;
}

.navbar .nav-link {
    color: #cbd5e1 !important;
    margin-left: 12px;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: #38bdf8 !important;
}

.inicio-techstore {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 390px;
    padding: 60px;
    margin-top: 30px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(120deg, #0f172a, #172554);
}

.contenido-inicio {
    max-width: 650px;
}

.etiqueta-inicio {
    color: #38bdf8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.contenido-inicio h1 {
    margin: 18px 0;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: bold;
    line-height: 1.15;
}

.contenido-inicio h1 span {
    color: #38bdf8;
}

.descripcion-inicio {
    max-width: 580px;
    margin-bottom: 30px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.boton-inicio {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    background-color: #0284c7;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.boton-inicio:hover {
    background-color: #0369a1;
    color: #ffffff;
    transform: translateY(-2px);
}

.icono-inicio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 210px;
    height: 210px;
    border: 1px solid #334b77;
    border-radius: 50%;
    background-color: #1e3a5f;
}

.icono-inicio span {
    font-size: 100px;
}

.seccion-productos {
    padding: 55px 0 20px;
    text-align: center;
}

.seccion-productos h2 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 32px;
    font-weight: bold;
}

.seccion-productos > p {
    margin-bottom: 35px;
    color: #64748b;
}

.categorias-inicio {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.categoria-inicio {
    padding: 28px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.categoria-inicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
}

.categoria-inicio span {
    display: block;
    margin-bottom: 14px;
    font-size: 42px;
}

.categoria-inicio h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: bold;
}

footer {
    margin-top: 25px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    text-align: center;
}

@media (max-width: 768px) {
    .inicio-techstore {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 25px;
        gap: 30px;
    }

    .icono-inicio {
        align-self: center;
        width: 150px;
        height: 150px;
    }

    .icono-inicio span {
        font-size: 75px;
    }

    .categorias-inicio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .seccion-productos h2 {
        font-size: 27px;
    }
}

@media (max-width: 400px) {
    .categorias-inicio {
        grid-template-columns: 1fr;
    }
}

.catalogo-controles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto 15px;
    max-width: 750px;
}

.catalogo-controles input,
.catalogo-controles select {
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.contador-productos {
    margin-bottom: 25px;
    color: #64748b;
}

.catalogo-productos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}

.tarjeta-producto {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
}

.producto-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 48px;
}

.producto-categoria {
    margin-bottom: 8px;
    color: #0284c7;
    font-size: 13px;
    font-weight: bold;
}

.tarjeta-producto h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: bold;
}

.producto-descripcion {
    min-height: 55px;
    color: #64748b;
    font-size: 14px;
}

.producto-precio {
    margin: 15px 0 0;
    color: #0284c7;
    font-size: 22px;
    font-weight: bold;
}

.mensaje-vacio {
    margin: 30px 0;
    color: #64748b;
}

@media (max-width: 900px) {
    .catalogo-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .catalogo-controles {
        flex-direction: column;
    }

    .catalogo-productos {
        grid-template-columns: 1fr;
    }
}

.barra-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 25px auto;
    max-width: 750px;
    color: #64748b;
}

.boton-carrito,
.boton-agregar {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #0284c7;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.boton-carrito:hover,
.boton-agregar:hover {
    background: #0369a1;
}

.boton-agregar {
    width: 100%;
    margin-top: 12px;
}

.seccion-carrito {
    margin: 40px 0;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: white;
    text-align: left;
}

.encabezado-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.encabezado-carrito h2 {
    margin: 0;
    font-size: 25px;
}

.boton-secundario {
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #334155;
    cursor: pointer;
}

.boton-secundario:hover {
    background: #f1f5f9;
}

.elemento-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-carrito h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.info-carrito p {
    margin: 0;
    color: #64748b;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controles-cantidad button {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
}

.boton-eliminar {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    cursor: pointer;
}

.resumen-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.resumen-carrito p {
    margin: 0;
    font-size: 20px;
}

.resumen-carrito strong {
    color: #0284c7;
}

#carritoVacio {
    padding: 20px 0;
    color: #64748b;
}

@media (max-width: 550px) {
    .barra-carrito,
    .encabezado-carrito,
    .elemento-carrito,
    .resumen-carrito {
        flex-wrap: wrap;
    }

    .controles-cantidad {
        flex-wrap: wrap;
    }
}

.barra-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 750px;
    margin: 25px auto 30px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.barra-carrito span {
    color: #475569;
    font-size: 15px;
}

.boton-carrito {
    flex-shrink: 0;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background-color: #0284c7;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.boton-carrito:hover {
    background-color: #0369a1;
}

@media (max-width: 550px) {
    .barra-carrito {
        align-items: stretch;
        flex-direction: column;
    }

    .boton-carrito {
        width: 100%;
    }
}

.producto-imagen {
    width: 100%;
    height: 210px;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 12px;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.tarjeta-producto:hover .producto-imagen img {
    transform: scale(1.06);
}


.tarjeta-producto {
    overflow: hidden;
}

.tarjeta-producto h3 {
    margin-top: 8px;
}


@media (max-width: 600px) {
    .producto-imagen {
        height: 180px;
    }
}

.boton-carrito-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 16px;
    border: none;
    border-radius: 9px;
    background-color: #0284c7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-carrito-nav:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
}

.contador-carrito-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
}

.seccion-carrito {
    position: fixed;
    top: 75px;
    right: max(25px, calc((100vw - 1140px) / 2));
    z-index: 1050;
    width: 390px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 22px;
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.encabezado-carrito {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e2e8f0;
}

.encabezado-carrito h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}


.elemento-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-carrito {
    flex: 1;
    min-width: 0;
}

.info-carrito h3 {
    margin: 0 0 5px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.info-carrito p {
    margin: 0;
    color: #0284c7;
    font-weight: 700;
    font-size: 14px;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    gap: 7px;
}

.controles-cantidad button {
    min-width: 27px;
    height: 27px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.controles-cantidad button:hover {
    background-color: #e2e8f0;
}

.controles-cantidad span {
    min-width: 15px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

.controles-cantidad .boton-eliminar {
    width: auto;
    padding: 0 8px;
    border: none;
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 11px;
}

.controles-cantidad .boton-eliminar:hover {
    background-color: #fecaca;
}


#carritoVacio {
    padding: 20px 0;
    text-align: center;
    color: #64748b;
}


.resumen-carrito {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.resumen-carrito p {
    display: flex;
    justify-content: space-between;
    color: #1e293b;
    font-size: 17px;
}

.resumen-carrito strong {
    color: #0284c7;
    font-size: 19px;
}

.boton-secundario {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background-color: #f8fafc;
    color: #334155;
    cursor: pointer;
}

.boton-secundario:hover {
    background-color: #e2e8f0;
}

.boton-secundario:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .boton-carrito-nav {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .seccion-carrito {
        top: 70px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .seccion-carrito {
        width: calc(100vw - 20px);
        right: 10px;
        padding: 16px;
    }

    .elemento-carrito {
        flex-wrap: wrap;
    }
}
.boton-comprar {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    background-color: #0284c7;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-comprar:hover {
    background-color: #0369a1;
}

.login-contenedor {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.login-tarjeta {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.login-logo h1 {
    color: #0f172a;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.login-logo h1 span {
    color: #0284c7;
}

.login-logo p {
    color: #64748b;
    font-size: 13px;
}

.login-icono {
    font-size: 42px;
    margin: 20px 0 10px;
}

.login-tarjeta h2 {
    color: #0f172a;
    font-size: 25px;
    font-weight: 700;
}

.login-descripcion {
    color: #64748b;
    margin-bottom: 25px;
}

.campo-login {
    text-align: left;
    margin-bottom: 18px;
}

.campo-login label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-weight: 600;
}

.campo-login input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}

.campo-login input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.recordar-login {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    color: #475569;
    font-size: 14px;
}

.recordar-login input {
    accent-color: #0284c7;
}

.boton-login {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #0284c7;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.boton-login:hover {
    background: #0369a1;
}

.volver-inicio {
    display: inline-block;
    margin-top: 22px;
    color: #0284c7;
    text-decoration: none;
    font-size: 14px;
}

.volver-inicio:hover {
    text-decoration: underline;
}

.mensaje-error {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 13px;
}

.admin-productos {
    padding: 35px 0 55px;
    color: #1e293b;
}

.admin-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-encabezado h1 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.admin-encabezado p {
    color: #64748b;
    margin: 0;
}

.admin-boton-principal {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 8px;
    background: #0284c7;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: background .3s;
}

.admin-boton-principal:hover {
    background: #0369a1;
    color: white;
}

.admin-resumen {
    margin-bottom: 25px;
}

.admin-resumen-tarjeta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    background: #f1f5f9;
}

.admin-resumen-tarjeta span {
    color: #64748b;
    font-size: 14px;
}

.admin-resumen-tarjeta strong {
    color: #0284c7;
    font-size: 28px;
}

.admin-tabla-contenedor {
    overflow-x: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.admin-tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.admin-tabla th {
    padding: 16px;
    background: #0f172a;
    color: white;
    text-align: left;
    font-size: 13px;
}

.admin-tabla td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.admin-tabla tbody tr:hover {
    background: #f8fafc;
}

.admin-producto-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.admin-producto-info img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f1f5f9;
}

.admin-icono-producto {
    font-size: 28px;
}

.admin-precio {
    color: #0284c7;
    font-weight: 700;
}

.admin-acciones {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-accion {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.admin-accion.ver {
    background: #e0f2fe;
    color: #0369a1;
}

.admin-accion.editar {
    background: #fef3c7;
    color: #92400e;
}

.admin-accion.eliminar {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-accion:hover {
    filter: brightness(.95);
}

.admin-sin-productos {
    padding: 35px !important;
    text-align: center;
    color: #64748b;
}

.admin-mensaje {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
}

.admin-regresar {
    margin-top: 25px;
}

.admin-regresar a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    .admin-encabezado {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-encabezado h1 {
        font-size: 25px;
    }
}
ñ
.admin-formulario-contenedor {
    display: flex;
    justify-content: center;
    padding: 40px 15px 60px;
}

.admin-formulario {
    width: 100%;
    max-width: 650px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.admin-formulario-encabezado {
    margin-bottom: 28px;
}

.admin-formulario-encabezado h1 {
    color: #0f172a;
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 7px;
}

.admin-formulario-encabezado p {
    color: #64748b;
    margin: 0;
}

.campo-admin {
    margin-bottom: 20px;
}

.campo-admin label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
}

.campo-admin input,
.campo-admin textarea,
.campo-admin select {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    outline: none;
}

.campo-admin input:focus,
.campo-admin textarea:focus,
.campo-admin select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.campo-admin small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.admin-formulario-botones {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.admin-formulario-botones .admin-boton-principal {
    border: none;
    cursor: pointer;
}

.admin-boton-cancelar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}

.admin-boton-cancelar:hover {
    background: #f1f5f9;
    color: #334155;
}

@media (max-width: 500px) {
    .admin-formulario {
        padding: 22px;
    }

    .admin-formulario-botones {
        flex-direction: column;
    }

    .admin-formulario-botones a,
    .admin-formulario-botones button {
        width: 100%;
        text-align: center;
    }
}

.admin-detalle-producto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 25px 0;
}

.admin-detalle-imagen {
    width: 220px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.admin-detalle-icono {
    width: 150px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 65px;
}

.admin-detalle-informacion {
    width: 100%;
}

.admin-detalle-etiqueta {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin-top: 15px;
}

.admin-detalle-informacion p {
    color: #1e293b;
    font-size: 16px;
    margin: 5px 0 0;
}

@media (min-width: 600px) {
    .admin-detalle-producto {
        flex-direction: row;
        align-items: flex-start;
    }

    .admin-detalle-imagen,
    .admin-detalle-icono {
        flex-shrink: 0;
    }
}

.admin-alerta-eliminar {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
}

.admin-alerta-eliminar p {
    margin: 5px 0 0;
    font-size: 14px;
}

.admin-boton-eliminar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.admin-boton-eliminar:hover {
    background: #b91c1c;
}

.registro-enlace {
    margin-top: 25px;
    text-align: center;
}

.registro-enlace p {
    display: inline;
    color: #64748b;
    margin: 0;
}

.registro-enlace a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

.registro-enlace a:hover {
    text-decoration: underline;
}

body {
    background-color: #f5f7fb;
    color: #1e293b;
    font-family: "Segoe UI", Arial, sans-serif;
}

.container {
    max-width: 1200px;
}

main {
    min-height: 65vh;
}


.navbar {
    background: #0f172a !important;
    padding: 13px 0;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12);
}

.navbar-brand {
    font-size: 27px;
    letter-spacing: -0.8px;
}

.navbar .nav-link {
    margin-left: 8px;
    padding: 9px 12px !important;
    border-radius: 7px;
    transition: background-color 0.25s, color 0.25s;
}

.navbar .nav-link:hover {
    color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.08);
}

.boton-carrito-nav {
    border-radius: 9px;
    padding: 10px 17px;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.18);
}


.inicio-techstore {
    min-height: 350px;
    padding: 55px;
    margin-top: 28px;
    border-radius: 18px;
    background: linear-gradient(125deg, #0f172a 0%, #172554 65%, #1e3a5f 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.contenido-inicio h1 {
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -1px;
}

.descripcion-inicio {
    font-size: 16px;
    line-height: 1.8;
}

.icono-inicio {
    width: 190px;
    height: 190px;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(125, 211, 252, 0.25);
}

.boton-inicio {
    padding: 13px 25px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.20);
}


.seccion-productos {
    padding-top: 55px;
}

.seccion-productos h2 {
    font-size: 31px;
    letter-spacing: -0.5px;
}

.catalogo-controles {
    max-width: 700px;
    gap: 12px;
}

.catalogo-controles input,
.catalogo-controles select {
    min-height: 45px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalogo-controles input:focus,
.catalogo-controles select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.10);
    outline: none;
}


.catalogo-productos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.tarjeta-producto {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.10);
}

.producto-imagen {
    height: 190px;
    margin-bottom: 17px;
    padding: 12px;
    border-radius: 11px;
    background: #ffffff;
}

.producto-imagen img {
    object-fit: contain;
}

.producto-categoria {
    color: #0284c7;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.tarjeta-producto h3 {
    margin: 5px 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.producto-descripcion {
    min-height: 48px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.producto-precio {
    margin-top: auto;
    padding-top: 12px;
    color: #0284c7;
    font-size: 21px;
}

.boton-agregar,
.boton-comprar {
    border-radius: 9px;
    transition: background-color 0.2s, transform 0.2s;
}

.boton-agregar:hover,
.boton-comprar:hover {
    transform: translateY(-2px);
}


.seccion-carrito {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.18);
}

.encabezado-carrito {
    padding-bottom: 15px;
}

.elemento-carrito {
    padding: 16px 0;
}

.resumen-carrito {
    padding-top: 18px;
}


.login-tarjeta,
.admin-formulario {
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.campo-login input,
.campo-admin input,
.campo-admin textarea,
.campo-admin select {
    border-radius: 9px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.boton-login,
.admin-boton-principal,
.admin-boton-eliminar {
    border-radius: 9px;
    transition: background-color 0.2s, transform 0.2s;
}

.boton-login:hover,
.admin-boton-principal:hover {
    transform: translateY(-2px);
}


.admin-tabla-contenedor {
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.admin-tabla th {
    padding: 17px;
}

.admin-tabla td {
    padding: 16px;
}

.table-responsive {
    border-radius: 12px;
}

.table {
    background-color: #ffffff;
}

.table thead th {
    white-space: nowrap;
}


footer {
    margin-top: 35px;
    padding: 25px 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
}


@media (max-width: 992px) {
    .catalogo-productos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .inicio-techstore {
        padding: 40px;
    }

    .navbar .nav-link {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .inicio-techstore {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 25px;
        gap: 25px;
    }

    .icono-inicio {
        align-self: center;
        width: 150px;
        height: 150px;
    }

    .icono-inicio span {
        font-size: 75px;
    }

    .catalogo-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .producto-imagen {
        height: 170px;
    }

    .seccion-productos h2 {
        font-size: 27px;
    }

    .categorias-inicio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .catalogo-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tarjeta-producto {
        padding: 12px;
    }

    .producto-imagen {
        height: 135px;
        padding: 5px;
    }

    .tarjeta-producto h3 {
        font-size: 15px;
    }

    .producto-precio {
        font-size: 18px;
    }

    .boton-agregar {
        padding: 9px 5px;
        font-size: 12px;
    }

    .catalogo-controles {
        flex-direction: column;
    }

    .inicio-techstore {
        padding: 28px 20px;
    }

    .contenido-inicio h1 {
        font-size: 31px;
    }

    .admin-formulario {
        padding: 22px;
    }
}

@media (max-width: 340px) {
    .catalogo-productos {
        grid-template-columns: 1fr;
    }
}
